shithub: bin.rc

ref: 25f9e2963d99c77c9c6c259820474c89076e0921
dir: /bin/samcmd/

View raw version
#!/bin/awk -f
BEGIN{
	plumb = "plumb -i -d edit -a 'action=Edit'"
	if(ARGC > 1){
		for(i = 1; i < ARGC; i++)
			cmd = cmd " " ARGV[i]
		print cmd | plumb
		exit
	}
}
{
	if($1 == "!")
		$0 = last
	print | plumb; close(plumb)
	last = $0
}