I have a bash script
OLDIFS=$IFS
echo "Debugging: $1"
IFS=' '
frst=true
EXECPATH=$(file $1 | sed -r "s/^.*execfn: '([^']*)'.*$/\1/")
while read x id path x exec
do
if [ $frst = true ];then
frst=false
path=$exec
fi
.
.
Can someone explain what while read x id path x exec is? I know read reads the output and assign it to variables but why do I have two x?
Script is being called like ./myScrpt.sh 'ls filename'