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*

9
  • Regarding your recent update: Which answers can't be used in a script? Commented Jul 8, 2022 at 8:54
  • i wouldn't say that they can't be used inside a script, I just don't know how to do it. Commented Jul 8, 2022 at 9:05
  • 3
    Formal note: the answer you accepted is not the first one chronologically. If you mean "the first answer from the top" then please note each user can choose a sorting method independently. Therefore the term "first answer" is not well-defined, in general it can easily confuse users who see different order of answers. For future reference: if you really need to address an answer anywhere else than in comments under the very answer, link to it. In this case we know what answer you probably mean: the accepted one. Commented Jul 8, 2022 at 11:58
  • 1
    The main difference between an interactive shell session and a script is where it reads commands from (a terminal for the former, a file for the latter). Commented Jul 8, 2022 at 15:45
  • 1
    Please don't post images of text. They can be hard to read, impossible to search/index, and cannot be pasted into terminals to test. Commented Jul 8, 2022 at 17:50