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
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:
.
while learning to write bash scripts, i decided to write some script that, given an integer as input, will tell you the square root of that integer (provided the integer in question is a perfect square). i have already done on using primarily if statements and a while loop. i decided that using a case statement would be a lot simpler and i would be able to make the script more functional.
I am using MKS Toolkit on windows7, i observed that when i use "tab" key to complete a file/dir name converts into lower case.
Eg:
I am having a directory named "Dir1", note "D" is in caps. In unix if i had tried pressing "d" and "<tab>" resulted in no result.
Hi All,I need to modify an existing script wherein "case" statement is used..An arguement is passed to a script "/home/jogesh/script.ksh johny" In the script before the case statement is used we have cut command (cut -c1-2) is used wherein "jo" part of the johny is cut and according to that further actions are done...now i need to give a a new arguement to script &quo
Hi ,
I am doing some enhancements in an existing shell script.
Hello there, I am posting to seek help with a KSH script,
I am making a simple calculation program where the user can enter as many numbers as they like, I am getting their input using the read command, however I am not sure how to repeat doing this and storing the input in to new variables until the user wants the program to calculate.
Here is what I have so far
Code:
#!/bin/ksh
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] ?
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 ...