Guest User

File:: Find pl6

a guest
May 24th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. I have a directory tree like
  2. raw-files-base-dir/
  3. └── YYYY
  4. └── MM
  5. └── DD
  6.  
  7. I want to recurse through each and do 3 things
  8. 1. replace spaces in directory names with underscore
  9. 2. concatenate all filenames with a matching pattern
  10. i.e
  11. concatenate all files which have 'string1' in filename into a new file in the top directory
  12. and
  13. concatenate all files which have 'string2' in filename into a new file in the top directory
  14.  
  15. This paste is with regards to question I asked in IRC #perl6.
Add Comment
Please, Sign In to add comment