Passing variables/arguments/parameters to commands | Unix Linux Forums | Answers to Frequently Asked Questions

  Go Back    


Answers to Frequently Asked Questions FAQ for UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

Passing variables/arguments/parameters to commands

Answers to Frequently Asked Questions


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 06-13-2004
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon (Administrator Emeritus)
 
Join Date: Aug 2001
Last Activity: 31 August 2014, 6:45 PM EDT
Location: Ashburn, Virginia
Posts: 9,923
Thanks: 60
Thanked 433 Times in 258 Posts
Passing variables/arguments/parameters to commands

A good place to start is simple variable passing....
Passing variables from one script to another

The next level is passing a variable into a more complex command such as using a variable in a sed command. There are some simple quoting techniques that are very general. These are mentioned in...
How can I use a variable in sed?

Also awk has a couple of specific ways to handle this...
Passing values out awk.
PASS parameter to AWK
Passing argument to awk script

Doing this with aliases depends on your shell.....
Passing arguments to an alias
alias creation

Last edited by Perderabo; 06-28-2004 at 02:43 PM..
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Reading a string and passing passing arguments to a while loop goddevil Shell Programming and Scripting 19 01-15-2012 08:48 AM
Passing arguments to alias with multiple commands derndingle UNIX for Dummies Questions & Answers 5 05-20-2011 11:05 AM
Optional Parameters/arguments while executing a script. indrajit_u Shell Programming and Scripting 3 09-03-2010 02:58 PM
tar cmd how many arguments into parameters of filenames presul Shell Programming and Scripting 1 06-15-2010 05:02 AM
passing arguments zmfcat1 Shell Programming and Scripting 4 05-19-2009 03:34 PM



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