Mireille's blog
Fun things, ideas about technology, cheat sheets, data + code.

cli - one liners

Here are some command line one liners that I find myself using once and once again.

Renaming files in a folder to sequential numbers
ls -v | cat -n | while read n f; do mv -n "$f" "$n.jpg"; done