3 ms·
Because file="~/.gitshots/$(date).jpg" echo "Taking capture into ${file}!" imagesnap -q -w 3 $file is so arcane.
by quarterto 14y ago
Because
file="~/.gitshots/$(date).jpg"
echo "Taking capture into ${file}!"
imagesnap -q -w 3 $file
is so arcane.
- batista 14y agoNo, the options when you need to add something more are arcane. Plus the above wont even work as is, since $(date) contains spaces.
- adobriyan 14y ago> Plus the above wont even work as is, since $(date) contains spaces. This would be "more direct" part.
- jdub 14y agoEven better (the silence principle): #!/bin/sh imagesnap -q -w 3 "~/.gitshots/$(date).jpg" (date(1) with spaces will be fine due to the double quotes, although it won't be in date order when sorted by name, which would annoy me...)