![]() |
|
|
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 |
| How to Append a Value to each line of the file | dsshishya | UNIX for Dummies Questions & Answers | 11 | 03-21-2008 02:48 PM |
| How to append words at the end of first line | lmatlebyane | Shell Programming and Scripting | 11 | 02-28-2008 04:39 AM |
| append a line to the last line in a file | subhrap.das | UNIX Desktop for Dummies Questions & Answers | 5 | 04-25-2007 10:17 AM |
| Using SED to append character to each line | c0nn0r | Shell Programming and Scripting | 4 | 07-08-2006 10:07 PM |
| append line | ymeyaw | UNIX for Dummies Questions & Answers | 7 | 04-09-2006 11:14 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
How to append some strings line by line?
I would like to append the numbers 1, 2, 3, 4 and so on to the lines of the file:
Adam Wilkins | Colorado | 36 John Butler | Los Angeles | 47 Cassey Johnson | Minneapolis | 25 Albert Aniston | Miami | 19 .... Tony Legler | Sacramento | 55 Matt Simmons | New York | 38 Output would look like this: Adam Wilkins | Colorado | 36 | 1 John Butler | Los Angeles | 47 | 2 Cassey Johnson | Minneapolis | 25 | 3 Albert Aniston | Miami | 19 | 4 ..... Tony Legler | Sacramento | 55 | 9 Matt Simmons | New York | 38 | 10 I know this is simple for Unix gurus ![]() Maybe someone can enlighten me on this? Many thanks. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|