Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## FIND-SED-XARGS: New DIRS Named Based On Old DIRS
- Premise: creating lots of folders with small variations on a set of base names for storing various neural net training routines, based on closely related variations.
- `$ find . -maxdepth 1 -name 'foo*' -type d -exec echo {} + | sed 's/bar/other/g' | xargs -n 1 echo | xargs -n 1 mkdir`
- Here, all existing folders of name foo_\*\_bar serve as stems to create a set of new folders of the form foo_\*\_other
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement