LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Bash script

[ILUG] Bash script

Martin Donlon akawaka at csn.ul.ie
Tue Apr 3 18:31:11 IST 2001


echo -e "4\nLines\nof\ntext" | cat original_file - > new_file

or

cat original_file 4_lines_file > new_file


On Tue, Apr 03, 2001 at 10:18:25AM -0700, James Chambers wrote:
> I am trying to add a 4 lines of text to the end of a file, from within
> a bash script, I have been looking on the web, but can`t find what I am
> looking for. I need to get this done in the next day or 2, so I haven`t
> had an extensive look
> 
> Any help would be much appreciated
> 
> 
> Regards
> 
> James Chambers
> 
> __________________________________________________
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail. 
> http://personal.mail.yahoo.com/
> 
> -- 
> Irish Linux Users' Group: ilug at linux.ie
> http://www.linux.ie/mailman/listinfo/ilug for (un)subscription information.
> List maintainer: listmaster at linux.ie

-- 
Martin
--
Bother! said Pooh, as Kanga gave birth to a monster.




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell