shell scripting
0 10 * * * /usr/bin/find ~/Downloads -ctime +30 -print0|xargs -0 rm -rf
I assume no liability for any unintended results! ;)
Not too much to share today - just a couple neat little things I ran across over the past couple of days, to wit:
1. if you give chown a user with a trailing colon, it will automatically use that user's default group. ex:
2. Pinfo is a more user-friendly info file reader/browser. The jk keys do what any God-fearing vi user would expect them to.
@rant: I don't want to learn emacs keystrokes just to read info that should have been in the man page! durn kids these days...
that's all for today!
1. if you give chown a user with a trailing colon, it will automatically use that user's default group. ex:
- root@rollett:~/blog# touch t
- root@rollett:~/blog# ls -l t
- -rw-r--r-- 1 root root 0 Feb 23 22:21 t
- root@rollett:~/blog# chown www-data: t
- root@rollett:~/blog# ls -l t
- -rw-r--r-- 1 www-data www-data 0 Feb 23 22:21 t
@rant: I don't want to learn emacs keystrokes just to read info that should have been in the man page! durn kids these days...
that's all for today!
This is the first of a series of at least two posts about how I've configured the excellent Gnu Screen to fit my needs and make me more productive.
While I was working on a website migration for work, I found myself wanting a way to preserve formatting without keeping really poorly formatted html. (probably made by Word, a lot of blockquotes instead of list tags, etc.)