change class to RGrepCommand and use subprocess