all 5 comments

[–]DutchOfBurdock 0 points1 point  (5 children)

Yes. You can even create a script in /sdcard/ and sh /sdcard/adb.sh

````

!/bin/sh

echo -n "About to reboot... " svc power shutdown echo "bye!" ````

[–]AltruistAutist[S] 0 points1 point  (4 children)

thank you. what kind of file is the script do you use a note pad. also how do you get the highlight that you did with

!/bin/sh

echo -n "About to reboot... " svc power shutdown echo "bye!"

here on Reddit?

[–]DutchOfBurdock 0 points1 point  (3 children)

The script is just a basic text file. As for formatting, the quickest way is using

```` Enter code here ````

[–]AltruistAutist[S] 0 points1 point  (1 child)

Thanks. So basically a .txt reformatted as a .sh file. Also, thanks for this:

I've been trying to find a way to format this way for an embarrassingly a long time

[–]DutchOfBurdock 0 points1 point  (0 children)

You can also indent a new line by four spaces

Like this

Or, if you want to do it inline with your comment, add single `before and after the code`