DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
6+2 =
Submit