Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
448 B

  1. #!/usr/bin/perl
  2. # $RCSfile: ged,v $$Revision: 4.1 $$Date: 92/08/07 17:20:18 $
  3. # Does inplace edits on a set of files on a set of machines.
  4. #
  5. # Typical invokation:
  6. #
  7. # ged vax+sun /etc/passwd
  8. # s/Freddy/Freddie/;
  9. # ^D
  10. #
  11. $class = shift;
  12. $files = join(' ',@ARGV);
  13. die "Usage: ged class files <perlcmds\n" unless $files;
  14. exec "gsh", $class, "-d", "perl -pi.bak - $files";
  15. die "Couldn't execute gsh for some reason, stopped";