![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | 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 and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| transfer file from unix to windows on same PC | monika | UNIX for Dummies Questions & Answers | 4 | 05-28-2008 07:35 AM |
| File transfer between unix and windows viceversa | mohanpadamata | Windows & DOS: Issues & Discussions | 3 | 02-18-2008 11:28 AM |
| File transfer between unix and windows server | Tlg13team | HP-UX | 2 | 02-08-2008 10:40 AM |
| How to Transfer a whole Directory from unix to windows using FTP? | ramkumarm83 | IP Networking | 1 | 12-03-2006 12:32 PM |
| Trying to transfer b/w Unix and Windows | dirtysparks | UNIX for Dummies Questions & Answers | 6 | 09-23-2003 02:59 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hi all,
I have a file in windows, example a.txt **** aaa bbb ccc <empty line> when i transfer this file to unix using ftp, and viewed the file # vi a.txt aaa bbb ccc # I dont get the empty line which i specified in that file in windows. Please help me, which in unix environment, empty line feed is not supporting. Regards NG |
|
||||
|
I tried using ASCII mode. But even though I'm not able to get that blank line
If we give two blank lines at the end of the file in windows, then we can able to get one blank line in unix. It is like For 2 Blank lines in windows , we get 1 blank line in unix For 3 Blank lines in windows , we get 2 blank line in unix For 4 Blank lines in windows , we get 3 blank line in unix........ Last edited by Nandagopal; 05-27-2009 at 07:22 AM.. |
|
|||||
|
Again, how do you check this? Some UNIX editors (including vi/vim) automatically append a newline to the last line, so this might be the reason why it's not showing. Example:
Code:
$ printf "Test" > test_noeol.txt $ printf "Test\n" > test_eol.txt $ printf "Test\n\n" > test_dbleol.txt $ file test_*.txt test_noeol.txt: ASCII text, with no line terminators test_eol.txt: ASCII text test_dbleol.txt: ASCII text $ cat test_noeol.txt Test$ cat test_eol.txt Test $ cat test_dbleol.txt Test $ |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|