And Paste is using the new line characters of the original rows. So rows are not appearing on single line. I would just like to remove new line characters of all the rows of all the columns except the column of last file.
I is unclear to me what you are after. Suppose you have a couple of files with just one column and e.g. 4 rows then danmero's paste command should just work...
example:
I was actually combining windows file format files which had windows specific line break characters. As a result of which columns were not visible on same row...
Hence had to convert the result file to unix file as shown below:
I have few more questions:
What is the significance of black slash (\) in -d\
If I want to use tab as the delimiter then I guess following should be sufficient but somehow its not giving the desired results:
Any pointers?
Is there a way I can use a long single delimiter like '##--##' or may be '&+&+&'
I tried following but it doesn't seem to work.
In the paste example it is used as an escape character but it is not really necessary there:
paste -d: *.txt
should work too. in your tr -d example it means ascii character with octal value 15 followed by ascii character oct 32 (carriage return and substitute character)
try paste without the -d option
paste can only use single character separators (or a list thereof, which it will then cycle through and use one character at a time)
You could try this;