Sample Exercises
Command Line: Edit In Place
Write a command-line program that modifies the contents of the file(s) given on the command line, replacing the word "Java" with "Perl" wherever it occurs, case-insentively. In other words, delete any It should create a file called foo.txt.old for any file foo.txt given, containing the original contents; the file foo.txt should contain the modified version. (Yes, you can do this only with Perl command-line options!)
Solution for Edit In Place
SolutionLast updated:
Copyright © 1995-2008 William R. Ward dba Bay View Training. All Rights Reserved. “Bay View Training”, “Bay View Consulting Services”, “Bay View Software”, the sailboat logo, and the domain name “bayview.com” are trademarks and/or service marks of William R. Ward dba Bay View Training. For more information, contact training@bayview.com
