sed command options
I am searching for Linux Command to replace carriage return to space.
After commanding the format should be
1 2 3 4 5 6 7 8
Kindly help in resolving this.
I guess sed command will help this..Please suggest.
sed isn't really that useful as it operates on lines, delimited by default by a newline, so doesn't see them. tr is easier...
cat file | tr '\n' ' '
Thanks for your response..
I tried and it is fine..
In the mean time i find some other solution which also helped...
that is ..
sed "s/\r//" file1 > file2
That does not work on a Unix / Linux file.
What is the format of the file(s) you are working with?
Assuming a Unix/Linux file:
For the record: I am not the only SED nut-case here. member "firstfire" has topped anything I EVER came up with......;)
Sorry for delay and thanks for your update.
|All times are GMT -5. The time now is 04:30 AM.|