I'm trying to write an script where I'll be processing all the lines of an input file but one line at a time and produce a written output for each processed line.
Where I'm having problems is preparing the loop where I check a the first line of the input file cut some bytes out of the line and echo them in the screen.
What I had in mind is something like this
#!/usr/sh
FILE=$1
while (we haven't reach the end of the file)
do
VAR1=$(cut -b x-y $curent Line
echo "The value is : $VAR1"
done