Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (17 sloc) 151 Bytes
awk '
/^\.cmd *$/{
cmd=""
inshell="yes"
next
}
/^\.endcmd *$/{
system(cmd)
inshell=""
next
}
{ if(inshell)
cmd=cmd $0 "\n"
else
print
}
'
Something went wrong with that request. Please try again.