N
Neuls
Guest
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 concept several times but i cant find a way which solves this problem, mainly because both variables are extracted from the same database .txt file and must be utilized at the same time
Thank you for yr help
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 concept several times but i cant find a way which solves this problem, mainly because both variables are extracted from the same database .txt file and must be utilized at the same time
Thank you for yr help