This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # $Id: emrm.sh,v 1.4 2012-10-13 09:13:03+09 shirai Exp $ | |
| # EMPTY REMOVE | |
| list=(`ls`) | |
| # MAIN | |
| main(){ | |
| if [ $# = 0 ];then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # $Id: dls.sh,v 1.2 2013-10-03 13:43:21+09 shirai Exp $ | |
| dls(){ | |
| ls -F $@ | grep / | |
| } | |
| dls $@ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # AUTHOR | |
| # 2013/10/08 Nobu C. Shirai | |
| # 2018/10/06 Akira Hasegawa | |
| description=' | |
| Creating backup files in the arguments in each backup directory. | |
| The name of each backup file with backup directory is | |
| "org_filename.dir/X_org_filename" where "X" is the index number | |
| of backups which starts from 0. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # $Id: prefixer.sh,v 1.1 2013-10-04 13:34:41+09 shirai Exp shirai $ | |
| ArgFile=$1 | |
| prefix=$2 | |
| main(){ | |
| check_args $@ | |
| mv -vi $ArgFile ${prefix}${ArgFile} | |
| } | |
| check_args(){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # $Id: suffixer.sh,v 1.1 2013-10-04 13:34:41+09 shirai Exp shirai $ | |
| ArgFile=$1 | |
| suffix=$2 | |
| main(){ | |
| check_args $@ | |
| mv -vi $ArgFile ${ArgFile%.*}.${suffix} | |
| } | |
| check_args(){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # $Id: dog,v 1.2 2012-03-10 03:02:20+09 shirai Exp shirai $ | |
| printf "(\,..,/)\n" | |
| printf "〈 c c 〉\n" | |
| printf "(_,),.、)) \n" | |
| for i in {1..6};do | |
| printf "\033[1A\033[1A\033[1A\r" | |
| if [[ $i = 1 ]];then | |
| printf "(\,..,/)\n" | |
| printf "〈 c c 〉\n" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| #$Id: name_sedder.sh,v 1.1 2012-10-13 09:13:03+09 shirai Exp $ | |
| before="$1" | |
| after="$2" | |
| old_name=$3 | |
| main(){ | |
| check_args $@ | |
| new_name="`echo $old_name | sed "s/$before/$after/g" `" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # $Id: box_cp.sh,v 1.2 2013-10-25 21:30:26+09 shirai Exp shirai $ | |
| main(){ | |
| ArgCheck $@ | |
| BoxMaker | |
| diae cp -av ${file_list[@]} ${box_dir} | |
| } | |
| ArgCheck(){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| #$Id: Backdiffer.sh,v 1.3 2013-12-07 12:48:18+09 shirai Exp shirai $ | |
| Backdiffer(){ | |
| check_options $@ | |
| check_dir | |
| counter=(`ls $BackDir | wc -w`) | |
| DiffFile="${BackDir}/$((counter-1))_${ArgFile}" | |
| CheckFile="$DiffFile" | |
| while true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| #$Id: rewrite.sh,v 1.10 2014-01-08 14:09:47+09 shirai Exp $ | |
| rewrite(){ | |
| all=() | |
| check_options $@ | |
| file="${all[$((${#all[@]}-1))]}" | |
| file_check $file | |
| tmp="TEMP_${file##*/}" | |
| ${all[@]} > $tmp |
OlderNewer