2 # Synopsis: fixline1 newpath < input > output
5 # Description: change first line of script to reflect new binary
6 # try to match any of the following first lines
12 regsub "^#!(.*/)*(.*)" [gets stdin] "#!$argv/\\2" line1
13 puts -nonewline "$line1\n[read stdin]"