Search Results

Search: Posts Made By: prasanna2166
3,229
Posted By RudiC
Hmmm - there's quite some syntax errors in your...
Hmmm - there's quite some syntax errors in your script (assuming your (unmentioned) shell is bourne type, e.g. bash, or ksh), obviously logic error(s) as well. Would you mind to use an awk solution?...
1,208
Posted By fpmurphy
This will work in modern versions of Bash: ...
This will work in modern versions of Bash:

#!/bin/bash

. ./new.txt

for no in 1 2 3
do
ref="uname_$no"
echo ${!ref}
done


nameref provides similar functionality in ksh93
6,440
Posted By CarloM
Something to play with: me@someplace:~/tmp$ cat...
Something to play with:
me@someplace:~/tmp$ cat x.sh
#!/bin/bash

while IFS='=' read LHS RHS
do
echo "[${LHS}]=[${RHS}]"
if [ "${LHS#Group}" != "${LHS}" ]
then
VAR1="${LHS}";...
4,485
Posted By Akshay Hegde
Try something like this $...
Try something like this


$ green='\e[0;32m'
$ endColor='\e[0m'
$ echo -e "${green}Hi Welcome \e[5;32;47m $USER \n${endColor}"for more detail visit here...
1,298
Posted By greet_sed
I don't have cc environement so i cant test. ...
I don't have cc environement so i cant test.
start with this:


my $a=qx(ct lsview);
##print "$a";
if ($a) {
## call your function or utility to send mail;
} else {
print "0 views\n";
##...
1,276
Posted By hergp
You can either ask for them one by one, like: ...
You can either ask for them one by one, like:

echo -n Please enter first value:
read VALUE1
echo -n Please enter second value:
read VALUE2

or you can read them both at once.

echo -n...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 04:32 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy