The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
To remove carriage return between the line shash UNIX for Dummies Questions & Answers 5 07-31-2007 01:12 PM
Carriage Return at end of file bd_joy Shell Programming and Scripting 14 10-20-2006 02:20 PM
How to insert carriage return before line feed? huey ing Shell Programming and Scripting 2 08-05-2005 02:22 PM
Removing Carriage Return and or line feed from a file tbone231 Shell Programming and Scripting 1 02-18-2005 04:37 PM
Regex to pick up name from the following including carriage return at end of the line Shakey21 Shell Programming and Scripting 3 07-18-2002 09:27 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-12-2003
pitstop pitstop is offline
Registered User
  
 

Join Date: Aug 2003
Posts: 2
Question carriage return/line feeds

Hello,

I have a file that has got carriage returns in it and I want to take them out. Anyone know how I can do this in a ksh?

thanks
  #2 (permalink)  
Old 08-12-2003
BrianOsburn BrianOsburn is offline
Registered User
  
 

Join Date: Aug 2003
Location: Delaware
Posts: 9
What comes to mind is unix2dos filename newfilename

Try that..

Brian
  #3 (permalink)  
Old 08-12-2003
criglerj's Avatar
criglerj criglerj is offline
Registered User
  
 

Join Date: May 2002
Location: Atlanta
Posts: 129
unix2dos is not universally available. Check out the man page for "tr", especially the "-d" option.
  #4 (permalink)  
Old 08-13-2003
pitstop pitstop is offline
Registered User
  
 

Join Date: Aug 2003
Posts: 2
Smile

Thank you both for your replies the tr -d option is exactly what I need.
  #5 (permalink)  
Old 11-24-2003
dianar dianar is offline
Registered User
  
 

Join Date: Nov 2003
Posts: 2
dos2unix?

I don't have "dos2unix", but need to convert a unix file to dos format. tr doesn't work. Any ideas on how to do this?

Thanks!
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:50 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0