write commandn line to its seperate sh file