I want a simple program that is given a list of files (say, output from "find") and for each file, prints the containing directory.
For example:
$ pwd /home/mobiGeek $ perl dirs.pl ../foo.html /etc/passwd /a/b/c/smile.gif /home /etc /a/b/cThanks in advance,
In reply to How do I get the directory containing a given file? by mobiGeek
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |