Tuesday, 10 October 2017

cat command

cat command is use to read the contents of files or displaying them, combining copies of  files and creating file .

See the use of cat command

  Command  Details
cat [options] [filenames] [-] [filenames]Syntax
cat file1cat command is use to read the contents of files
cat file1 > file2">" this is output redirection operator, cat file1 output is written to file2
cat >file1To Write the data into file 1
cat > file2To Write the data into file 2
cat file1 file2concatenate copies of the contents of the two files file1 and file2
cat file1 file2 >file3file1 and file2 data redirect to file3
cat >> file4">>" the append operator , append the data in file4




No comments:

Post a Comment