Answers for "difference between cat> and cat>>"

0

difference between cat> and cat>>

cat <file name> => displays the contents of the file
cat => takes input from STDIN and puts it back to the STDOUT
cat > <filename> => Take in put from STDIN and put contents in <filename>, This will overwrite the contents.
cat >> <filename> => Take in put from STDIN and put contents in <filename>, This will append the contents.
Posted by: Guest on April-27-2020

Browse Popular Code Answers by Language