Skip to main content

meta

file info

to-do:grep find analytics scripts for listing video / imagefile sizes

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

grep file sizes and names

for nxn in * ; do identify $nxn | echo $nxn `grep -oE '([0-9]*)x([0-9]*)[[:space:]]'` >> fajl ;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