Simple in lines
$ cat /proc/cpuinfo | awk '/processor/,/cpu family/'
A little more complex inside one line
textbetween() {
sed '/'"$1"'/!d;s//&\n/;s/.*\n//;:a;/'"$2"'/bb;$!{n;ba};:b;s//\n&/;P;D'
#grep -Po '(?<=Here).*(?= String)'
}
No comments:
Post a Comment