Search Results

Search: Posts Made By: pradeepcarya
4,047
Posted By pandeesh
hi, try this: #!/bin/sh a=`echo $1|awk...
hi,
try this:

#!/bin/sh
a=`echo $1|awk '/_delta$/{ print 1}'`
if [ $a -eq 1 ]
then
echo pass
else
echo fail
fi
4,047
Posted By sprakash
Hi , try this .. #!/bin/bash grep...
Hi ,

try this ..
#!/bin/bash
grep _delta$ $1
if [ $? -eq 0 ]
then
echo pass
else
echo fail
fi

How to use code tags...
4,047
Posted By greet_sed
try as follows in balajesuri code: echo $1 |...
try as follows in balajesuri code:
echo $1 | grep -q "_delta$"instead of
echo $1 | grep -q "_delta"
4,047
Posted By pandeesh
One more alternative using awk: #!/bin/sh ...
One more alternative using awk:

#!/bin/sh
a=`echo $1|awk '/_delta/{ print 1}'`
if [ $a -eq 1 ]
then
echo pass
else
echo fail
fi
1,892
Posted By vbe
Its not generally... It depends of OS and...
Its not generally... It depends of OS and configuration...
e.g.
in HP-UX it will be <Esc><Esc>, in AIX it will be <Esc><\>
...
Showing results 1 to 5 of 5

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