Hacker News new | past | comments | ask | show | jobs | submit login

I haven’t tested this exact scenario but I like doing something like this when needed

    mkdir -p path/to/{one,two,three}/done
To create:

* path/to/one/done

* path/to/two/done

* path/to/three/done




Particularly helpful for quickly appending something to a file name

    mv something{,.old}


Shell alternation globs do ranges too, so be careful :)

  echo -e {A..Z}{a..z}{0..9}/{A..Z}{a..z}{0..9}"\n"|wc -l
  45697601
Runs for a bit too.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: