Update Perl scripts to use /usr/local/bin/perl
 

This little script will convert the call to /local/bin/perl to /usr/local/bin/perl in your perl scripts. This is what the SGI’s want to use, and it will work on the Sun’s too.


#! /local/bin/bash
for i in `file * | grep "bin/perl" | cut -d: -f1` ; do
  perl -p -i.bak -e's@\#\!/local/bin/perl@\#\!/usr/local/bin/perl@' $i
  perl -p -i.bak -e's@\#\! /local/bin/perl@\#\! /usr/local/bin/perl@' $i
  echo $i updated
done

  Back to FAQ   ,  Home Page