Re: transferring file in binary mode



Oh for registry I used the following my registry export was named test.reg
cat test.reg |sed s/\0//
properly viewed my expected output

On 12/18/06, Jeff Sadowski <jeff.sadowski@xxxxxxxxx> wrote:
No recent versions of windows I have encountered issues with UNICODE
like for example exporting registry
You can look at
http://billposer.org/Software/uni2ascii.html
But for registry exports it still doesn't work


On 12/15/06, secure.shell
<secure.shell@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>
> you're prolly talkin' about windows EOL \r\n (u'll see your "junk" char as ^M) if so
> perl -i -pe 's/\r$//g' filename will clean it
>
> On Thu, Dec 14, 2006 at 01:10:20PM -0600, Jeremy C. Reed wrote:
> > X-Original-To: secure.shell@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> > Delivered-To: secure.shell@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> > Mailing-List: contact secureshell-help@xxxxxxxxxxxxxxxxx; run by ezmlm
> > Precedence: bulk
> > List-Post: <mailto:secureshell@xxxxxxxxxxxxxxxxx>
> > List-Help: <mailto:secureshell-help@xxxxxxxxxxxxxxxxx>
> > List-Unsubscribe: <mailto:secureshell-unsubscribe@xxxxxxxxxxxxxxxxx>
> > List-Subscribe: <mailto:secureshell-subscribe@xxxxxxxxxxxxxxxxx>
> > Resent-Sender: listbounce@xxxxxxxxxxxxxxxxx
> > Errors-To: listbounce@xxxxxxxxxxxxxxxxx
> > Delivered-To: mailing list secureshell@xxxxxxxxxxxxxxxxx
> > Delivered-To: moderator for secureshell@xxxxxxxxxxxxxxxxx
> > Date: Thu, 14 Dec 2006 13:10:20 -0600 (CST)
> > From: "Jeremy C. Reed" <reed@xxxxxxxxxxxxx>
> > To: kknegi <kishore-singh.negi@xxxxxx>
> > Cc: secureshell@xxxxxxxxxxxxxxxxx,
> > secureshell-return-9151@xxxxxxxxxxxxxxxxx
> > Subject: Re: transferring file in binary mode
> > In-Reply-To: <7871042.post@xxxxxxxxxxxxxxx>
> > Resent-Message-Id: <20061215144306.9E514237289@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
> > Resent-Date: Fri, 15 Dec 2006 07:43:06 -0700 (MST)
> > Resent-From: secureshell-return-9153@xxxxxxxxxxxxxxxxx
> >
> > > we are using OPenSSH version of "3.7.1p1" for remote execution between unix
> > > and windows.
> > >
> > > here we are using SFTP for transferring files from windows to unix box.
> > >
> > > But the files which gets transferred to unix side contains junk characters
> > > as there is no provision of binary transmission in sftp.
> >
> > I think you have this opposite. It is always transferred in binary as
> > there is not any "ascii" conversion (like in ftp clients).
> >
> > > can anyone help us in this regard as how to eradicate the junk char while
> > > transmission of files.
> >
> > Search for dos2unix or use perl or awk or tr or sed. Google can quickly
> > find examples:
> > http://kb.iu.edu/data/acux.htm
> > http://www.vasudevaservice.com/documentation/how-to/converting_dos_and_unix_text_files
> >
> > If that is not what you are referring to, please provide some more details
> > or examples.
> >
> > (By the way, it seems like this list is way slow for me. Sometimes I don't
> > see emails for days.)
>
> --
>
>




Relevant Pages

  • Re: copying old settings into new installation
    ... This type of setting is usually stored in the Registry, and transferring ... Registry settings is more than a little iffy and definitely should not be ... going through various Word options on the new computer. ...
    (microsoft.public.word.newusers)
  • Re: "Hardware-Independent Restore": Real-World Feasible?
    ... cannot be simply copied over to another system by transferring it's ... "Program Files" folder across! ... You say what you did concerning you being able to simply copy programs across, but then go on to admit that M$ Office cannot be copied that way and would require all it's many registry settings! ... Even so, I may well have it wrong about your computer, but I still assert that in the majority of cases, the majority of installed software will be ones that are unable to port to other machines by simple copying of their program folder. ...
    (microsoft.public.windowsxp.general)
  • Re: Help - How to transfer the Outlook Express Message Rules to another PC
    ... I am still having difficulty in transferring. ... Rules$$$$$, Blocked Senders, Signatures and Custom Views are all stored in the Windows registry, and so must be backed ... Note that the Rules sub-key contains both message rules and custom views. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)