Search Results

Search: Posts Made By: meroko
1,448
Posted By ctsgnb
# cat tst 20120608: [TXT 120k-130k(130k),...
# cat tst
20120608: [TXT 120k-130k(130k), manachan]
20120608: [TXT 120k-130k(130k), natsumi]
............
20120608: [Full TxT 120k-130k(130k), manatsu]
..........
2012031201: [TXT...
2,370
Posted By itkamaraj
change the below line corr_date=`awk...
change the below line


corr_date=`awk 'END {print $1, $2, $3;}' $Date`
to
corr_date=`echo $Date | awk 'END {print $1, $2, $3;}'`
2,370
Posted By agama
I think you can simplify things a bit by using a...
I think you can simplify things a bit by using a single awk to suss out the last record of the file in $i and assign it to corr_date:


corr_date=$( awk 'END { print $1, $2, $3; }' $i )


Your...
4,210
Posted By jim mcnamara
one way: var=123.1 check=$(echo "$var" |...
one way:

var=123.1
check=$(echo "$var" | tr -d '[:digit:]' | tr -d '.')
if [ -z "$check" ]; then
echo 'is all digits'
else
echo 'is not all digits'
fi
Showing results 1 to 4 of 4

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