Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • great... but for the convenience of user, do you think it is possible to add into the shell script itself? Thank you Commented Aug 27, 2015 at 17:15
  • You can just put the command in command.sh and execute it with ./command.sh. Commented Aug 27, 2015 at 17:23
  • In this command $(./YOUR_PROGRAM | sed s/^.*==/rm/ | sed s/\ (.*//), did you miss some parenthesis? ... Oh! I see from your explanation that no parenthesis is missed!!! Commented Aug 27, 2015 at 17:27
  • sed has been always a mystery to me, and you really explained it very well!!! Thank you. Commented Aug 27, 2015 at 17:33