shell delete newline symbol(Line feed \n)

shell delete newline symbol(Line feed \n)

cat file| tr -d '\n'
sed ':t;N;s/\n//;b t' file
sed -i 's/\n//g'file
cat file| xargs echo -n

Comments

Popular posts from this blog

Python Receiving and parse JSON Data via UDP protocol

ubus lua client method and event registration code demo/example