in reply to extract file name from path
my $line = 'root 30145 1 0 Jan30 ? 00:09:01 /root/java/app/java_app_1R +ule_java_app_2Rule.java --javaproc'; if ($line =~ m|/([^/]*?)\.[a-z0-9]+|) { print "$1\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: extract file name from path
by Laurent_R (Canon) on Sep 12, 2013 at 07:52 UTC |