
See the use of cat command
Command | Details |
---|---|
cat [options] [filenames] [-] [filenames] | Syntax |
cat file1 | cat 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 >file1 | To Write the data into file 1 |
cat > file2 | To Write the data into file 2 |
cat file1 file2 | concatenate copies of the contents of the two files file1 and file2 |
cat file1 file2 >file3 | file1 and file2 data redirect to file3 |
cat >> file4 | ">>" the append operator , append the data in file4 |
No comments:
Post a Comment