in reply to Re: Please advice
in thread Please advice
I have written this much of code as of now.
#!/usr/bin/perl use strict; use warnings; use POSIX (); print ("Enter the directory name and date as input arguments:"); chomp($which_directory=@ARGV[0]); chomp($which_date=@ARGV[1]); die("Nothing entered as directory path name\n" if ($which_directory eq + ""); die("Nothing enetered as update date\n" if ($which_date eq ""); opendir(DIR,$which_directory); my @dir = grep { !/^\.+$/ } readdir(DIR); foreach (@dir) { -->Here I need to get all sub directories and then do a cd in each + diectory }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Please advice
by runrig (Abbot) on Aug 10, 2011 at 15:14 UTC | |
|
Re^3: Please advice
by duelafn (Parson) on Aug 10, 2011 at 14:34 UTC | |
|
Re^3: Please advice
by cdarke (Prior) on Aug 10, 2011 at 19:41 UTC | |
by ashish_sun123 (Initiate) on Aug 11, 2011 at 00:38 UTC | |
by pemungkah (Priest) on Aug 12, 2011 at 07:56 UTC |