I am working on a project to grep/awk/sed a file and directly process a command between two expressions.
for instance if the file reads
XXXXXXXX YYYYY ZZZZZ
du -h /home
AAAAA BBBBBBB CCCC
I can extract the information I need (du -h /home) but can not make it run directly in a shell
sed '1,/firstmatch/d;/secondmatch/,$d |
I just end up with