Quote:
Originally Posted by dhirendrs
Thanks for your valuable input ,
I have debug with sh -xv abc.sh and found below . i have update script as per below .
Code:
#!/bin/sh
LIMIT00=2014010100
for i in hid*; do
printf 's\n' "$i" | (
IFS=. read UNUSED UNUSED DATUM00 UNUSED
echo $LIMIT00
echo $DATUM00
if [ "$DATUM00" -lt "$LIMIT00" ]; then
printf 'Wow %s *is* old\n' "$i"
else
printf 'Wow %s is not too old\n' "$i"
fi
)
done
As per script it should be out put " Wow %s *is* old\n'" but it is giving wrong so please help on above .
|
Again, as you've been told
SEVERAL TIMES NOW, you need to figure this out and show some effort of your own. All you've done is change the LIMIT00 variable, to something that won't work.
PLEASE STOP asking us to write your script for you. You've been given many hints, sample scripts, etc., and are still asking for more, yet haven't shown any effort of your own.