diff --git a/COPYRIGHT.txt b/COPYRIGHT.txt index 228aea0..604b55f 100644 --- a/COPYRIGHT.txt +++ b/COPYRIGHT.txt @@ -39,3 +39,5 @@ Copyright (c) 202x Stéphane Peter - makeself, licensed under GPLv2.0 or later. db is licensed under the Unlicense. A license copy is provided in LICENSES/Unlicense.txt. eliza is licensed under the Unlicense. A license copy is provided in LICENSES/Unlicense.txt. + +inc is licensed under the Unlicense. A license copy is provided in LICENSES/Unlicense.txt. diff --git a/README.md b/README.md index 8a836fe..1833026 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ A collection of useful scripts. These scripts are written by various authors. At | ffconv-a | Batch convert from one format to another. | | ffconv-ar | Batch convert from one format to another without preserving metadata. | | gpltopnm | Convert gpl to ppm. | +| inc | Copy one file to the number of files by hex in the current directory. | | makeself | Make self-extractable archives for *nix-likes. | | matrix-decrypt | Decrypt matrix attachments that are encrypted. | | matrix-upload | Upload attachment to matrix homeserver. | diff --git a/bin/inc b/bin/inc new file mode 100755 index 0000000..93583bb --- /dev/null +++ b/bin/inc @@ -0,0 +1,15 @@ +#!/usr/bin/env dash +i="0" +ext="swav" +n="00" + +ls | wc -l | read l + +while [ $i -lt $l ] +do + x="printf "%04X\n" $i" + i="expr $i + 1" + while read f; do + cp $n.$ext $f.$ext; + done +done diff --git a/cfg/db b/cfg/db index 4677cc5..edbbeeb 100644 --- a/cfg/db +++ b/cfg/db @@ -6,3 +6,7 @@ vd ~/vimwiki/diary k ~/Asiakirjat/Koulu ~ ~ e ~/Asiakirjat/Koulu/Englanti +h ~/Asiakirjat/Koulu/History +r ~/RE +g ~/RE/gt +m ~/Asiakirjat/Koulu/Math diff --git a/dat/db-c b/dat/db-c index 16660df..0efffe6 100644 --- a/dat/db-c +++ b/dat/db-c @@ -1,8 +1,12 @@ alias a="cd ~/Asiakirjat" alias ~="cd ~" alias e="cd ~/Asiakirjat/Koulu/Englanti" +alias g="cd ~/RE/gt" +alias h="cd ~/Asiakirjat/Koulu/History" alias k="cd ~/Asiakirjat/Koulu" +alias m="cd ~/Asiakirjat/Koulu/Math" alias p="cd ~/Projektit" +alias r="cd ~/RE" alias t="cd ~/Testi" alias v="cd ~/vimwiki" alias vd="cd ~/vimwiki/diary"