Answers for "newline without neline in bash"

1

bash remove newline from string

echo "${string}"|tr '\n' ' '
Posted by: Guest on December-10-2020
0

shell keep newline at output

# You want to say
echo "$lines"

# instead of
echo $lines

# $, $() and `` remove \n \t ...
# By "string-ing" it, it keeps them.
Posted by: Guest on January-14-2022

Code answers related to "newline without neline in bash"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language