Softpanorama
(slightly skeptical) Open Source Software Educational Society

May the source be with you, but remember the KISS principle ;-)

Softpanorama Search

Introduction to Perl for Unix System Administrators

(Perl without excessive complexity)

by Dr Nikolai Bezroukov


Homework

  1. Write a pattern that matches all files that have extensions DOC, DOT and RTF.
  2. Write a program that accepts input from STDIN and changes all instances of the one word into another (words should be passed as parameter)
  3. Write a pattern that matches files that contain digits in their names
  4. Write a program that finds and print all references to www.softpanorama.org  in any given file.
  5. Write a pattern that match words that are hexadecimal numbers
  6. Write a program that replace all tab character with 8 blanks
  7. Write a pattern that print all double quoted strings in the program


Copyright © 1996-2009 by Dr. Nikolai Bezroukov. www.softpanorama.org was created as a service to the UN Sustainable Development Networking Programme (SDNP) in the author free time. Submit comments This document is an industrial compilation designed and created exclusively for educational use and is placed under the copyright of the Open Content License(OPL). Site uses AdSense so you need to be aware of Google privacy policy. Original materials copyright belong to respective owners. Quotes are made for educational purposes only in compliance with the fair use doctrine.

Disclaimer:

Last modified: September 05, 2009