Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

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


Please Help Members By Posting Answers For Below Questions

What does this command do? Cat food 1 > kitty

1637


Enumerate some of the most commonly used network commands in unix?

1216


What is the use of awk command in unix?

1192


Which command should you use to find the remaining disk space in unix server?

1350


Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?

1286


What is the use of the tee command?

1153


What are the general commands in using unix os for a beginner?

1221


What is a command and examples?

1284


How do I run a bash script?

1241


How do I open a port?

1143


What are reported commands?

1193


Explain the steps that a shell follows while processing a command.

1288


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

1134


What is updatedb?

1092


Can you enlist some commonly used network commands?

1158