|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | 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. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Script: Convert row in to column
Hi, i need to convert Code:
SG_ERP1 SG_ERP2 SG_ERP3 in to: Code:
SG_ERP1 SG_ERP2 SG_ERP3 It's possibile? |
| Sponsored Links | ||
|
|
#2
|
||||
|
||||
|
Hi.
Yes, it is possible with the paste command. |
| Sponsored Links | ||
|
|
#3
|
|||
|
|||
|
one thing i like is use of cat and echo Code:
-bash-3.2$ cat test a b c -bash-3.2$ echo `cat test` a b c -bash-3.2$ echo $(cat test) a b c -bash-3.2$ |
|
#4
|
||||
|
||||
|
Code:
awk -v ORS=" " '1' input.txt |
| Sponsored Links | |
|
|
#5
|
|||
|
|||
|
Code:
SG_LNX_JOKER_PRE01 SG_LNX_PENGUIN_PRE01 VP_Cattivi_pre01 SG_LNX_JOKER_PRE01 SG_LNX_PENGUIN_PRE01 VP_Cattivi_pre01 it's changed in one row: Code:
SG_LNX_JOKER_PRE01 SG_LNX_PENGUIN_PRE01 VP_Cattivi_pre01 SG_LNX_JOKER_PRE01 SG_LNX_PENGUIN_PRE01 VP_Cattivi_pre01 SG_LNX_JOKER_PRE01 SG_LNX_PENGUIN_PRE01 VP_Cattivi_pre01 How can i preserve the space from two groups? Last edited by Scott; 12-06-2012 at 06:54 AM.. Reason: Code tags |
| Sponsored Links | |
|
|
#6
|
|||
|
|||
|
please post the output of what you are trying to accomplish
|
| Sponsored Links | |
|
|
#7
|
|||
|
|||
|
Code:
SG_LNX_JOKER_PRE01 SG_LNX_PENGUIN_PRE01 VP_Cattivi_pre01 SG_LNX_JOKER_PRE01 SG_LNX_PENGUIN_PRE01 VP_Cattivi_pre01 Last edited by Scott; 12-06-2012 at 06:54 AM.. Reason: Code tags |
| Sponsored Links | ||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| convert row to column with respect of first column. | asavaliya | Shell Programming and Scripting | 4 | 09-07-2012 04:34 PM |
| Convert column data to row data using shell script | sktkpl | UNIX for Advanced & Expert Users | 4 | 06-06-2012 05:55 AM |
| Convert row to column | gvj | Shell Programming and Scripting | 1 | 10-20-2011 10:59 AM |
| column to row convert - script - help | G0Y | Shell Programming and Scripting | 10 | 11-14-2008 04:12 AM |
| convert column into row with some modifier | cdfd123 | UNIX for Dummies Questions & Answers | 1 | 07-10-2008 03:23 AM |
|
|