I am having trouble populating a variable with a command line. I am sure I am formatting it incorrectly, but I am not sure how. I want to take a list of URLs, something like:
and print out:
I am using the following, but getting an error "./test.sh: line 3: =: command not found"
while read LINE; do
$NAME = `echo $LINE | cut -d \/ -f4`
done < url-list.txt
Any ideas on how I formatted the $NAME variable wrong?