Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash replace newline with space

Just use tr command as follow:
tr '
' ' ' < file	#Replaces all newlines matches with a space ' '
 
PREVIOUS NEXT
Tagged: #bash #replace #newline #space
ADD COMMENT
Topic
Name
6+2 =