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

Who command in unix?

1090


What is the command to view process running?

1068


What does #!/ Bin sh do?

1016


What are the differences among a system call, a library function, and a unix command?

1148


What is awk used for?

1077


What does awk stand for?

1033


What command will change your prompt to myprompt?

1251


How can you see the command line history?

1076


How do you repeat a command in terminal?

1151


What is in grep command?

1119


Write a command that will display files in the current directory, in a colored, long format.

1156


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

1336


When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system. How can i findthe right soluion??? My pgm: #include # include int main() { int pid; pid=fork(); if(pid < 0) {exit(-1);} else if(pid==0) { printf("Child Process is Sleeping ..."); sleep(10); printf("Orphan Child's Parent ID : %u ",getppid()); } else { printf("Parent Process Completed ... %u ",getpid()); exit(0); } return 0; } Output:

2202


What does the “echo” command do?

1097


How many unix commands are there?

1098