Skip to content

CLI tools for command execution and directory/file manipulation.

License

Notifications You must be signed in to change notification settings

dogoncouch/dirutils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dirutils

CLI tools for command execution and directory/file manipulation.

Commands

inall - Execute a command in all subdirectories of the current working directory
at - Execute a command from within a specified directory
follow - Execute a command at intervals (default 1 second)
unsplit - Add files together end to end
sush - Execute a multi-line command with sudo privileges

Usage:

inall [-hvr] [-d <depth>] <command>
(-r executes recursively; -d executes to a max depth)

at [-hv] <directory> <command>

follow [-hvd] [-t <seconds>] <command>

unsplit [-hvz] <outfile> <infile1> <infile2> [<infile3>] ...

sush [-hv] '<commands>'

Installing

See the latest instructions on the releases page

Examples

inall du -sh
inall git status | more
at ~/.config git init
follow date
follow -d -t 5 ls -l
unsplit myfullmodule.py xaa.py xab.py xac.py
unsplit -z /root/fullauth.log auth.log.2.gz auth.log.1 auth.log
sush 'apt update;apt upgrade'
sush 'whoami;uid'