Jump to content

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


Recommended Posts

Guest Challenger.
Posted
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

 

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.