![]() |
|
|
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 |
| single line input to multiple line output with sed | mitch | Shell Programming and Scripting | 8 | 07-16-2008 02:57 PM |
| Multi-line output to single line | LinuxRacr | Shell Programming and Scripting | 7 | 02-26-2008 10:05 AM |
| Create two line from single line in shell | unishiva | Shell Programming and Scripting | 2 | 11-03-2007 12:28 AM |
| reading a single line | rochitsharma | Shell Programming and Scripting | 2 | 02-27-2006 01:06 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Hi,
when i am executing this script, i am getting the values of TID and Intime in different lines. How can i print both output values in a single line. please advise _____________________________ #!/bin/ksh export Path="/abc/def/ghi"; Home="/abc/jkl/prt"; cd $Path cat $Home | while read line do TID=$(echo $line|awk '{print $4}'); Intime=$(ls -ltr | grep $TID | awk '{print $8}') print $line print $Intime done ______________ Output : Prateek 12:15 Desired outpt : Prateek 12:15 ------------------ Thanks in Advance |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|