Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Question Shell command to remove new line markers from file

    Can any body tell me whether there is any command in bash shell that removes new line(i.e"\n") from a file.......i.e a complete file should be a single there any bash shell command to do this job.

  2. #2
    one method
    tr -d '\012'  < file > newfile

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts