Skip to main content

meta

file info

grep file sizes

for nxn in * ; do identify $nxn | grep -oE '([0-9]*)x([0-9]*)[[:space:]]' >> list-sizes.txt; done

grep file sizes and names

for nxn in * ; do identify $nxn | echo $nxn `grep -oE '([0-9]*)x([0-9]*)[[:space:]]'` >> list-sizes-names.txt ;done

folder info

0. tree:

tree > tree.txt

1. regex to clean lines up to the extension (leaving only last 3 chars, without the preceeding '.')

.*(?=\.).

2. clean extra newlines

\n\n
to
\n

3. regex to replace multiple duplicate lines with one single

^(.*)(\r?\n\1)+$
to
\1