user2820678
user2820678

Reputation: 33

What does filename.$$ means in sed command

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

Answers (1)

Ray
Ray

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

Related Questions