Search Results

Search: Posts Made By: h0ujun
4,160
Posted By Scrutinizer
Perhaps like so: echo "$a" | tr -s '\t ' '...
Perhaps like so:
echo "$a" | tr -s '\t ' ' '
4,160
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,187
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,170
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,502
Posted By gowtham.varma
this may help you.
this may help you.
5,502
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...
21,149
Posted By balajesuri
echo "the middle is `echo $a | awk '{print...
echo "the middle is `echo $a | awk '{print $2}'`"
51,497
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:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy