I want to know how to print words in same line with space in text file. So please provide me any suggestions about how to do it. Any help will be appreciated.
I want to know how to print words in same line with space in text file. So please provide me any suggestions about how to do it. Any help will be appreciated.
sed '1s/$/ ghi/' text.fil --- This sed command used to print words in same line. Here 'ghi' adds to end of line. The sed command has a variety factor. The "1" makes sure that only first line is appended. If the 1 is not there then every line is appended.
Bookmarks