Hi,
I have a file with only data 1 row:
AA#?BB#?CC#?DD
Assume '#?' is the delimiter, i want the output in another file to be:
AA
BB
CC
DD
Pls let me know if this is possible by sed ?
Thanks in advance.
Hi,
I have a file with only data 1 row:
AA#?BB#?CC#?DD
Assume '#?' is the delimiter, i want the output in another file to be:
AA
BB
CC
DD
Pls let me know if this is possible by sed ?
Thanks in advance.
yes:
$ cat onefile
AA#?BB#?CC#?DD
$ >anotherfile sed 's #? \
g' onefile
$
$ cat anotherfile
AA
BB
CC
DD
You can even do it with a typewriter!
tr "#?" "\n" <onefile> OUT