Glad it now works for you and I applaud your willingness to learn.
Quote:
file=$1 #what does this do?
|
$1 is a bash positional parameter. When bash is invoked, $0 is set to the name of the file, and the positional parameters are set to the remaining arguments. In this script, the $1 is the filename passed by the 'find' command.
Quote:
while read ; do #where does read come from
|
'read' is a bash builtin command.In this script the construction
Code:
while read ; do
...
done < File.txt
causes one line at a time to be read from the standard input which has been redirected to come from File.txt.
Quote:
#whats the meaning of $REPLY and #
|
The line read is saved in the shell variable REPLY when no arguments are supplied.
The ${REPLY#hnlVerilog} is a bash parameter expansion that removes the prefix 'hnlVerilog' from the string in REPLY.
HTH