What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-08-31 18:14:02
linux bash export vars between shell instances
export_global_var () { filename=/tmp/env test -f $filename || touch $filename { flock 0 #prevents isssues with multi thread process #set -x #enables verbose/debug . /tmp/env [ $# -eq 0 ] || export "$@" echo "$@&q... Add solution -
Shell/Bash 2021-08-31 14:11:01
linux search for line in file
grep -R "keyword" /directory/ Add solution -
Shell/Bash 2021-08-31 06:39:01
find text in folder
grep -rnw '/path/to/somewhere/' -e 'pattern' Add solution -
-
Shell/Bash 2021-08-28 08:12:01
ubuntu find file with text
grep -r someWordToSearchHere * Add solution
Best helpers
Ranking is empty