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...

How to add some content in any file at some desired location
without using VI or some other editor in UNIX

Answer Posted / tony

A one line piece of text can always be added like this:

$ echo "Please add this text" >> file.txt

A file (a text file preferably) can be added:

$ cat inputfile.txt >> outputfile.txt

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the first line in every perl script called?

1023


How to redirect both standard output and standard error to the same location?

1151


What are the advantages of shell script?

1008


What is basename in shell script?

1041


I want to monitor a continuously updating log file, what command can be used to most efficiently achieve this?

1323


Suppose you execute a command using exec, what will be the status of your current process in the shell?

1053


Explain about the exit command?

959


Determine the output of the following command: [ -z “” ] && echo 0 || echo 1

979


Why are shell scripts used?

1058


Why do we write bin bash in shell scripts?

998


What does it mean to debug a script?

1032


What does echo $0 do?

948


What is shell and terminal?

976


What makes c shell a more preferable option than the bourne shell?

956


How do I read a .sh file?

1090