Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 17-03-2009
Member
 
Join Date: Oct 2008
Posts: 55
How can I save the values in a file ?

I have a question in bash shell programming. How can I save the values by typing a user in a file. I didn't get to use>

eg
#! / bin / bash
Giving value echo a # before a value
read a
echo Giving value b # input value b
read b
touch data # creation of a data file to store the values of a and b
$ a: $ b> # redirection data values of variables a and b in the data file

Is it right ?

Thanks
Reply With Quote
  #2  
Old 17-03-2009
Member
 
Join Date: May 2008
Posts: 2,293
Re: How can I save the values in a file ?

#! / bin / bash
echo Giving value
read a
echo Giving value b
read b

echo "$ (a): $ (b)"> data
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How can I save the values in a file ?"
Thread Thread Starter Forum Replies Last Post
W32 registry values are not getting matched by the default values Angrzej Networking & Security 5 19-05-2011 12:23 PM
code for using a batch file to parse html (.htm) files and export values in .csv format jamesnovello Software Development 1 19-03-2011 01:28 AM
Prince of Persia: The Forgotten Sands values.db file download DooM ! Video Games 5 17-08-2010 11:37 PM
Not able to change registry values / merge .reg file musicgold Operating Systems 3 05-06-2010 07:41 PM
Prevent modification of values on a protected Excel file DotNetUser Software Development 5 02-05-2009 01:12 PM


All times are GMT +5.5. The time now is 09:03 PM.