Results 1 - 14 of about 14 results out of about 97381 pages. (0.03 seconds)
- glob . . . 2 matches
- ...raditional shell globs use a very simple syntax, which is less expressive than a RegularExpression. Most characters in a glob are treated literally, but a {{{*}}} matches 0 or mo...
- ReplacingStrings . . . 1 match
- ...tput of "some_command"
some_command | sed 's/search/replace/g'
}}}
`sed` uses [[RegularExpression|regular expressions]]. Unlike the bash, "search" and "replace" would have to be ...
- Quotes . . . 1 match
- ...otes to suppress interpretation of special syntax within [[glob|patterns]] and [[RegularExpression|regular expressions]], so that any literal or expanded string may be easily incl...
- ProcessManagement . . . 1 match
- ...if ps -ef | grep '[f]oo'; then
}}}
You'll likely run into this a few times. The RegularExpression `[f]oo` matches only the literal string `foo`; it does not match the literal str...
- BashProgramming/Ex01 . . . 1 match
- ...t string matches a given format, and if so, to extract various pieces of it: the RegularExpression. It's not ''pretty'', but it seems like a good match for this problem.
Bash's ...
- BashPitfalls . . . 1 match
- ... right-hand side of the `=~` operator cause it to become a string, rather than a RegularExpression. If you want to use a long or complicated regular expression and avoid lots of ...
- BashGuide/Patterns . . . 1 match
- ...epth in this guide, but if you are interested in this concept, please read up on RegularExpression, or [[http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap09.html#ta...
- BashFAQ/100 . . . 1 match
- ...ring* ]]; then
# substring will be treated as a glob pattern
}}}
There is also a RegularExpression capability, involving the `=~` operator. For compatibility with all versions of...
- BashFAQ/079 . . . 1 match
- ... can't use the `|` union operator with plain `grep`. `|` is only available in [[RegularExpression|Extended Regular Expressions]].)
It can also be done with {{{sed}}}, {{{awk}}},...
- BashFAQ/054 . . . 1 match
- ...that works in legacy Bourne shells, you might prefer to use an external tool's [[RegularExpression|regular expression]] syntax. Here is a portable version (explained in detail [[...
- BashFAQ/031 . . . 1 match
- ...) ||{{{[[ $name = a* ]] || echo "name does not start with an 'a': $name"}}} ||
||RegularExpression matching ||{{{=~}}} ||(not available) ||{{{[[ $(date) =~ ^Fri\ ...\ 13 ]] && ech...
- BashFAQ/021 . . . 1 match
- ...'s'''tream '''ed'''itor:
{{{
some_command | sed 's/foo/bar/g'
}}}
`sed` uses [[RegularExpression|regular expressions]]. In our example, `foo` and `bar` are literal strings. If...
- BashFAQ/006 . . . 1 match
- ... of, and to maintain.
2. The variable names must be a single line and match the RegularExpression {{{^[a-zA-Z_][a-zA-Z_0-9]*$}}} -- i.e., a variable name cannot contain arbitrary...