# Example Solution A :: longer, uses 1 fewer process
curl -s -i http://git.io -F "url=$URL" | awk '/Location: /{print x=$2}END{exit!x}'
...
# # This script gets the beautiful wallpapers from http://wallbase.cc # This script is brought to you by 7sins@4geeksfromnet.com ...
Bash wallbase.sh
Get thousands of wallpapers...
ack --print0 -irl 'replace_me' location/ | xargs -0 -L1 sed -i '' 's/replace_me/with_me/g'
Bash use ack and sed to find and...
use ack and sed to find and...
#!/bin/sh # permanent settings for network interface # http://www.cyberciti.biz/tips/howto-linux-add-ethtool-duplex-settings-permanent.html ...
Bash Linux add ethtool duplex se...
# improve your netword card...
#1/bin/bash PKG_MANAGER="paludis" ...
Bash Big and Ugly Associative Ar...
Working on a script, took o...
#!/bin/bash SRC="/export/shared /export/beancounters/" ...
Bash Temp folder cleanup
I'm planning to run this sn...
#This is the error command egrep "smtp" -i ./production.log ...
Bash How to quiclky change this ...
I looking for a quick easy ...
for id in `cat ids|sort -rn|uniq`; do echo `grep -w $id ids|wc -l` :$id; done|sort -nr
Bash Groupping with stats
I was processing logs like ...
#!/usr/bin/ruby DVD_SIZE=4294967296 CD_SIZE=734003200 ...
Ruby DVD Directory Archiver
by seal-7.blogspot.com,
September 03, 2008 14:26,
No refactoring, tagged with shell, bash, monkey patch, spaghetti
Originally made to move cal...
SCRIPT="gen_${1}.sql"
echo "--gen_${1}.sql" > $SCRIPT
typeset -i counter
...
Bash Slow bash for loop.
Here's a quick and dirty ba...
Is there an awesomer shorte...