Re: OT: a problem about text manipulation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/31/06, Yakov Hrebtov <hrebtov@xxxxxxxxx> wrote:
> I am looking for an automatic way of transforming my text file into
> another one with the format
You may try this:
  cat ./test.txt | awk '{print $1" "$2; print $1" "$3; print $1" "$4}' | grep
-v ' $'

Thanks for all suggestions.

Yakov: can your solution be adapted to the conversion from


1	E		E	E	
2	C		D		
6					
3	B		E		D
4	C		E		D
5		D		E	

to

1	E
1	E
1	E
2	C
2	D
6	
3	B
3	E
3	D
4	C
4	E
4	D
5	D
5	E

?

Paul


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux