Search Results

Search: Posts Made By: gaurav123
10,687
Posted By gaurav123
try this: if [[ $str == [0-9][0-9]* ]];then ...
try this:

if [[ $str == [0-9][0-9]* ]];then

echo "\$str has numeric value=$str"
else
echo "$str is not numeric"
fi
1,968
Posted By gaurav123
use this: for ctr in ${var }
use this:

for ctr in ${var }
10,687
Posted By gaurav123
for checking numeric values use: -eq equal...
for checking numeric values use:

-eq equal to
-ne not equal to
-lt less than
-le less than or equal to
-gt greater than
-ge greater than or equal to


for string comparison use:

>...
15,169
Posted By gaurav123
use the w command. it can you help u get wat...
use the w command.

it can you help u get wat u want....
10,348
Posted By gaurav123
can anyone tell me how can i change value of ROWS...
can anyone tell me how can i change value of ROWS and COLUMNS?

export ROWS=34
export COLUMN=200


i tried as given above but not working.......
10,348
Posted By gaurav123
overlapping words on command line
i tried resize command , but it's not working......
2,233
Posted By gaurav123
can use the for loop to achieve it: for file...
can use the for loop to achieve it:

for file in $PATH1/*
do
file=`basename $file`
mv $PATH1/$file $PATH2

/* call ur second script here which process one file at a time OR paste ur code*/
...
6,063
Posted By gaurav123
end of backquote is missing under if condition......
end of backquote is missing under if condition...

better way to do the same:

$ret=`perl -e ' $LINE =~ /^$FRIEND/i'`
if [ $ret ];then
...
code
.....
3,098
Posted By gaurav123
you can use 'eval' to solve ur problem...
you can use 'eval' to solve ur problem...
1,992
Posted By gaurav123
try this: eval myfuntion $1 $1 let me...
try this:

eval myfuntion $1 $1

let me know if it works.......
6,369
Posted By gaurav123
this can help you: echo "" >OutputFile ...
this can help you:

echo "" >OutputFile

for file in UrDirPath/*
do

NOL=`awk '/~Curve/,/~A/ {print}' InputFile|wc -l`
echo "$file $NOL" >>OutputFile
done
4,032
Posted By gaurav123
use this: sed 's/^ //g' <inputfile...
use this:

sed 's/^ //g' <inputfile >outputfile

or

sed '/^ /d' <inputfile >outputfile
Showing results 1 to 12 of 12

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