
Urgent, need script or command to extract lines from a huge text file
You were given Awk solution. Now for other ways...
1. sed -n '/^.\{4\}[0-9].\{69\}[0-9]/p'
2. awk -v FIELDWIDTHS='4 1 69 1' '$2~/[0-9]/ && $4~/[0-9]/ {print}'
3. while read line; do
a=`echo "$line" | cut -c 5,75`
case "$a" in
[0-9][0-9]) echo "$line";;
esac
done
4. while read line; do
a=${line:4:1}
b=${line:74:1}
case "$a$b" in
...
esac
done
--
William Park, Open Geometry Consulting, <opengeome...@yahoo.ca>
Linux solution for data management and processing.