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 are the different types of commonly used shells on a typical linux system?

1003


What are the disadvantages of shell scripting?

1125


What is awk in shell scripting?

985


Why are there shells on the beach?

1055


one folder contains lot of students name but I want to fetch hello with every student name individually using shell script

912


How will you emulate wc –l using awk?

1466


Explain about "s" permission bit in a file?

998


Is shell and terminal the same?

995


Can you write a script to portray how set –x works?

957


Is cmd a shell?

961


What does sh mean?

1004


How do I open a jshell in cmd?

1146


What is option in shell script?

959


How many fields are present in a crontab file and what does each field specify?

1061


What is the lifespan of a variable inside a shell script?

1580