1
0
Fork 0

Added slit function to cut columns.

pull/3/head
Sorin Ionescu 14 years ago
parent c1fe41786b
commit 3a135cd013

@ -46,6 +46,11 @@ function calc() {
echo "scale=4; $@" | bc -l echo "scale=4; $@" | bc -l
} }
function slit() {
# Print columns 1 2 3 ... n.
awk "{ print $(for n; do echo -n "\$$n,"; done | sed 's/,$//') }"
}
function pmine() { function pmine() {
ps "$@" -u "$USER" -o pid,%cpu,%mem,command ps "$@" -u "$USER" -o pid,%cpu,%mem,command
} }

Loading…
Cancel
Save