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 -
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 -
Shell/Bash 2022-01-23 09:50:47
iodbc doesn't work on macos high sierra
#!/bin/bash # https://github.com/openlink/iODBC/issues/29 # https://bugs.mysql.com/bug.php?id=89931 base_src_dir="/usr/local" mysql_odbc_name=$(ls "$base_src_dir" | grep -m 1 "mysql-connector-odbc") odbc_dir="/Library/... Add solution
Best helpers
Ranking is empty