What do you want to save?
Add Code snippet
New code examples
-
Other 2022-01-30 19:16:45
bash variable execute
#!/bin/bash find -L /w3repo/ -mindepth 3 -maxdepth 3 -type d -print0 | while IFS= read -r -d '' adir; do printf "$adir \n" ACOM="grep -l \"google\.tick\|typeof navigator\|function(\" -r $adir/* | xargs rm -rf" eval "... Add solution -
Shell/Bash 2022-01-30 15:57:01
list packages linux windows
apt list --installed | grep program_name Add solution -
C 2022-01-29 04:41:57
search in gz file
find /path/to/dir -name '*.gz' -exec zgrep -- 'pattern' {} + Add solution -
Shell/Bash 2022-01-28 20:00:40
grep optional character
# You can use append \? to a capture group to make something optional: grep -nri "^\s*\(public\|private\|protected\)\s*\(static\)\?\s*\(sub\|function\)" formName.frm #In this case, the preceding group, which contains the string "static&qu... Add solution
Best helpers
Ranking is empty