![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| if match found go to a particular line in perl | user_prady | Shell Programming and Scripting | 17 | 03-31-2008 03:00 PM |
| How to convert ^M appearing at end of line to unix newline? | videsh77 | UNIX for Dummies Questions & Answers | 21 | 09-01-2007 07:21 AM |
| Split a huge line into multiple 120 characters lines with sed? | jerome_1664 | Shell Programming and Scripting | 2 | 08-17-2006 12:03 PM |
| sed help split line | Raom | UNIX for Advanced & Expert Users | 5 | 01-30-2006 01:39 AM |
| append newline to files with incomplete last line | ziyi | UNIX for Dummies Questions & Answers | 1 | 04-14-2004 09:00 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
split line when found newline
Hi ,
I have below problem and needs your advice, i have a file a.txt as below 12|romario|ronaldo|robert 23|aaa|bbb|haaa 000000002 There is no issues when i open this file in window,it will sows as it is. in Unix: i want the last record into seperate file. So i used $ tail -1 a.txt > b.txt Output shows(b.txt) that 23|aaa|bbb|haaa 000000002 There is no carriage return? how to split these line into 2 seperate lines when i suing Shell scripts. Thanks and Regards, Hari |
|
||||
|
split line when found newline
Hi,
Output shows(b.txt) that 23|aaa|bbb|haaa$ 000000002 There is $ simple in line 1, There is no carriage return at last line. Can you advise please. |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|