Hello everyone I\'m very new to the game so my question is probably rather simple but I\'m stuck at this for a long time. I want to process two files from two list of files
LINECOUNTER=1
while true; do
FILE1INPUT="$(sed -n "${LINECOUNTER}p" file1.txt)"
FILE2INPUT="$(sed -n "${LINECOUNTER}p" file2.txt)"
echo "$FILE1INPUT and $FILE1INPUT"
let LINECOUNTER=LINECOUNTER+1
done
$(sed ...)
to the
variable FILE1INPUT. This sed command just reads one line, specified
by LINECOUNTER from file1.txt. Same with file2.txtOf course one needs an appropriate condition for the while loop to end.