i want to make echo username inside userlist.txt, and check the main loop if username is inside chk.txt, and pause 60 second before continue the main loop
filename1="/home/user/userlist.txt"
while read -r file1
do
filename2 = "/home/user/chk.txt"
while read -r file2
do
text2 = $file2
if $file2 == "username"
pause 60
done < "filename2"
text="$file1"
txt=($file1)
name=${txt[0]}
echo $name
sleep 10
done < "$filename1"
sorry for really bad explaination