Compare commits
No commits in common. "68c6fe6acfe3840e0facd368b47892006158319f" and "905a53caf272a0dc083f59b41597530bf9a116bd" have entirely different histories.
68c6fe6acf
...
905a53caf2
26
.bashrc
26
.bashrc
|
@ -139,16 +139,6 @@ gitpush() {
|
|||
}
|
||||
|
||||
swp() {
|
||||
myhelp() {
|
||||
echo 'This tool is usefull to remove .swp files'
|
||||
echo 'Usage: swp [-d dir] [-noi]'
|
||||
echo 'if you do not specify the directory in -d param, search starts from the current'
|
||||
echo 'if you do not specify the -noi param files removing is interactive'
|
||||
}
|
||||
if [ "$1" == '-h' ]; then
|
||||
myhelp
|
||||
return 1
|
||||
fi
|
||||
cpath=.
|
||||
interactive='-i'
|
||||
while [ -n "$1" ]; do # while loop starts
|
||||
|
@ -169,17 +159,6 @@ swp() {
|
|||
}
|
||||
|
||||
purgefext() {
|
||||
myhelp() {
|
||||
echo 'This tool is usefull to remove specific files type'
|
||||
echo 'Usage: purgefext -e ext [-d dir] [-noi]'
|
||||
echo 'the e param is mandatory: is the files extension you want to remove'
|
||||
echo 'if you do not specify the directory in -d param, search starts from the current'
|
||||
echo 'if you do not specify the -noi param files removing is interactive'
|
||||
}
|
||||
if [ "$1" == '-h' ]; then
|
||||
myhelp
|
||||
return 1
|
||||
fi
|
||||
cpath=.
|
||||
interactive='-i'
|
||||
ext=''
|
||||
|
@ -198,11 +177,6 @@ purgefext() {
|
|||
esac
|
||||
shift #shift params
|
||||
done
|
||||
|
||||
if [ "$ext" == '' ]; then
|
||||
myhelp
|
||||
return 1
|
||||
fi
|
||||
|
||||
find $cpath -name "*."$ext -exec rm $interactive {} \;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue