Translate uppercase characters to their corresponding lowercases
cat file| tr ‘A-Z’ ‘a-z’
A chronological documentation test project, nothing serious, really!
cat file| tr ‘A-Z’ ‘a-z’
A script using bash and md5sum to keep track of file integrity. # Change the separator to allow for filenames containing spaces # (the default is ” \t\n”, which confuses the for loop) IFS=$’\n’ FOLDERS=`find /Volumes/disk\ 1/Pictures/Photos -type d | sed ‘s/ /\\ /g’` for FOLDER in $FOLDERS; do # mind you, this will only […]
1. download photos from camera and sort them by date of day in folders 2. remove possible duplicates if I did not erase camera images since last download 3. convert RAW/NEF images to a usable format All this in one single click! #!/bin/bash # Change this to where to store Photos target=/home/multimedia/Images camera=”USB PTP Class […]
equery -C -q list | cut -d ‘ ‘ -f 5 | sed -n ‘s/-[0-9]\{1,\}.*$//p’|uniq
Tidligere kunne man spørre om hvilket program som eier f.eks fila /etc/init.d/dhcpd vha: qpkg -f /etc/init.d/dhcpd Denne kommandoen eksisterer ikke lengre så nå må man kjøre kommandoen: equery b /etc/init.d/dhcpd