EnglishFrenchSpanish

OnWorks favicon

shtool-subst - Online in the Cloud

Run shtool-subst in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command shtool-subst that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


shtool-subst - GNU shtool sed(1) substitution operations

SYNOPSIS


shtool subst [-v|--verbose] [-t|--trace] [-n|--nop] [-w|--warning] [-q|--quiet]
[-s|--stealth] [-i|--interactive] [-b|--backup ext] [-e|--exec cmd] [-f|--file cmd-file]
[file] [file ...]

DESCRIPTION


This command applies one or more sed(1) substitution operations to stdin or any number of
files.

OPTIONS


The following command line options are available.

-v, --verbose
Display some processing information.

-t, --trace
Enable the output of the essential shell commands which are executed.

-n, --nop
No operation mode. Actual execution of the essential shell commands which would be
executed is suppressed.

-w, --warning
Show warning on substitution operation resulting in no content change on every file.
The default is to show a warning on substitution operations resulted in no content
change on all files.

-q, --quiet
Suppress warning on substitution operation resulting in no content change.

-s, --stealth
Stealth operation. Preserve timestamp on file.

-i, --interactive
Enter interactive mode where the user has to approve each operation.

-b, --backup ext
Preserve backup of original file using file name extension ext. Default is to
overwrite the original file.

-e, --exec cmd
Specify sed(1) command directly.

-f, --file cmd-file
Read sed(1) command from file.

EXAMPLE


# shell script
shtool subst -i -e 's;(c) \([0-9]*\)-2000;(c) \1-2001;' *.[ch]

# RPM spec-file
%install
shtool subst -v -n \
-e 's;^\(prefix=\).*;\1 $RPM_BUILD_ROOT%{_prefix};g' \
-e 's;^\(sysconfdir=\).*;\1 $RPM_BUILD_ROOT%{_prefix}/etc;g' \
`find . -name Makefile -print`
make install

HISTORY


The GNU shtool subst command was originally written by Ralf S. Engelschall
<[email protected]> in 2001 for GNU shtool. It was prompted by the need to have a
uniform and convenient patching frontend to sed(1) operations in the OpenPKG package
specifications.

Use shtool-subst online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Toolbox for Java/JTOpen
    Toolbox for Java/JTOpen
    The IBM Toolbox for Java / JTOpen is a
    library of Java classes supporting the
    client/server and internet programming
    models to a system running OS/400,
    i5/OS, o...
    Download Toolbox for Java/JTOpen
  • 2
    D3.js
    D3.js
    D3.js (or D3 for Data-Driven Documents)
    is a JavaScript library that allows you
    to produce dynamic, interactive data
    visualizations in web browsers. With D3
    you...
    Download D3.js
  • 3
    Shadowsocks
    Shadowsocks
    A fast tunnel proxy that helps you
    bypass firewalls This is an application
    that can also be fetched from
    https://sourceforge.net/projects/shadowsocksgui/.
    It ha...
    Download Shadowsocks
  • 4
    GLPI Themes
    GLPI Themes
    Download release at
    https://github.com/stdonato/glpi-modifications/
    Color themes for GLPI 0.84 and 0.85 New
    Modifications for GLPI This is an
    application that c...
    Download GLPI Themes
  • 5
    SMPlayer
    SMPlayer
    SMPlayer is a free media player for
    Windows and Linux with built-in codecs
    that can also play YouTube videos. One
    of the most interesting features of
    SMPlayer:...
    Download SMPlayer
  • 6
    AAX to MP3
    AAX to MP3
    Usage: - Install the Audible Manager
    and open a file of your account. - Sign
    in into your audible account (in the
    application). Now the program can
    convert you...
    Download AAX to MP3
  • More »

Linux commands

Ad