Passing parameter from one file to shell script


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Passing parameter from one file to shell script
# 8  
Old 10-29-2008
Hammer & Screwdriver rather than sed...

I would have used
tail +2 file1

to skip the first row of a file
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Passing parameter with single quote to shell script

Hello All, I am trying below +++++++++ #/bin/bash set -x Host=$1 Port=$2 User=$3 Pass=$4 Warning=$5 Critical=$6 SCRIPT_LOC=/opt/agent/ Parameters="'""hostname=$Host&""port=$Port&""username=$User&""password=$Pass&""jvm=UsedMemory,$Warning,$Critical""'" echo $Parameters... (10 Replies)
Discussion started by: sundari127
10 Replies

2. UNIX for Dummies Questions & Answers

Passing shell script parameter value to awk command in side the script

I have a shell script (.sh) and I want to pass a parameter value to the awk command but I am getting exception, please assist. diff=$1$2.diff id=$2 new=new_$diff echo "My id is $1" echo "I want to sync for user account $id" ##awk command I am using is as below cat $diff |... (1 Reply)
Discussion started by: Sarita Behera
1 Replies

3. Shell Programming and Scripting

Passing a parameter from a shell script to sqlplus

Hi All, I'm new to Linux and scripting, apologies in advance for 'stupid' questions. Please help... Im writing a script that calls a sqlplus script but the sqlplus requires inputs and i cant seem to get this to work. here is my code. #!/bin/sh TERM=vt100 export TERM... (4 Replies)
Discussion started by: Mahomed
4 Replies

4. Shell Programming and Scripting

Passing parameter to script, and split the parameter

i am passing input parameter 'one_two' to the script , the script output should display the result as below one_1two one_2two one_3two if then echo " Usage : <$0> <DATABASE> " exit 0 else for DB in 1 2 3 do DBname=`$DATABASE | awk -F "_" '{print $1_${DB}_$2}` done fi (5 Replies)
Discussion started by: only4satish
5 Replies

5. Shell Programming and Scripting

Passing string as a input parameter for a shell script

Hi i have a shell script which needs a string as an input parameter. How to pass the string param as an input? In command line am running the script. for e.g., a="who is a buddy?" sh sample.sh $a Inside the script i get this input param as $1 but only the value "who" is accepted... (12 Replies)
Discussion started by: vidhyaS
12 Replies

6. Shell Programming and Scripting

Passing Parameter containing space in between to Shell Script

Hi, I have one shell script which use two parameter however one of its parameter have space in between. eg. a.sh 20110114 b c d here b c d is one parameter I used 'b c d' but its not giving correct result. Also i tried b\c\d but this one also didnt work. Any help would be... (5 Replies)
Discussion started by: diehard
5 Replies

7. SCO

Parameter passing to dot shell script

OS SCO Open Server 6.0 MP4 I am trying to change the value of a enviornment variable thru a script and want to pass a parameter on the commande line, If I hard code the value inside the script the script changes the enviornment variable . mytest where my test is MYVAR=$1 export MYVAR... (6 Replies)
Discussion started by: atish0
6 Replies

8. AIX

Passing a parameter to a shell script?

I would like to run a compress script on files in certain directories. My compress_script.sh is just basically compress file* In order for me to use this I have to copy it into each directory and run it. How can I state the directory on the command line with the compress script so it... (2 Replies)
Discussion started by: NycUnxer
2 Replies

9. Shell Programming and Scripting

passing parameter 4m shell script to a DB stored procedure

hi all please tell me how to pass parameters 4m shell script to a DataBase stored procedure. To be specific i have sybase DB. i mean i want the syntax of the command.. how to connect to DB, pass user id and password, pass the required parameter to SP.. .. need ur help frnds.. hema (0 Replies)
Discussion started by: hema2026
0 Replies

10. Shell Programming and Scripting

passing parameter from Shell-script to Sql-script

Dear Friends, Please help me to achieve the following: I want to pass one parameter from Shell-script to Sql-script. Example: My ShellScript.sh is calling report.sql like this: /bin/sqlplus /reports.sql And My report.sql is calling many Stored-Procedures like this: exec... (0 Replies)
Discussion started by: subodhbansal
0 Replies
Login or Register to Ask a Question
lafe(6) 							   Games Manual 							   lafe(6)

NAME
lafe - Latency Free Empire client SYNOPSIS
lafe country [password [host [port]]] DESCRIPTION
lafe is an empire client optimized for high latency links. You can type in, edit, and send several commands before the server replies with output from the first command. This allows you to make better use of the existing bandwidth than most other clients. pei and eif are par- ticularly susceptible to latency, as they require a complete exchange of data before prompting again. lafe could also be called LAg Free Empire. Empire 2 asynch features are supported. Empire 3 C_SYNC isn't supported, as this is a rather dumb client (in between emp_client and eif) and C_SYNC was removed from Empire 4 (Wolfpack). Readline is supported, and at the moment required. If you want lafe without readline, use emp_client instead. Parameters country If the only parameter this is use as a key to look up the game name as specified by the addgame commands in the $HOME/.laferc file. Otherwise it is used as the country name on the server. Defaults to 'visitor' if unspecified. password defaults to 'visitor' if unspecified. host defaults to 149.84.128.9 if unspecified. port defaults to 6667 if unspecified. Local commands help print syntax summary of local commands. addgame game country password host port logfile directory add a game definition for the "lafe game" startup method. execute Handles exec scripts locally runfeed Runs the argument as a shell command, and sends the output to the server shell Run the argument as a shell script alias Print, delete, or define an alias. Use single quotes around the alias definition to protect $*, $1, $2, ... setvar Set, delete, or print local variables. shell Run parameters in a subshell. history print the previous commands. verbose toggle verbosity of message. "verbose on" if you want all the error messages, C_SYNC messages, etc. Off by default. waitsync Wait for all responses from server before proceeding. Useful in scripts before a runfeed or shell command. ENVIRONMENT
Environment variables are supported for backward compatibility with emp_client. This information is best placed in the $HOME/.laferc file using the addgame command. EMPIREHOST hostname of server EMPIREPORT TCP/IP port number of server COUNTRY Country name to log in as REPRESENTATIVE Password for country FILES
$HOME/.laferc contains any valid local commands to run before connecting to a server. SEE ALSO
emp_server(6), emp_client(6), emp_hub(6), pei(6), eif(6), http://wolfpackempire.com/ BUGS
Output redirection does not work with aliases and internal commands. Simultaneous connection to multiple servers is not yet supported. Version 1.0 addresses both of these issues, but has stalled due to lack of time. When typing well ahead of the server, lafe must guess whether a local command should be parsed locally or forwarded to the server (as part of a telegram for instance). It guesses local, which is not always correct. This is the price you pay for speed. AUTHOR
This manual page was written by Drake Diedrich <dld@debian.org> lafe(6)