bash;for;loop

  1. N

    Bash Scripting FOR loop with 2 variables

    Hi all, I'm not pretty sure if this post is placed in the right forum.. I'd like to write a script which does the following idea: #!/bin/bash CODESEC=`cut -c 1-5 Data.txt` CODEORD=`cut -c 7-21 Data.txt` for i in ${CODESEC} AND j in ${CODEORD} do echo $i $j done I have googled this...
Top