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 is the use of tee command?

1233


What is in grep command?

1211


What is grep and how do you use it?

1166


What do chmod command do?

1284


What is command substitution?

1473


What is the difference between cat and more command?

1363


What is the nmap command?

1236


What is grep short for?

1097


What is the use of egrep command in unix?

1240


Why is shebang used?

1186


Which command is used to kill the last background job?

1388


Which command will print your home directory on screen?

1148


Is grep faster than awk?

1081


Explain how to use grep command to list find the records of a file containing 10 different strings?

1124


What's a command word?

1246