What do you want to save?
Add Code snippet
New code examples
-
-
Other 2021-08-29 09:22:01
grepper usage
//O Hello! Welcome to the first //Query & Answer system for coders. //Grepper answers like this will popup //when you google search a code related problem. //If nothing pops up, You can add answers to your //search query by pressing “a&rd... Add solution -
Shell/Bash 2021-08-29 08:09:03
self-documenting makefile
.PHONY: help help: @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' # All rules with double-hash comments will be automatically displayed in th... Add solution -
Shell/Bash 2021-08-29 06:30:01
bash return only first line that contains match for each line in a file
# Basic syntax while IFS= read -r LINE; do grep -m number_matches "$LINE" target_file >> output_file done < reference_file # Where: # - the reference_file is the file of lines you want to search for # - the target_file is the file ... Add solution