Pattern matching

Search & replace with find & ed


function sr() { declare pattern replacement name usage declare -i pvar=0 rvar=0 tvar=0 usage='usage: sr [-t ] [-n name] [-p pattern] [-r replacement] [– ] [dir1 dir2 …]' # cf. <a …

Display the output of a command from the first line until the first instance of a regular expression.


| perl -n -e 'print "$_" if 1 … /«a class="zem_slink freebase/en/regular_expression" title="Regular expression" rel="wikipedia" …

This website uses cookies to ensure you get the best experience on our website. Learn more Got it