nirelit has asked for the wisdom of the Perl Monks concerning the following question:
hello community,
Say we have the following structure in our filesystem:
dir stands for directory of course. In dir1, there is a file1.txt that has in it numbers, like belowdir1 dir2 dir3 dir4
6576576 898798789 5645436549 76567576576 876876876876
Same goes for dir2. In dir2, there is a file2.txt, that has in it numbers, like below
6576576 89879878963 56454365492 765675765763 8768768768765
And so on, with all the rest of the folders. What we need to do, is have a new file (like an index) out of all directories and files values, like below:
And secondly, another index file, which will have the reverse infodir1;6576576,898798789,5645436549,76567576576,876876876876 dir2;6576576,89879878963,56454365492,765675765763,8768768768765
6576576;dir1,dir2
Any ideas on how would you approach this?
Best
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: creating an index of files contents
by haukex (Archbishop) on Sep 23, 2016 at 09:43 UTC | |
by nirelit (Initiate) on Sep 23, 2016 at 09:58 UTC | |
by haukex (Archbishop) on Sep 23, 2016 at 10:35 UTC | |
by haukex (Archbishop) on Sep 23, 2016 at 12:24 UTC | |
by nirelit (Initiate) on Sep 23, 2016 at 13:03 UTC | |
|
Re: creating an index of files contents
by GotToBTru (Prior) on Sep 23, 2016 at 12:01 UTC | |
|
Re: creating an index of files contents
by kcott (Archbishop) on Sep 25, 2016 at 04:10 UTC |