- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: added character to lines in downloaded program...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2001 01:01 PM
03-30-2001 01:01 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2001 01:12 PM
03-30-2001 01:12 PM
Re: added character to lines in downloaded programs
I guess that you FTP'ed those files to your unix box in ascii mode instead of binary mode, or vice versa. Try in the other mode.
good luck,
Thierry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2001 01:13 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2001 01:17 PM
03-30-2001 01:17 PM
Re: added character to lines in downloaded programs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2001 01:22 PM
03-30-2001 01:22 PM
Re: added character to lines in downloaded programs
then go for "dos2ux" as already mentioned.
Thierry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2001 05:25 PM
03-30-2001 05:25 PM
Re: added character to lines in downloaded programs
ASCII files in Unix have a single LF character at the end of every line and a null character at the end of the file.
However, in DOS/Windows, every ASCII file has a CR/LF pair at the end of every line. By convention, LF by itself is called a 'soft carriage return' and means something to WordPad and Word for Windows, but read that file in Notepad and it will look terrible.
So ASCII files are not portable without formal translation. That's why ftp has an ASCII mode--to perform the inter-system translation. Mainframe systems and commercial opsystems like MPE have many different (and incompatible) ASCII file stuctures.
As mentioned, dos2ux will fixup these DOS files and similarly, ux2dos goes the other way.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2001 01:52 AM
04-02-2001 01:52 AM
Re: added character to lines in downloaded programs
:%s/^M//g
^M in vi is ctrl+v and after invio.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2001 11:49 AM
04-04-2001 11:49 AM
Re: added character to lines in downloaded programs
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2001 01:05 PM
04-04-2001 01:05 PM
Re: added character to lines in downloaded programs
You can keep from having to do this if you always ftp ascii file as ascii. By selecting ascii transfer via ftp, ftp will automatically convert the cr to newlines.
...jcd...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2001 05:19 PM
04-04-2001 05:19 PM