Skip to content

Open-Technology-Foundation/presuf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Module: presuf.bash

Function: presuf

Desc:

Prepend/Append text to filenames in a stream list.

Usage:

presuf [-options] [prefix] [suffix] [<filenames]

Options:

-z|--squeeze  Do not add separator space to prefix or suffix.
-X|--execute  Execute the output as a script.
-Q|--quote ['|"]
              Wraps filename in quotes.
              If 'quote' not specified, defaults to "'"
-s|--shebang [shebang]
              Inserts !#shebang at top of output.
              If 'shebang' not specified, defaults to "$BASH"
-V|--version  Print version.
-h|--help     This docstring help.

Examples:

ls *.txt | presuf vi +34
find -name '*.sh' | presuf "$EDITOR" '+1' -Qs >myscript
findgrep ~/scripts -name 'bash'  | presuf "$EDITOR" -Qs

Module: presuf.bash

Function: presuf

Desc:

Prepend/Append text to filenames in a stream list.

Usage:

presuf [-options] [prefix] [suffix] [<filenames]

Options:

-z|--squeeze  Do not add separator space to prefix or suffix.
-X|--execute  Execute the output as a script.
-Q|--quote ['|"]
              Wraps filename in quotes.
              If 'quote' not specified, defaults to "'"
-s|--shebang [shebang]
              Inserts !#shebang at top of output.
              If 'shebang' not specified, defaults to "$BASH"
-V|--version  Print version.
-h|--help     This docstring help.

Examples:

ls *.txt | presuf vi +34
find -name '*.sh' | presuf "$EDITOR" '+1' -Qs >myscript
findgrep ~/scripts -name 'bash'  | presuf "$EDITOR" -Qs

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages