The above would work out the same way if the result of "uname -s" had been linux or unix.$ uname -s Darwin $ echo '\one\two\three\four' \one\two\three\four $ echo '\one\two\three\four' | perl -MFile::Basename -lne 'print basename($_)' \one\two\three\four $ echo '\one\two\three\four' | perl -MFile::Basename -lne 'BEGIN{fileparse_set_fstype("DOS")} prin +t basename($_)' four
In reply to Re^2: Quick Regex Needed
by graff
in thread Quick Regex Needed
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |