Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. ## FIND-SED-XARGS: New DIRS Named Based On Old DIRS
  2.  
  3. 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.
  4.  
  5. `$ find . -maxdepth 1 -name 'foo*' -type d -exec echo {} + | sed 's/bar/other/g' | xargs -n 1 echo | xargs -n 1 mkdir`
  6.  
  7. 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