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*

10
  • The Last command which you mentioned is not giving the desire result which I want. Commented Aug 22, 2019 at 13:29
  • @Lalitkumar I can't help if you don't tell me what's wrong! It works exactly as I show on the example file you gave us. Is the value of $ruledeck as I show? Commented Aug 22, 2019 at 13:54
  • My guess: OP expects the -i flag and the filename DRC.txt... Commented Aug 22, 2019 at 14:01
  • The value of $ruledeck which is the path is not appended at the end of 3rd in DRC.txt file by using this command- sed -e "3s| \?$| $ruledeck|" DRC.txt Commented Aug 22, 2019 at 18:03
  • @Lalitkumar but does it print the right output? Note that I'm not using -i, so the file won't be changed. Commented Aug 22, 2019 at 19:39