Mercurial > repo
view bin/makelist @ 7757:99c5e6af1e66
<fizzie> ` echo -e \'#! bin/bash\\ncmd="$1"\\nshift\\nf="$*"\\nif [ -z "$f" ]; then f="${cmd#* }"; cmd="${cmd%% *}"; fi\\nif [ -z "$f" ]; then echo try: \\\\`f command filename; else "$cmd" "$(< "$f")"; fi\' > bin/f
author | HackBot |
---|---|
date | Wed, 04 May 2016 21:33:42 +0000 |
parents | b1b9a2c7a4f7 |
children | ea53c45c49aa |
line wrap: on
line source
file="bin/$1"; shift; cp bin/emptylist "$file"; for n in "$@"; do echo "$n" >> "$file"; done