#!/bin/bash
cat /var/backup/192.168.4.3/dirnum.prn | awk '{print $1}'
if i put above script can read the file.
#!/bin/bash
file1=/var/backup/192.168.4.3/dirnum.prn
exec <$file1
while read line
do
echo "$line"
done
but the above script can not read the file and gives error msg "The file or directory not found"
I am confused why its happening.Pleas e help me.
cat /var/backup/192.168.4.3/dirnum.prn | awk '{print $1}'
if i put above script can read the file.
#!/bin/bash
file1=/var/backup/192.168.4.3/dirnum.prn
exec <$file1
while read line
do
echo "$line"
done
but the above script can not read the file and gives error msg "The file or directory not found"
I am confused why its happening.Pleas e help me.
Comment