|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Hi Can anyone help me out in sed command
5521816900 5521816901 5521816902 5521816903 5521816904 5521816905 5521816906 5521816907 5521816908 three lines are there and spaces within the columns are 10 spaces. i would like to make three colums into one line using sed command ..Coz finally i have to do these things for million lines...can anyone help me out in doing so .... Thanks in advance. |
|
#2
|
|||
|
|||
|
Quote:
can you show on the sample ABOVE what the desired output would be - I'm confused with what you're asking! |
|
#3
|
|||
|
|||
|
Quote:
for example : 123 456 789 112 212 312 i want it like 123 456 789 112 212 312 in the line order even if its not sorted |
|
#4
|
|||
|
|||
|
nawk -v OFS="\n" '$1=$1' myFile.txt
|
|
#5
|
|||
|
|||
|
Code:
sed 's/[][]*/\ /g' filename.txt
__________________
Dinesh_P_V |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > Help for SED commands |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|