![]() |
|
|
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 |
| Sort ascending and descending | don_0110 | UNIX for Dummies Questions & Answers | 1 | 11-27-2008 03:59 PM |
| Display modified files in ascending order | balareddy | UNIX for Advanced & Expert Users | 1 | 08-13-2008 06:48 AM |
| Ascending & Descending order numbers | pravani1 | Shell Programming and Scripting | 6 | 06-03-2008 08:43 AM |
| Order text display not correct. | raccsdl | Shell Programming and Scripting | 2 | 11-10-2007 12:08 AM |
| Sort / ascending order | gyik | UNIX for Dummies Questions & Answers | 1 | 03-05-2001 10:08 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Ascending order within text
I appreciate all the help that I've already received but am running into one problem. I can find how to add something before a file with ascending numbers but not like this. I basically have a file that looks like this:
100 101 102 103 104 I need to add the following before each line with ascending numbers: line num0 file So in the end, I would need the file to look like this: line num0 file 100 line num1 file 101 line num2 file 102 line num3 file 103 line num4 file 104 Any help is appreciated. P.S. Sed would be preferable but any programming language will suffice. Again, thanks. Last edited by kerpm; 08-15-2008 at 10:21 AM.. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|