Brief-Wishbone9091
Member
Code:
cat greeting
hello
Code:
cat greeting | tr -d "\r"
hello world
Create a file called greeting so that you can generate the expected output as shown in second case.
cat greeting
hello
cat greeting | tr -d "\r"
hello world
Code:cat greeting hello
Code:cat greeting | tr -d "\r" hello world
Create a file called greeting so that you can generate the expected output as shown in second case.
echo "hello world" >/tmp/greeting
cat /tmp/greeting |tr -d "\r"
hello world
cat /tmp/greeting
hello world