in reply to Re^2: Writing to a file
in thread Writing to a file

Translating such a Perl one-liner into an actual program is fairly simple, and we can help you. But the real point is this: is this what you need?

Replies are listed 'Best First'.
Re^4: Writing to a file
by victorz22 (Sexton) on May 05, 2017 at 21:44 UTC

    No the directories do not differ by one word some are entirely different