i have the following output.Now i like to print the highest priority files with its directory links have can i do it using perl?
Available Input directory structure:Expected:html `-- DEMO |-- DEMO_.html |-- top | |-- DV | | |-- DEMO_top__DV_.html | | |-- rev1 | | | `-- DEMO_top_DV_rev1_.html | | `-- rev2 | | `-- DEMO_top_DV_rev2_.html
html `-- DEMO |-- DEMO_.html |-- top | |-- DV | | |-- DEMO_top__DV_.html | | `-- rev2 | | `-- DEMO_top_DV_rev2_.html
1.depending upon the greatest number of filenames the directory should be linked with the file.
2.The above linux comamnd fails for me.Let me know how to do it with perl or linux.
my $location = $output_dir; open LOGFILE, $location; my $first_line = 1; my $max_id; while (<LOGFILE>) { if (/_(\d)+/) { if ($first_line) { $first_line = 0; $max_id = $1; } else { $max_id = $1 if ($1 > $max_id); } } }
In reply to [OT] How to take only the links of files which has high prirority links using perl? by finddata
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |