Delete all blank lines and save into the file itself
In all files called *.html, delete all blank lines and save into the file itself (-i option): for f in *.html; do sed -i ‘/^ *$/d’ $f; done
A chronological documentation test project, nothing serious, really!
In all files called *.html, delete all blank lines and save into the file itself (-i option): for f in *.html; do sed -i ‘/^ *$/d’ $f; done
sed -e ‘s#< [^>]*>##g’ < index.php > index.txt Another way of doing it: sed ‘s/< [^>]*>//g’ < index.php > index.txt
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