can we use cat command as an editor ..???

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate cat command from more command.

579


What is ‘ps’ command for?

618


What is awk used for?

624


How does pipe () work?

597


How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?

763






Who invented grep?

653


Name the various commands that are used for the user information in unix.

542


How do I use nslookup?

577


Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?

800


What does touch command do in unix?

732


Why is it called a shebang?

574


What are the dos commands?

652


What does 'mkdir' command do in UNIX?

660


Which command can you use to find the currently running process in unix server?

589


What do know about tee command?

607