Cronjobb som sletter gamle filer
find /data/folder -type f -uid 400 -atime +2 -exec /bin/rm {} ; find /data/folder -type d -uid 400 -atime +2 | sort -r | /usr/bin/perl -e ‘foreach (<>) {chop; rmdir;
A chronological documentation test project, nothing serious, really!
find /data/folder -type f -uid 400 -atime +2 -exec /bin/rm {} ; find /data/folder -type d -uid 400 -atime +2 | sort -r | /usr/bin/perl -e ‘foreach (<>) {chop; rmdir;
identify filnavn.jpg Resultatet av denne kommandoen er da på formen JPEG 510×445 510×445+0+0 DirectClass 8-bit 24.8691kb
#!/bin/bash for dir in /home/* do cp /path/to/file “$dir” done
Digital Cameras embed several types of data inside the images you take, including camera manufacturer, date the picture was taken, and aperture, shutter speed, and focal length settings. These are called EXIF tags and are also called “metadata.” Here’s how to take advantage of these tags to embed your own copyright notice. You’ll need the […]
Move all files from directory dir into directories named by the original file extensions exiftool ‘-Directory<datetimeoriginal> Rename all images in dir according to the CreateDate date and time, adding a copy number with leading ‘-‘ if the file already exists (%-c), and preserving the original file extension (%e). Note the extra ‘%’ necessary to escape […]