Added slit function to cut columns.
This commit is contained in:
parent
c1fe41786b
commit
3a135cd013
1 changed files with 5 additions and 0 deletions
|
@ -46,6 +46,11 @@ function calc() {
|
|||
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() {
|
||||
ps "$@" -u "$USER" -o pid,%cpu,%mem,command
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue