Reputation: 33
Can someone explain me the meaning of this line :
wget -q -O - $URL | sed 's/<str name="id">/\&/g' > tmp.$$ 2>/dev/null
After hitting the URL, it's searching for the pattern but what's the meaning of tmp.$$ here.
Upvotes: 1
Views: 116
Reputation: 41428
$$
is the current process id in most of the commonly used unix based shells . It's probably being used to create a unique filename so multiple instances can run the same time and not squash each others temp files.
Upvotes: 2