Search Results

Search: Posts Made By: aju_kup
5,456
Posted By aju_kup
try for loop example u can get by googling
try for loop

example u can get by googling
2,681
Posted By aju_kup
perl help on hash
I have line which is read from xml doc. I want to put this line into hash(perl variable). find line below and how i want to put this in hash

<font size="10" type="int" name="ABC" >

hash key...
10,790
Posted By aju_kup
perl for running ps -ef command
I have following script

$cmd="ps -ef |";
open(PSINFO, $cmd) || die "Unable to get ps -ef information from System";

while running script with above lines, it is showing following err

ps:...
4,141
Posted By aju_kup
nawk -v a="$1" -v b="$2" '{ printf("%d\n",...
nawk -v a="$1" -v b="$2" '{ printf("%d\n", a/b+0.9)}'
2,583
Posted By aju_kup
find err in red. U need to prefix $ sign ...
find err in red. U need to prefix $ sign

FILE="test_data"
COUNT=0
#Storing in a array
while read LINE_FROM_FILE
do
TEXT_LINE[$COUNT]=$LINE_FROM_FILE
COUNT=`expr $COUNT + 1`
done < $FILE...
2,424
Posted By aju_kup
can u pls show ur script
can u pls show ur script
19,351
Posted By aju_kup
$ echo $var ./testsed.ksh $ echo $var | sed...
$ echo $var
./testsed.ksh
$ echo $var | sed 's:^\./::'
testsed.ksh
$
2,424
Posted By aju_kup
input file $ cat prinfdata 12345 12345 44...
input file

$ cat prinfdata
12345 12345 44 0 234
222222222 444 0 4444444 666666888999


awk '{ printf("%-12s %-6s %-3s %-12s %-25s\n", $1, $2 , $3, $4, $5)}' prinfdata

output


12345 ...
2,424
Posted By aju_kup
use printf
use printf
32,101
Posted By aju_kup
u can use typeset to set variable type as int....
u can use typeset to set variable type as int. like:-

typeset -i var

it will give error while assigned non-int value to it

$ var=sdf
$ ksh: sdf: bad number

after assignment u can chk for...
32,101
Posted By aju_kup
* in regexp mean 1 or more occurances of...
* in regexp mean 1 or more occurances of preceeding char. just to make sure that it should have aleast one num char
32,101
Posted By aju_kup
echo $var | grep "^[0-9][0-9]*$" if [ $? -eq...
echo $var | grep "^[0-9][0-9]*$"

if [ $? -eq "0" ]
then
statement when number
else
statement when char
fi
5,891
Posted By aju_kup
cat file1 file2 | sort | uniq -d > file3
cat file1 file2 | sort | uniq -d > file3
57,842
Posted By aju_kup
grep "test" * | wc -l
grep "test" * | wc -l
10,209
Posted By aju_kup
rowCountEntered=98 totalRowCount=1000 ...
rowCountEntered=98
totalRowCount=1000

typeset -i numberOfFilesGenerated
numberOfFilesGenerated=`echo $totalRowCount $rowCountEntered | awk '{print $1/$2}'`


echo $numberOfFilesGenerated
10
10,209
Posted By aju_kup
can u pls show me ur script. even I am using ksh
can u pls show me ur script. even I am using ksh
10,209
Posted By aju_kup
$ typeset -i var $ var=100.100 $ echo $var ...
$ typeset -i var
$ var=100.100
$ echo $var
100
1,609
Posted By aju_kup
can u pls tell how u want output.
can u pls tell how u want output.
57,842
Posted By aju_kup
ls -l | grep -c "^-.*"
ls -l | grep -c "^-.*"
1,609
Posted By aju_kup
change this line echo Queue Name...
change this line

echo Queue Name `$($count)`
to

echo "Queue Name $count"

it is better to use double quote with echo when u have more than 1 wards to echo
2,671
Posted By aju_kup
$ z=`expr $x / $y`
$ z=`expr $x / $y`
32,014
Posted By aju_kup
It is not a problem for us to answer your...
It is not a problem for us to answer your queries... what I mean is like this u will not learn
32,014
Posted By aju_kup
var=$(echo "abc cb fg" | wc -w)
var=$(echo "abc cb fg" | wc -w)
32,014
Posted By aju_kup
satish, I have question, are trying before...
satish,

I have question, are trying before posting?
10,258
Posted By aju_kup
ls | grep -v "test\.txt" | xargs rm
ls | grep -v "test\.txt" | xargs rm
Showing results 1 to 25 of 186

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