# 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}'

...

Bash git.io data filter with pro...

by Barry A., December 28, 2011 18:31, 2 refactorings, tagged with bash, awk, sed, grep, sh

Is there an awesomer shorte...

3f582b2bc3caf0d7074e85cdf2046a0f Talk
#
# This script gets the beautiful wallpapers from http://wallbase.cc
# This script is brought to you by 7sins@4geeksfromnet.com
...

Bash wallbase.sh

by sergio, October 13, 2011 08:22, 1 refactoring, tagged with bash, wallpapers, shell script

Get thousands of wallpapers...

A5f3d249cc5053cdc1eb4ede60fd2f45 Talk
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...

by Kevin Tran, February 18, 2011 01:35, No refactoring, tagged with replace, bash, find, ack, sed

use ack and sed to find and...

D41d8cd98f00b204e9800998ecf8427e Talk
#!/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...

by sergio, April 05, 2010 15:48, No refactoring, tagged with bash

# improve your netword card...

A5f3d249cc5053cdc1eb4ede60fd2f45 Talk
#1/bin/bash

PKG_MANAGER="paludis"
...

Bash Big and Ugly Associative Ar...

by gregf, November 14, 2009 03:43, 3 refactorings, tagged with bash, array hash

Working on a script, took o...

70b86492b31e21b0748cc637a6b2f05a Talk
#!/bin/bash

SRC="/export/shared /export/beancounters/"
...

Bash Temp folder cleanup

by agnul, November 11, 2009 15:46, 2 refactorings, tagged with bash

I'm planning to run this sn...

Ee62f45441fbf8409dfd4adaa40a74aa Talk
#This is the error command
egrep "smtp" -i ./production.log

...

Bash How to quiclky change this ...

by carlpelletier.myopenid.com, July 27, 2009 17:45, 2 refactorings, tagged with bash

I looking for a quick easy ...

321d08dbad2770da0994b5f53bc8757a Talk
for id in `cat ids|sort -rn|uniq`; do echo `grep -w $id ids|wc -l` :$id; done|sort -nr

Bash Groupping with stats

by gmarik.blogspot.com, November 01, 2008 12:37, 2 refactorings, tagged with bash, groupping

I was processing logs like ...

55502f40dc8b7c769880b10874abc9d0 Talk
#!/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...

55502f40dc8b7c769880b10874abc9d0 Talk
SCRIPT="gen_${1}.sql"
echo "--gen_${1}.sql" > $SCRIPT
typeset -i counter
...

Bash Slow bash for loop.

by furtive, February 07, 2008 19:57, 6 refactorings, tagged with speed, bash, loop

Here's a quick and dirty ba...

55502f40dc8b7c769880b10874abc9d0 Talk