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 grep in bash?
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)?
What's a command word?
How do I search for text in vi?
What are the dos commands?
What is the functionality of a top command?
What is .sh file?
Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.
What is awk used for?
How do you repeat a command in terminal?
what is the advaantage of each user having its own copy of the shell?
Does cp command overwrite files?
Can you enlist some commonly used network commands?
How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?
why metadb requires a seperate slice to create Solaris volume manager