![]() |
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 |
| make multiple line containing a pattern into single line | VTAWKVT | Shell Programming and Scripting | 13 | 12-04-2008 06:40 PM |
| ls command output in single line | arsheshadri | AIX | 7 | 04-28-2008 02:50 PM |
| Single line file editing command? | gator76 | Shell Programming and Scripting | 1 | 04-03-2008 10:09 AM |
| run command Unix on a single line | Riddick61 | UNIX for Dummies Questions & Answers | 8 | 02-04-2008 02:19 PM |
| Append 0 for single digit entered from command line | namishtiwari | UNIX for Dummies Questions & Answers | 2 | 08-24-2007 05:01 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Code:
grep "pattern" log1 log2 log3 |
awk -F: ' { if ( file != $1 ) { file=$1; print file } sub(/^[^:]*:/,"",$0);print $0 } '
|
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|