![]() |
|
|
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 use Perl to join multi-line into single line | happyday | Shell Programming and Scripting | 5 | 4 Weeks Ago 02:44 AM |
| Want to add a word in front a of each line of a file | apjneeraj | Shell Programming and Scripting | 4 | 04-09-2009 01:09 AM |
| ksh - adding a dynamic value to the front of a line | ocelot | Shell Programming and Scripting | 9 | 01-08-2009 01:13 PM |
| adding a character in front of a line | ROOZ | Shell Programming and Scripting | 5 | 07-11-2008 09:58 AM |
| Shell script to join a line to the line that follows it | shashi_kiran_v | Shell Programming and Scripting | 6 | 06-23-2005 03:53 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
if it is not perl, then use this.
cat abc.txt timestamp=2009-11-10-04.55.20.829347; a; b; c; ddaa; timestamp=2009-11-10-04.55.20.829347; aa; bb; cc; $cat abc.txt|awk '{if ( $0 ~ /time/ ) print "|"$0; else print $0}'|tr -d '\n' |timestamp=2009-11-10-04.55.20.829347;a;b;c;ddaa;|timestamp=2009-11-10-04.55.20.829347;aa;bb;cc; |
| Bookmarks |
| Tags |
| perl |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|