Search Results

Search: Posts Made By: raadhaakrishnan
4,137
Posted By raadhaakrishnan
if [ $a -gt 0 -a $a -lt 10 ] then a="0$a" ...
if [ $a -gt 0 -a $a -lt 10 ]
then
a="0$a"
fi
echo $a:b::b:
3,603
Posted By raadhaakrishnan
Try this in bash shell....
code:

while read line
do
count=`echo $line | grep 'string' | wc -l `
if [ $count = 1 ]
then
echo $line
echo '$$var1=5'
else
echo $line
fi
done < infile.txt > temp...
8,759
Posted By raadhaakrishnan
Dear All, Its working yar... thanks to all...
Dear All,

Its working yar... thanks to all dears...... its really interesting and i wanna know some ideas..

month=$((10#${dat:2:2}))

y we need to add "10#" and how this work dear.. please...
8,759
Posted By raadhaakrishnan
Type casting problem
hi guys,

i m new to shell script..

i dont know how to type cast string into integers and i mention my problem below..

date="21091988"
month=$((${date:2:2})) # extract the month from...
Showing results 1 to 4 of 4

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