alias execln='_() { if (($#<2)) || [[ ! $1 =~ p ]]; then echo "Usage: execln <sed line range [e.g. 1p or \"1p;3p;2p;4,5p\"]> <file>"; else eval "$(sed -n "${1}" "${2}")"; fi; }; _'
No comments:
Post a Comment