dotfiles/.bin/OLD/list-myfiles

64 lines
1.9 KiB
Plaintext
Raw Normal View History

#!/bin/sh
(
#find \
# $HOME/.config/* \
# $HOME/.* \
# -maxdepth 1 \
# \( -name "*.cfg" \
# -o -name "*.conf" \
# -o -name "*.lua" \
# -o -name "*.sh" \
# -o -name "*.pl" \
# -o -name "*.c" \
# -o -name "*.h" \
# -o -name "*.ksh" \
# -o -name "*.local" \
# -o -name "*.txt" \
# -o -name "*.html" \
# -o -name "*.md" \
# -o -name "*.th" \
# -o -name "*.ps" \
# -o -name "*.pm" \
# -o -name "Makefile" \
# -o -name "*.toml" \
# -o -name "*.xsession*" \
# -o -name "*rc" \
# -o -name ".Xresources" \
# -o -name ".Xdefaults" \
# -o -name ".ini" \
# -o -name "config" \
# \) -type f
find "$PWD" \
-maxdepth 3 \
-not \( -path "*CVS*" \
-o -path "*.git*" \
-o -path "*.fonts*" \
-o -path "*cache*" \
-o -path "$HOME/.cfg*" \
-o -iname "*.tags" \
-o -iname "*cscope*" \
-o -iname "*.db" \
-o -iname "*.mkv" \
-o -iname "*.mp4" \
-o -iname "*.avi" \
-o -iname "*.flv" \
-o -iname "*.mov" \
-o -iname "*.torrent" \
-o -iname "*.dat" \
-o -iname "*.img" \
-o -iname "*.iso" \
-o -iname "*.ldb" \
-o -iname "*.mp3" \
-o -iname "*.ogg" \
-o -iname "*.png" \
-o -iname "*.jpg" \
-o -iname "*.flac" \
\) -type f
) | sed 's,/home/dpb/usr/ports/,/usr/ports/,' \
| sed "s,$PWD/,," \
| sort -ur