You mean like
perl -E'say "http://www.google.com/search?q=$ARGV[0]"' machine [download]
In reply to Re^3: how to get url of google search by zwon in thread how to get url of google search by ansh batra