Skip to content

ahheo/mysh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 

Repository files navigation

mysh

some personal shell scripts for personal use

Content

├── mysh
│   ├── arti.rn
│   ├── aux.rm
│   ├── bb.au.rec
│   ├── bb.doi
│   ├── bb.keys
│   ├── bb.ldoi
│   ├── bb.rec
│   ├── d2m
│   ├── is_model
│   ├── rn1
│   ├── rn2
│   ├── rn3
│   ├── rn4
│   ├── test_arg
│   └── update.fr.another
└── README.md

help info

  • d2m

    set files' createdate the same as modifydate (for macOS only)
    
  • $is_model -h

    is_model - check photos under a directory if is produced by MODEL
    ++ the query is based on exiftool ++
    
    usage: is_model [options] MODEL [NDIR [DIRECTORY]]
    
    options:
    -h, --help                show brief help
    -g, --tag                 specify TAG instead of 'Model'
    -q                        query only; otherwise move to NDIR (default same as
                              TAG; make it if not exist) under DIRECTORY (default
                              CURRENT)
    
  • $rn1 -h

    rn1 - rename files sequentially under a directory
    ++ rn4 may required for no-simulation mode! ++
    
    usage: rn1 [options] [DIRECTORY]
    
    options:
    -h, --help                show brief help
    -x, --ext=EXT             only applied for files with this extention; default all
    -p, --prefix=PREFIX       PREFIX_XXXX.EXT; default name of targit directory
    -i, --ini=INI             basement for increament; default 0
    -s                        simulation mode (not executed)
    -v                        verbose mode
    
  • $rn2 -h

    rn2 - replace STR0 in filenames by STR1 under a directory
    
    usage: rn2 [options] STR0 [STR1]
    
    options:
    -h, --help                show brief help
    -d                        specify a path; otherwise applied to current directory!
    -s                        simulation mode (not executed)
    -v                        verbose mode
    
  • $rn3 -h

    rn3 - change extension case in filename(s) under a directory
    
    usage: rn3 [options] [DIRECTORY]
    
    options:
    -h, --help                show brief help
    -x, --ext=EXT             only applied for files with this extention
    -u                        to uppercase; otherwise to lowercase
    -s                        simulation mode (not executed)
    -v                        verbose mode
    
  • $rn4 -h

    rn4 - add .x before extension in filename(s)
    
    usage: rn4 [options] [DIRECTORY]
    
    options:
    -h, --help                show brief help
    -x, --ext=EXT             only applied for files with this extention
    -s                        simulation mode (not executed)
    -v                        verbose mode
    
  • $arti.rn -h

    arti.rn - rename article name in format of *_[*_[*_]]_-AYJ.pdf
    
    usage: arti.rn [options] [DIR|FILE]
    
    options:
    -h, --help                show brief help
    -s                        simulation mode (not executed)
    -v                        verbose mode
    
  • $aux.rm -h

    aux.rm - delete the auxiliary files generated by LaTeX
    
    usage: aux.rm [-x EXT1,EXT2...]
    
    options:
    -h, --help                show brief help
    -x EXT(s)                 not for files with extention(s; seprated by ',')
    
  • $update.fr.another -h

    update.fr.another - update files under a directory in the tree by copying another version
    
    usage: update.fr.another [options] WD
    
    options:
    -h, --help                show brief help
    -b                        basement path; otherwise use /home/clin/wks/wrfs/WRF4.5.x/WRF!
    -y                        yes to all
    
  • $bb.doi -h

    bb.doi - generate doi link corresponding to a specified KEY within a specified BIBFILE
    
    usage: bb.doi [options] KEY [BIBFILE]
    
    options:
    -h, --help                show brief help
    -v                        show more message
    
  • $bb.ldoi -h

    bb.ldoi - generate doi link corresponding to a specified KEY within a specified BIBFILE
    
    usage: bb.ldoi [options] KEY [BIBFILE]
    
    options:
    -h, --help                show brief help
    -v                        show more message
    
  • $bb.rec -h

    bb.rec - display bib record corresponding to a specified KEY within a specified BIBFILE
    
    usage: bb.rec [options] KEY [BIBFILE]
    
    options:
    -h, --help                show brief help
    -v                        show more message
    
  • $bb.keys -h

    
    usage: bb.keys [options] [BIBFILE]
    
    options:
    -h, --help                show brief help
    -v                        show more message
    
  • $bb.au.rec -h

    bb.au.rec - find corresponding records for a specified AUTHOR within a specified BIBFILE
     
    usage: bb.au.rec [options] -a AUTHOR [-a AUTHOR1] ... [BIBFILE]
            if BIBFILE not specified, the first found .bib file in the current directory will be used!
     
    options:
    -h, --help                show brief help
    -a AUTHOR                 specify an AUTHOR; multiple times for multiple authors
    -x                        fully strictly matching for the specified AUTHOR;
                              otherwise, matching the 1st letter of the given name only
    -c                        highlight the specified AUTHOR(s) in the result
    -v                        show more message
    

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages