hi guys
i want to create that read from a text file to print the content of the file but i has the following error
/te.txt: No such file or directory
you should know that i install ubunto on vmware and the te.txt file i put it in the home dir and here is the code

OIFS=$IFS
IFS='!'
while read line
do
arr=$line
for x in $arr
do
echo $x
done
done < "/te.txt"

hi,

te.txt is probably not right under the root directory (/), but under the current directory: ./

btw, your code seems silly, what are you trying to do?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.