develooper Front page | perl.beginners | Postings from January 2002

simple command line execution

Thread Next
From:
Booher Timothy B 1stLt AFRL/MNAC
Date:
January 4, 2002 08:24
Subject:
simple command line execution
Message ID:
30C9E24891FFD411B68A009027724CB701C9AD97@eg-002-015.eglin.af.mil
Is it possible to use a simple perl script to do simple unix commands.
(similar to the shell scripts)?

For example I want to run a unix command on all files in a current
directory:

Shell script (just pick dos2unix for example):

Foreach f (*.*)
	Dos2unix $f
	Echo $f . " cleaned"
Done

Thanks,

tim

____________________________________________________
Timothy B Booher, Lt USAF, AFRL/MNAC
101 West Eglin Blvd, Suite 339 
Eglin AFB FL 32542-6810 
Phone: 850-882-8302 Ext. 3360 (DSN 872-)
FAX: 850-882-2201


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About