Public feed #599784

Mine

public shellscript v1 · immutable
Raw Edit
·published 2007-07-02 13:15 UTC
rendered paste body
#!/bin/bashcd /tmp || { echo "Unable to cd to /tmp ... Exiting" && exit 1; }echo $'a\nb\nc\nphp\nhtml\nomg' > tempfileed - ./tempfile <<< $'v/\(php\|html\)/d\nw\nq'[[ -s ./tempfile ]] && echo "ed worked!"rm ./tempfile