Extends shell * and ? wildcards to allow inserting matched strings like Windows 'copy *.old =.new'

Some examples:
# Rename current files as old
doall 'mv *.cur *.old'

# Compress camcorder DV files
doall 'ffmpeg -i *.dv *.mp4'

# Move files into directories according to their extension
doall 'mv *.* $2/$1.$2'

# Symbolic links from vmlinuz.new to vmlinuz-5.12.6-foo, similarly config.new System.map.new
doall 'ln -s /boot/*-5.12.6-* /boot/$1.new'

# Hard link 3-character abbreviations for file extensions
doall 'ln *.???* $1.$2'


As shown above, instead of '=' to indicate insertions, doall uses either * or $1 etc.

doall -p (pretend mode) shows a list of commands instead of executing them
doall -i (interactive mode) asks for confirmation for each command in turn
doall -k (keep-running mode) ignores failing commands

Features

  • Pure POSIX shell script except in pretend mode
  • Simple syntax
  • Correctly handles filenames containing special characters such as quotes, line feeds and semicolons

Project Samples

Project Activity

See All Activity >

License

GNU General Public License version 3.0 (GPLv3)

Follow doall

doall Web Site

nel_h2
Secure User Management, Made Simple | Frontegg Icon
Secure User Management, Made Simple | Frontegg

Get 7,500 MAUs, 50 tenants, and 5 SSOs free – integrated into your app with just a few lines of code.

Frontegg powers modern businesses with a user management platform that’s fast to deploy and built to scale. Embed SSO, multi-tenancy, and a customer-facing admin portal using robust SDKs and APIs – no complex setup required. Designed for the Product-Led Growth era, it simplifies setup, secures your users, and frees your team to innovate. From startups to enterprises, Frontegg delivers enterprise-grade tools at zero cost to start. Kick off today.
Start for Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of doall!

Additional Project Details

Operating Systems

Linux

Intended Audience

Advanced End Users, End Users/Desktop, System Administrators

User Interface

Command-line, Console/Terminal

Programming Language

Unix Shell

Related Categories

Unix Shell File Managers, Unix Shell System Shells, Unix Shell Systems Administration Software

Registered

2021-06-20