String-Funktionen

${var:pos[:len]} # extract substr from pos (0-based) for len
${var/substr/repl} # replace first match
${var//substr/repl} # replace all matches
${var/#substr/repl} # replace if matches at beginning (non-greedy)
${var/##substr/repl} # replace if matches at beginning (greedy)
${var/%substr/repl} # replace if matches at end (non-greedy)
${var/%%substr/repl} # replace if matches at end (greedy)
${#var} # returns length of $var
${!var} # indirect expansion

Quelle

Ein bisschen curl

Irgendeine Datei aus dem Netz laden:

curl $url -O -s

Extrahieren von Text mittels grep aus einer Seite:

curl $url 2>&1 | grep -o -E 'src="([^"#]+)"' | cut -d'"' -f2

Inspiration: http://saikotroid.blogspot.de/2011/07/get-links-from-page-with-bash.html