I am getting the below output which i have stored in $line variable.
$line = root 30145 1 0 Jan30 ? 00:09:01 /root/java/app/java_app_1Rule_ +java_app_2Rule.java --javaproc
Now i need to parse our "java_app_1Rule_java_app_2Rule"(name of the application).
I tried someting like my $id = $line =~m { /\/(.+)java/ }gx; but i am not getting any output.What am i missing here? Please help.
In reply to extract file name from path by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |