cat command allows us to
create single or multiple files,view contain of file, concatenate files and redirect output in terminal or files.
# cat command be used to show, create and redirect the contents of file
# create file called test.txt and ask for input
cat >test.txt
# show command
cat text.txt
# Combinint multiple files into single files
cat text text2 text3 > text3
Cat is short for concatenate. This command displays the contents of one or more files without having to open the file for editing.
cat file # Prints content of file in console
cat file1 file2 > file3 # Prints content of file1 and file2 into file3
cat -n file # Prints content of file enumerated (-n)
$cat filename
# will output file content to stdout
cat command allows us to
create single or multiple files,view contain of file, concatenate files and redirect output in terminal or files.
Cat is short for concatenate. This command displays the contents of one or more files without having to open the file for editing.
cat allows for you to write multiple lines of code without having to physically enter the file. You can use the command cat > filenmae - this works for windows' git bash