Hello to all,
Please some awk expert could help me.
If I want to run an awk script as "command" give it inputs externally I do:
Script.sh
Code:
Input="$1" # "$1" is the input that will be given to the script
Output=${Input%.*}.csv
awk '{$1=$1}1' $Input | awk '{...}' > $Output
and I run the script like this:
Code:
.
I am new to shell script. I have two perl scripts for text processing based on two different input files.I would like to have one shell script that run based on conditions.
if(input file) matches word /extraction_reversed/ run perlscript1.pl otherwise run perlscript2.pl.
Shell script to compile in terminal
sh run.sh inputfile > outputfile
Hi,
I have one shell script where it will copy all files to a directory which is already present,
For example :
i have directory DIRA and DIRB, and my shell script will expects user input to specify which directory should files must be copied. this shell scrip i am running every day using cron job, how can i specify the user input which shell scripts requires.
Thanks,
AK
Hi All,
I was trying to generate GUI using shell script. After long search I found the utility called “dialog”.
I want to give input to a wesite through a program( C or PYTHON or SHELL SCRIPTING) ..I mean for ex, I want a program which supplies username and password to some website(like gmail), and then opens it.,..Thanks:)
Multiple files can be uploaded using different name for input.
i could like to try when i input a integer , the program would give the result i want but it doesnt .
I input 2 , and the result should be "it is greater than or equal to one"
could any ching give me improvement ? If i must use case command .
thank you much !
HI
i have written a script to ask input from the user.
this script should promote the user for y/n input. if user enters anyother input then y/n
the script promotes him again. this below code is working fine for all the cases.
except for space and enter " if i give space and enter it is printing
echo "\n Goodbye ...
I'm trying to write a shell script to transfer files to a remote windows machine which is running a ultra simple sftp server .
So i don't have the option of using public key authentication.
From the Linux end its a stripped down version for non intel platform , So if i want to use "expect" i cant install expect/tcl/tk.