links for 2007-06-24
-
John Welch talks about IT’s dealings with users and their responsibilities in response to John Gruber’s criticisms of IT’s lack of acceptance of the iPhone.
As I occasionally download AVIs to my server and then want to fetch them easily, I wrote this bash function to do it for me easily:
grabavis () {
ssh server ‘ls ‘$1′/*.avi’ | xargs -I {} -n 1 basename {} | xargs -I {} -n 1 scp server:$1/{} Desktop/{}
}
Then, I was having some problems with some of the downloaded files having parentheses in them, thus throwing some errors. Thus, I wrote this:
stripparens () {
mv $1 `echo $1 | sed ’s/[()]//g’`
}
Useful stuff.
Powered by Twitter Tools.
Powered by Twitter Tools.
Powered by Twitter Tools.
Powered by Twitter Tools.
Powered by Twitter Tools.
Powered by Twitter Tools.