Answer Posted / kesava swamy pindi
Yes, we can use 'cat' command as an editor.
Ex: cat > names.txt
hai
hello
ctrl+c
Here, iam creating a file called 'names.txt'. If this file
already exists, the old contents of the file will be
overwritten; else new empty file is created and data is
placed in this file.
Also, we can append new content to existing file using cat
command.
Ex: cat >> names.txt
bye
crtl+c
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is the use of tee command?
What is in grep command?
What is grep and how do you use it?
What do chmod command do?
What is command substitution?
What is the difference between cat and more command?
What is the nmap command?
What is grep short for?
What is the use of egrep command in unix?
Why is shebang used?
Which command is used to kill the last background job?
Which command will print your home directory on screen?
Is grep faster than awk?
Explain how to use grep command to list find the records of a file containing 10 different strings?
What's a command word?