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 the command '$ls | wc –l > file1' do?

1235


What is the behavioural difference between cmp and diff commands?

1289


What is “chmod” command?

1182


How do I search for a file in unix command?

1023


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

1314


What do chmod command do?

1228


Which command is used to find whether the system is 32 bit or 64 bit?

1153


How can you see the command line history?

1143


Name the unix command to find how many days the server has been up.

1167


What is nr in awk command?

1211


Explain ‘system calls’ with respect to unix commands?

1097


What is ctrl d?

1101


What is the use of cut command in unix?

1377


What is the size of time_t?

1220


Which command is used to create a directory?

1172