More Tricks With BashDiff
Oct 29, 2008, 23:31 (0 Talkback[s])
(Other stories by Ben Martin)
WEBINAR: On-demand webcast
How to Boost Database Development Productivity on Linux, Docker, and Kubernetes with Microsoft SQL Server 2017 REGISTER >
"BashDiff adds commands that help you manipulate positional
parameters, often with much greater efficiency than the normal bash
routes. The pcursor command lets you manipulate the current
positional parameters as a single group, clearing them all and
storing and restoring them all from a stack. New commands prefixed
with pp_ help you manipulate the positional parameters themselves.
These commands all take an optional -a parameter to let you specify
the name of an array to use instead of working on the implicit
positional parameters array. For example, the normal bash command
to append to the positional parameters is shown below with the
BashDiff equivalent below it."