1
0
Fork 0
dotfiles/.config/nsxiv/exec/thumb-info

12 lines
158 B
Plaintext
Raw Normal View History

2024-02-28 18:11:59 +01:00
#!/bin/sh
s=" " # field separator
exec 2>/dev/null
filename=$(basename -- "$4")
filesize=$(du -Hh -- "$4" | cut -f 1)
echo "${filesize}${s}${filename}"