avoid collisions with common /usr/bin/ commands
rename head, tail, zip to lhead, ltail, and lzip to avoid collisions with command unix commands
This commit is contained in:
parent
7b6531a74e
commit
1ead6d0b87
3 changed files with 18 additions and 18 deletions
|
@ -8,11 +8,11 @@ take() {
|
|||
command head -n ${1}
|
||||
}
|
||||
|
||||
tail() {
|
||||
ltail() {
|
||||
drop 1
|
||||
}
|
||||
|
||||
head() {
|
||||
lhead() {
|
||||
take 1
|
||||
}
|
||||
|
||||
|
@ -316,7 +316,7 @@ ntupr() {
|
|||
ntupx 1- "$@" | last
|
||||
}
|
||||
|
||||
zip() {
|
||||
lzip() {
|
||||
local list=$*
|
||||
cat - | while read x; do
|
||||
y=$(list $list | take 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue