RREP(1)
π RREP(1) π
okay bestie, welcome to the rrep manual page, section 1, general commands energy. this is the glow-up version but every single fact is still in here, promise. no cap. β¨
β¨ NAME β¨
rrep β replace patterns in files. that's it. that's the whole vibe. π
πΈ SYNOPSIS πΈ
rrep [OPTIONS] PATTERN REPLACEMENT [FILE...]
π¦ DESCRIPTION π¦
so the rrep utility searches your input FILEs for matches to a given PATTERN, and then replaces those matches with a given REPLACEMENT. slay.
the pattern is, by default, a basic regular expression. and the replacement string? it can contain special characters to refer to portions of the matched pattern. iconic behaviour honestly. π
Binary files are, by default, ignored. a file counts as binary if it contains the null character. we're not touching those, we respect their privacy π
π OPTIONS π
-E,--extended-regexpβPATTERNgets interpreted as an extended regular expression (ERE). fancier syntax, more power, we love her.-F,--fixed-stringsβPATTERNandREPLACEMENTare interpreted as fixed strings, not as regular expressions or escape sequences. no regex drama, just literal besties.-R,-r,--recursiveβ every directory given on the command line gets processed recursively. files and sub-directories starting with the.character are, by default, ignored (yes, the hidden ones are being shy π«Ά).--include=FILE_PATTERNβ only files that match the patternFILE_PATTERNget processed, except for files that are specifically given on the command line. you can use*,?, and[...]as wildcards inFILE_PATTERN. wildcards and backslash characters can be quoted with\.--exclude=FILE_PATTERNβ files that match the patternFILE_PATTERNget skipped, except for files that are specifically given on the command line (using wildcard matching as described under--include).--exclude-dir=PATTERNβ directories that matchPATTERNget skipped, except for files that are specifically given on the command line (using wildcard matching as described under--include).-V,--versionβ print the version number ofrrep. go ahead, check her age β¨-S SUFFIX,--suffix=SUFFIXβ override the default backup suffix. this option implicitly activates backups, so consider yourself warned (affectionately).-a,--allβ files and sub-directories starting with the.character in recursively processed directories (see--recursive) are processed as well. yes, even the hidden ones. come out come out wherever you are π-bβ backup before overwriting files. the backup files are written into the directory of the original file. equivalent to using--backup=existing.--backup[=CONTROL]β like-bbut accepts a version control argument. the file name of the backup file is appended by a~character. the backup suffix is~, unless set with--suffixorSIMPLE_BACKUP_SUFFIX. the version control method may be selected via the--backupoption or through theVERSION_CONTROLenvironment variable. here are the values, memorise them for the exam:none,offβ never make backups (even if--backupis given)numbered,tβ make numbered backupsexisting,nilβ numbered if numbered backups exist, simple otherwisesimple,neverβ always make simple backups
--binaryβ do not ignore binary files. a file is regarded as binary if it contains the null character\0. okay so we ARE touching them now, consent given π--dry-runβ the replacement is just simulated. no file is actually modified. it's giving rehearsal, not the real performance.-e PATTERN,--regexp=PATTERNβ usePATTERNfor matching. this option can be used to specify a pattern beginning with-. lifesaver fr fr.-h,--helpβ display a help message that describes the command line options and exit afterwards. your girl's got you covered π«Ά-i,--ignore-caseβ case distinctions inPATTERNare ignored.HELLOandhelloare the same person to us, periodt.--keep-timesβ the original access and modification times of files and directories are restored after processing. we leave everything exactly as we found it, main character energy but polite β¨-p REPLACEMENT,--replace-with=REPLACEMENTβ useREPLACEMENTfor substitution.--interactiveβ each time before a file is modified, the user is prompted and can cancel the modification. consent check, we love to see it π-q,--quiet,--silentβ all normal output messages are suppressed. shhh π€«-s,--no-messagesβ all error messages are suppressed. even the drama gets muted.-w,--word-regexpβ only those matches ofPATTERNare replaced that match whole words. no half-word situations, we're not messy.-x,--line-regexpβ only those matches ofPATTERNare replaced that match whole lines. all or nothing, babe.
π EXIT STATUS π
exit status is 1 if any error occurs, 0 otherwise. simple girl, simple rules.
π AUTHOR π
written by Arno Onken. π
π REPORTING BUGS π
if you find a bug in rrep, please send electronic mail to <asnelt@asnelt.org>. include the version number, which you can find by running rrep --version. also include in your message the output that the program produced and the output you expected. receipts, bestie, always bring receipts π§
if you have other questions, comments or suggestions about rrep, contact the author via electronic mail to <asnelt@asnelt.org>. the author will try to help you out, although he may not have time to fix your problems. realest thing ever honestly π
π COPYRIGHT π
Copyright 2011, 2013, 2019, 2022 Arno Onken
this is free software; see the source for copying conditions. there is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. so like, no take-backs, no promises, we move πΈ
β SEE ALSO β
π Regular Manual Pages π
find(1), grep(1), sed(1), xargs(1), regex(7). the whole friend group.
π TeXinfo Documentation π
the full documentation for rrep is maintained as a TeXinfo manual. if the info and rrep programs are properly installed at your site, the command
info rrep
should give you access to the complete manual. iykyk β¨
User Commands Β· rrep 1.3.7 Β· and yeah, that's the version and the date-ish vibes from the footer, so consider this your cute sign-off: go forth and replace things, responsibly, with backups, mwah πβ¨ππ¦πΈπ
π«Ά
π¦ where this page comes from
- debian bookworm: rrep 1.3.7-1 Β· GPL-3.0-or-later
- debian trixie: rrep 1.3.7-1 Β· GPL-3.0-or-later
- opensuse-leap 16.0: rrep 1.3.7-bp160.1.12 Β· GPL-3.0-or-later
- opensuse-leap 16.0: rrep 1.3.7-bp160.1.12 Β· GPL-3.0-or-later
- opensuse-leap 16.0: rrep 1.3.7-bp160.1.12 Β· GPL-3.0-or-later
- opensuse-leap 16.0: rrep 1.3.7-bp160.1.12 Β· GPL-3.0-or-later
- ubuntu noble: rrep 1.3.7-1 Β· GPL-3.0-or-later
- ubuntu questing: rrep 1.3.7-1
- ubuntu resolute: rrep 1.3.7-1build1 Β· GPL-3.0-or-later
- ubuntu stonking: rrep 1.3.7-1build1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms