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 are some command words?
What is the command to find hidden files in the current directory?
What is the pipe command?
Enlist some filename manipulation commands in unix.
What is the size of time_t?
Is grep faster than awk?
How does pipe () work?
What are file commands?
how to sort the content of the file based on numeric values
What command will change your prompt to myprompt?
What does #!/ Bin sh do?
How can you see the command line history?
What is the command to view process running?
How do you grep recursively?
Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?