hi all,
i have a script that need user input provide all variables that needed to complete a job.
this is my current script:
Code:
echo "type file source and it full path [e.g: /srv/src/source.csv or "/srv/src dir/my source.csv"]:"
read INPUTFILE
if [ -z $INPUTFILE ] || [ !
Hey there, thanks for these scripts!In case that helps anyone I have modified the powerpill-light script to be usable from yaourt.Here is the section (may be ugly code, I am no bash dev)input="$@"
if [[ $input == -S* ]]; then
input=${input:2}
input=${input/--force -/-f}
if [[ ${input:0:1} == " " ]]; then
input=${input:1}
fi
Hi All,
I was trying to generate GUI using shell script. After long search I found the utility called “dialog”.
Hello everyone,
My requirement is that within a script I need to construct the command line exactly that it was invoked with.
Hi,
I need to call an API (GetUsageDetails)from inside a shell script which takes an input argument acct_nbr.
The output of API will be like :
Code:
<usageAccum accumId="450" accumCaptn="PM_125" inclUnits="1410.00" inclUnitsUsed="744.00" shared="true" pooled="false" prorated="false" realtimeSbscrpShared="false&quo
Got struck while trying to write a shell script which should automatically give input.
While running a script for eg: (adpatch.sh)
It Prompts for Multiple inputs like:
Do you currently have files used for installing or upgrading the database
installed in this APPL_TOP [YES] ?
greetings,
i have a variable $input that i want to use to set $output. $input is /dir/filename.mph and $input is passed to my script that i manipulate it as follows:
Code:
input=`basename $input`
i want the $output to be filename_solved.mph, basically stuffing "_solved" in the filename. here's how i did it:
Code:
output=`echo $input | awk -F.
Hi, below is the script in ksh and i am having issues with if condition.
It takes in one argument as input and executes the shell script.
The problem is in if condition in shell script. If input is given as 1 it works out well. But if input is given as 2 or something else the script is failing to go into if condition.
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 ...