can we use cat command as an editor ..???
Answers were Sorted based on User's Feedback
Answer / san
No. cat command is only ti list/View contains of File
Is This Answer Correct ? | 51 Yes | 12 No |
Answer / rupali
The cat utility concatenates and display files. It also
can be used as a primitive editor for creation one liners
or adding a line to the config file. There is also a
version of cat called zcat which performs operation similar
to uncompress -c or for GNU version gunzip -c on each
input file
Is This Answer Correct ? | 25 Yes | 1 No |
Answer / mayank
yes
id file doesn't exists
cat >file
my name is sopderman
r u serious
ctrl+d
cat >>file
no, i am not
ctrl+d
cat >file
overwriting file
ctrl+d
cat -n file> file2 --add line numbers
Is This Answer Correct ? | 18 Yes | 1 No |
Answer / shakti
no we can not use cat as editor because it do not give
the fasilty of editing,modification in the content of the
file
Is This Answer Correct ? | 10 Yes | 7 No |
Answer / venkatesh
cat command is not an editor because it is used to create
files and display file components and it is a internal
command in unix...
cat hi this is venkat@cec
it displays the text as entered above..
hi this is venkat@cec
cat>venkat
and
cat>>venkat
by using that format we used to use in unix.......
Is This Answer Correct ? | 4 Yes | 1 No |
Answer / riyaz
Cat is not an editor.. its a command which has readonly
permision.
Is This Answer Correct ? | 4 Yes | 2 No |
Answer / 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 |
Answer / niranjan
cat is unix command not an editor.
Editor is one which provides various mode like input mode,command mode, and last line mode as vi editor..
cat displays the content of file if file exist else it creates
the new file and takes input from standard input(i.e, keyboard)
Is This Answer Correct ? | 1 Yes | 0 No |
What is the comma to display different lines that are found when compare two files?
what is the advaantage of each user having its own copy of the shell?
Will rm -r* removes hidden files?
what is the advaantage of each user having its own copy of the shell?
0 Answers BMC, CNS, DELL, Infosys,
Which command is used to kill the last background job?
Give command that will make the file "run.sh" executable?
How can you see the command line history?
If JFS file system is 100% full how we can increase the file system ?
Where can I get the free download of Unix by Yeswant Kanetkar?
distinguish between multi-tasking,multi-user,multi- processing and time sharing?
4 Answers Infosys, Nikhil Construction,
what are wild cards?
what is the use of wild cards?