![]() |
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 |
| single line input to multiple line output with sed | mitch | Shell Programming and Scripting | 8 | 07-16-2008 01:57 PM |
| Can df output be forced to a single line for each file system? | shew01 | Shell Programming and Scripting | 6 | 06-05-2008 11:25 AM |
| ls command output in single line | arsheshadri | AIX | 7 | 04-28-2008 02:50 PM |
| Multi-line output to single line | LinuxRacr | Shell Programming and Scripting | 7 | 02-26-2008 10:05 AM |
| Need output in different lines not in one single line | csaha | Shell Programming and Scripting | 1 | 02-08-2006 08:28 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
facing problem in getting output on single line
i am using these two grep commands
grep "^tipo" dump3_out.dat|awk -F"," '{for(i=1;i<=NF;i++){A=$i;B=substr($i, index($i, "=")+1);{print B }}}'|paste -s -d"||\n"|sed -e 's/^ //g' -e 's/| /|/g' >> result.dat grep -n "^ind" dump3_out.dat|cut -d "=" -f2|cut -d "," -f2|cut -d "n" -f1|tr -d '^ ' >> result.dat my out put appears as: abonado simplex|dic1 - none|estandar 0 abonado simplex|dic1 - none|estandar 0 abonado simplex|dic1 - none|estandar 0 abonado simplex|dic1 - none|estandar 0 i want my out as : abonado simplex|dic1 - none|estandar|0 abonado simplex|dic1 - none|estandar|0 abonado simplex|dic1 - none|estandar|0 abonado simplex|dic1 - none|estandar|0 please help |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|