This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
count () { | |
test -d "$1" || cd "$1" | |
for i in * | |
do | |
dirsep=$(test -d $i && echo /) | |
echo ${i}${dirsep} $(find $i -type f -exec cat {} + | wc -l) | |
done | dmenu -l 10 | count | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[hendry@t480s src]$ find firefox-78.0.1 -type f -exec wc -l {} \; | awk '{ SUM += $1} END { print SUM }' | |
43627834 | |
[hendry@t480s src]$ find firefox-78.0.1 -type f -exec wc -l {} + | awk '{ SUM += $1} END { print SUM }' | |
87255668 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[hendry@t480s src]$ find firefox-78.0.1 -type f | xargs wc -l | grep 'total$' | awk '{ SUM += $1} END { print SUM }' | |
wc: firefox-78.0.1/obj-x86_64-pc-linux-gnu/_virtualenvs/init/lib/python2.7/site-packages/setuptools/script: No such file or directory | |
wc: '(dev).tmpl': No such file or directory | |
wc: firefox-78.0.1/obj-x86_64-pc-linux-gnu/_virtualenvs/init/lib/python2.7/site-packages/setuptools/command/launcher: No such file or directory | |
wc: manifest.xml: No such file or directory | |
xargs: unmatched single quote; by default quotes are special to xargs unless you use the -0 option | |
10024971 | |
[hendry@t480s src]$ find firefox-78.0.1 -type f | xargs -0 wc -l | grep 'total$' | awk '{ SUM += $1} END { print SUM }' | |
xargs: argument line too long |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@knuckles mnt]# mount -t exfat /dev/mmcblk0p1 /mnt/sdcard | |
FUSE exfat 1.3.0 | |
Usage: /sbin/mount.exfat [-d] [-o options] [-V] <device> <dir> | |
[root@knuckles mnt]# mount.exfat /dev/mmcblk0p1 /mnt/sdcard | |
FUSE exfat 1.3.0 | |
WARN: '/dev/mmcblk0p1' is write-protected, mounting read-only. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input=/mnt/sdcard/ | |
find $input -iname "*.jpg" | while read fn | |
do | |
if test $(exiv2 -Pv -g Xmp.xmp.Rating $fn) == 3 | |
then | |
dt=$(exiv2 -g Exif.Image.DateTime -Pv $fn) | |
read -r date time <<< "$dt" | |
IFS=: read -r year month day hour min secs <<< "$date" | |
IFS=: read -r hour min secs <<< "$time" | |
ymd=$(date -u -d "${year}-${month}-${day}T${hour}:${min}:${secs}" +%Y-%m-%d) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input=/mnt/sdcard/ | |
find $input -iname "*.jpg" | while read fn | |
do | |
if test $(exiv2 -Pv -g Xmp.xmp.Rating $fn) == 3 | |
then | |
dt=$(exiv2 -g Exif.Image.DateTime -Pv $fn) | |
read -r date time <<< "$dt" | |
IFS=: read -r year month day hour min secs <<< "$date" | |
IFS=: read -r hour min secs <<< "$time" | |
ymd=$(date -u -d "${year}-${month}-${day}T${hour}:${min}:${secs}" +%Y-%m-%d) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
img { border: thin black solid; } | |
h2 ~ img {border: thin red solid; clear: left; float: left;} | |
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hendry@knuckles ~ $ sudo xbps-remove linux5.4-headers | |
linux5.4-headers-5.4.32_1 in transaction breaks installed pkg `linux-headers-5.4_1' | |
Transaction aborted due to unresolved dependencies. | |
hendry@knuckles ~ $ sudo xbps-remove linux5.4-headers_1 | |
Package `linux5.4-headers_1' is not currently installed. | |
hendry@knuckles ~ $ sudo xbps-remove linux-headers-5.4_1 | |
linux-headers-5.4_1 in transaction breaks installed pkg `dkms-2.8.1_1' | |
Transaction aborted due to unresolved dependencies. | |
hendry@knuckles ~ $ sudo xbps-remove linux-headers-5.4_1 dkms | |
dkms-2.8.1_1 in transaction breaks installed pkg `wireguard-dkms-1.0.20200413_1' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hendry@knuckles ~ $ cat /etc/xbps.d/newer_kernel.conf | |
virtualpkg=linux:linux5.6 | |
hendry@knuckles ~ $ sudo xbps-remove linux5.4 | |
linux5.4-5.4.32_1 in transaction breaks installed pkg `linux-5.4_1' | |
Transaction aborted due to unresolved dependencies. | |
hendry@knuckles ~ $ sudo xbps-remove linux5.4_1 | |
Package `linux5.4_1' is not currently installed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hendry@knuckles ~ $ sudo xbps-remove linux5.4 | |
linux5.4-5.4.32_1 in transaction breaks installed pkg `linux-5.4_1' | |
Transaction aborted due to unresolved dependencies. | |
hendry@knuckles ~ $ sudo xbps-remove linux5.4_1 | |
Package `linux5.4_1' is not currently installed. |