![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| cpio versus cp | fredao | UNIX for Advanced & Expert Users | 1 | 09-17-2007 11:05 AM |
| Mac versus PCs - the CIO verdict - Silicon.com | iBot | UNIX and Linux RSS News | 0 | 07-13-2007 09:50 PM |
| AIX versus Networks | rawatmohinder | AIX | 5 | 05-23-2006 02:54 AM |
| CTRL+H versus ^? versus BACKSPACE | alan | UNIX for Dummies Questions & Answers | 3 | 07-23-2003 10:08 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
<LF> versus <CR>/<LF>
Hello,
Can someone explain how to distinguish a LF character and a CR/LF character in a text file from a shell script. Thanks Last edited by jerardfjay; 10-20-2005 at 10:27 AM. Reason: question was incorrect (changed CR to LF) |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
If you have GNU File installed, it will tell you in a nice human readable output.
Code:
$ file test.txt test.txt: ASCII text $ vi test.txt # :set ff=dos $ file test.txt test.txt: ASCII text, with CRLF line terminators |
||||
| Google The UNIX and Linux Forums |