When you get:
syntax error: unexpected end of file
You should make sure that you don't have problems with end of line characters, however the ERROR in logic of your code (bad command) wil cause that as well.
Sometimes it is easier to comment out all lines with "# your code"and turn on some little-by-little.
As an Amazon Associate I earn from qualifying purchases.
Bash: syntax error: unexpected end of file
When you get:
syntax error: unexpected end of file
You should make sure that you don't have problems with end of line characters, however the ERROR in logic of your code (bad command) wil cause that as well.
Sometimes it is easier to comment out all lines with "# your code"and turn on some little-by-little.
syntax error: unexpected end of file
You should make sure that you don't have problems with end of line characters, however the ERROR in logic of your code (bad command) wil cause that as well.
Sometimes it is easier to comment out all lines with "# your code"and turn on some little-by-little.
find similar posts:
Bash,
Linux/Unix
0
comments
Unix: dos2unix on Mac
Removing Windows line ends on Mac:
In Terminal.app
$ cat file1.txt | col -b > file2.txt
Warning: Do not run this with destination of the same file, or it will become empty.
In Terminal.app
$ cat file1.txt | col -b > file2.txt
Warning: Do not run this with destination of the same file, or it will become empty.
find similar posts:
Bash,
Linux/Unix
0
comments
Unix: dos2unix on Mac
Removing Windows line ends on Mac:
In Terminal.app
$ cat file1.txt | col -b > file2.txt
Warning: Do not run this with destination of the same file, or it will become empty.
In Terminal.app
$ cat file1.txt | col -b > file2.txt
Warning: Do not run this with destination of the same file, or it will become empty.
find similar posts:
Bash,
Linux/Unix
0
comments
Android: re-installing a bunch of apps with one script
I have a bunch (over a dozen) of APKs that go together on the device as a single solution, to remove them and reinstall all of them would be a time consuming effort, so I have scripts for that.
Do not believe "-r" option in "adb install -r", it does not always re-install the app.
I have a single script with bunch of uninstalls...
$ adb uninstall com.xyz.x1
$ adb uninstall com.xyz.x2
Do not believe "-r" option in "adb install -r", it does not always re-install the app.
I have a single script with bunch of uninstalls...
$ adb uninstall com.xyz.x1
$ adb uninstall com.xyz.x2
...
$ cd your_apks
# install all APKs in this folder
$ for i in *.apk; do adb install -r $i; done
$ cd your_apks
# install all APKs in this folder
$ for i in *.apk; do adb install -r $i; done
find similar posts:
adb,
Android,
Linux/Unix
0
comments
Subscribe to:
Posts (Atom)
apt quotation..
“A man should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects.” by Robert A. Heinlein (author, aeronautical engineer, and naval officer)