harsh3466
harsh3466@lemmy.ml
Posts
-
View post
10/10 for not using g the arr naming scheme
-
View post
find /path/to/starting/dir -type f -regextype egrep -regex 'some[[:space:]]*regex[[:space:]]*(goes|here)' -exec mv {} /path/to/new/directory/ \; I routinely have to find a bunch of files that match a particular pattern and then do something with those files, and as a result, find with -exec is one of my top commands. If you’re someone who doesn’t know wtf that above command does, here’s a breakdown piece by piece: find - cli tool to find files based on lots of different parameters...