Replacing '\n' with 'space' in each line of a file #replace #awk

You can use the awk statement given below to remove the '\n' from each line and replace it with a blank space:

awk '$1=$1' ORS=' ' /etc/passwd

0 comments:

Post a Comment

Note: Only a member of this blog may post a comment.