thedogeater
asked on
sed
How would I if I had a file full of data seaperated by tabs, change this be be seperated
by a newline?
sed s/what is tab/what is newline/g kind of thing?
by a newline?
sed s/what is tab/what is newline/g kind of thing?
ASKER
I do not understand your answer.
it is not right?
anyway thankytou
it is not right?
anyway thankytou
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If you are having problems in entering a tab character from the
shell try <control v> <tab character>. (For eg. bash
does not allow to enter tab character.)
shell try <control v> <tab character>. (For eg. bash
does not allow to enter tab character.)
I just noticed a typo in the original post. It had a '\' instead of '/', although the hex code for the character was correct. It should have been:
's' '/' TAB '/' '\' NL '/' 'g' NL
73 2f 09 2f 5c 0a 2f 67 0a
's' '/' TAB '/' '\' NL '/' 'g' NL
73 2f 09 2f 5c 0a 2f 67 0a
ASKER
Adjusted points from 50 to 100
ASKER
I shoul have seen that too but I am to sleepy
must go to bed anyway thaks for the help and more poing why not!
thaks
must go to bed anyway thaks for the help and more poing why not!
thaks
So the script would have the following characters:
's' '/' TAB '/' '\' NL '\' 'g' NL
73 2f 09 2f 5c 0a 2f 67 0a