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 2021-11-13 06:23:22
linux grep
# EXAMPLE 1: look for any files (with names ending in ".c++") for the text "::MethodA(" grep "::MethodA(" *.c++ # EXAMPLE 2: display only the matching file names (not the row too) of the matches grep -l "MethodA(" ... Add solution -
-
Shell/Bash 2021-10-24 04:40:09
grep cheat sheet
#!/bin/sh #http://www.thegeekstuff.com/2011/01/advanced-regular-expressions-in-grep-command-with-10-examples-%E2%80%93-part-ii/ # GENERAL # print lines begining with range of letters grep ^[A-D] table.txt # REGEX # search for word which has any single... Add solution -
Shell/Bash 2021-10-16 21:08:06
grep i
# EXAMPLE 1: look for any files (with names ending in ".c++") for the text "::MethodA(" grep "::MethodA(" *.c++ # EXAMPLE 2: display only the matching file names (not the row too) of the matches grep -l "MethodA(" ... Add solution -
Best helpers
Ranking is empty