summaryrefslogtreecommitdiffhomepage
path: root/src/prj/mmv/camel-to-snake-naïve.sh.html
blob: 573da4116f5649810a7f1a616720e33c596e6f75 (plain) (blame)
1
2
<span class="sh-cmt"># If you aren’t a shell-guru, take a moment to figure out how this works!</span>
$ <span class="sh-fn">ls</span> *.[ch] | <span class="sh-fn">sed</span> <span class="sh-str">'p; s/[A-Z]/\L_&/g'</span> | <span class="sh-fn">xargs</span> -L2 mv