Search Results

Search: Posts Made By: h0ujun
4,129
Posted By Scrutinizer
Perhaps like so: echo "$a" | tr -s '\t ' '...
Perhaps like so:
echo "$a" | tr -s '\t ' ' '
4,129
Posted By Scrutinizer
And here is how to do it in awk: echo "$a" |...
And here is how to do it in awk:
echo "$a" | awk '$1=$1'
1,170
Posted By balajesuri
a="apple banana cherry" echo $a | grep -q "egg"...
a="apple banana cherry"
echo $a | grep -q "egg"
if [ $? -ne 0 ]
then
egg=0
fi
1,155
Posted By Neo
Your post was in the moderation queue... we...
Your post was in the moderation queue... we approved one of them and deleted all the duplicates.
5,342
Posted By gowtham.varma
this may help you.
this may help you.
5,342
Posted By ahamed101
If you are bot bothered about the decimal values,...
If you are bot bothered about the decimal values, you can just strip it off using...

val=${i%%.*}



Or bc can be handy...

i=4.000
ret=$( echo "$i < 0" | bc )
echo $ret
0

i=-1.000...
20,852
Posted By balajesuri
echo "the middle is `echo $a | awk '{print...
echo "the middle is `echo $a | awk '{print $2}'`"
51,475
Posted By balajesuri
a=2 g="hi i am john" h=`echo $g | awk -v i=$a...
a=2
g="hi i am john"
h=`echo $g | awk -v i=$a '{print $i}'`
Showing results 1 to 8 of 8

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