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
Who command in unix?
What is the command to view process running?
What does #!/ Bin sh do?
What are the differences among a system call, a library function, and a unix command?
What is awk used for?
What does awk stand for?
What command will change your prompt to myprompt?
How can you see the command line history?
How do you repeat a command in terminal?
What is in grep command?
Write a command that will display files in the current directory, in a colored, long format.
Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?
When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system.
How can i findthe right soluion???
My pgm:
#include
What does the “echo” command do?
How many unix commands are there?