What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-09-10 22:59:02
how to check jenkins version in ubuntu
# Check <version> value in config file: /var/lib/jenkins/config.xml # or head -5 /var/lib/jenkins/config.xml| grep -oP ‘(?<=).*?(?=)’ # or open the jenkins consol, see at bottom right: Page generated: Nov 20, 2020 7:18:04 AMREST APIJe... Add solution -
Shell/Bash 2021-08-28 04:13:02
grep print only capture group
## Short answer: $ grep -oP 'stuff before your match\Kyour match(?=stuff after your match)' ## Explanation: # GNU grep has the -P option for perl-style regexes, and the -o option to print # only what matches the pattern. # These can be combined by usin... Add solution
Best helpers
Ranking is empty