in reply to Re: Create new directories
in thread Create new directories
Here is the code I have so far, I am looping through and getting the directory and making the directories. How do I get the group and owner information from the lines below the directory.
open(FILE,"@ARGV[0"); while (defined ($line = <FILE>)) { chomp $line; if $line =~ /mydir/) { $directory = substr($line, 8); } mkdir $directory, "\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Create new directories
by Corion (Patriarch) on May 29, 2008 at 14:22 UTC | |
|
Re^3: Create new directories
by pc88mxer (Vicar) on May 29, 2008 at 16:02 UTC | |
by linuxer (Curate) on May 29, 2008 at 21:11 UTC |