The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Replacing the last data of each line ina file jisha Shell Programming and Scripting 6 08-04-2008 08:47 AM
Help in extracting data with command from file in C ahjiefreak High Level Programming 10 03-20-2008 11:26 PM
Appending data at the first and last line of a file brainstormer Shell Programming and Scripting 4 01-03-2007 10:38 AM
How to insert new line in the data file using the script Sona UNIX for Dummies Questions & Answers 2 08-22-2006 02:17 AM
Need to add a line of data to already existing file in Unix.. charan81 Shell Programming and Scripting 4 01-21-2006 03:31 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-23-2006
bryan bryan is offline
Registered User
  
 

Join Date: Jan 2005
Posts: 22
add data from command line to end of file

how can I add data from command line to end of file?
  #2 (permalink)  
Old 05-23-2006
steweston steweston is offline
Registered User
  
 

Join Date: May 2006
Location: Vancouver, BC
Posts: 11
Quote:
Originally Posted by bryan
how can I add data from command line to end of file?
echo "Whatever you want, including variables $VAR1 , $VAR2" >> your_file
  #3 (permalink)  
Old 05-23-2006
bryan bryan is offline
Registered User
  
 

Join Date: Jan 2005
Posts: 22
thank you.

i should have thought about it.
  #4 (permalink)  
Old 05-23-2006
bryan bryan is offline
Registered User
  
 

Join Date: Jan 2005
Posts: 22
one other question

what if I dont want to add(concatenate) it as a new line to the target file, instead want it to add it at the end of target file's last character?
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:34 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0