Results 1 to 2 of 2

Thread: How can I save the values in a file ?

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

  2. #2
    Join Date
    May 2008
    Posts
    2,297

    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

Similar Threads

  1. W32 registry values are not getting matched by the default values
    By Angrzej in forum Networking & Security
    Replies: 5
    Last Post: 19-05-2011, 12:23 PM
  2. Replies: 1
    Last Post: 19-03-2011, 01:28 AM
  3. Replies: 5
    Last Post: 17-08-2010, 11:37 PM
  4. Not able to change registry values / merge .reg file
    By musicgold in forum Operating Systems
    Replies: 3
    Last Post: 05-06-2010, 07:41 PM
  5. Prevent modification of values on a protected Excel file
    By DotNetUser in forum Software Development
    Replies: 5
    Last Post: 02-05-2009, 01:12 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,750,174,264.63872 seconds with 16 queries