Posts

Showing posts with the label command

Zipalign - Command not found - MAC terminal

Zipalign - Command not found - MAC terminal When I try to run Zipalign on an apk I get the error "Command not found" "Command not found" I am not that familiar with using terminal commands on the MAC but I have navigated to the SDK/Tools folder and run the following command: zipalign -v 4 Project1.apk Project1-aligned.apk I get Command not found I have tried placing the apks in the Tools folder and same result. Can someone help me to understand where the apks should be located and where I should run zipalign from? Thanks, I am very frustrated about this as it seems so simple. 17 Answers 17 Perhaps the current directory is not in your path? Try adding "./" before your command so ./zipalign -v 4 Project1.apk Project1-aligned.apk I will try, thanks. I will also include the full path to the apk. – Bill Mar ...

Execute several command in linux shell file [closed]

Execute several command in linux shell file [closed] I only can get the desire output when I run the command one by one. How can I combine all the command in a shell script and get the desired output? //insert timestamp column $ vmstat -n 5 | (while read; do echo "$(date +%Y-%m-%d.%H:%M:%S) $REPLY"; done)> vm.txt //remove 1st & 2nd row $ sed '1,2d' vm.txt > vm2.txt //convert text file to csv $ sed 's/^ *//;s/ */,/g' vm2.txt > vm2.csv //insert column name $ echo $'datetime, r, b, swpd, free, buff, cache, si, so, bi, bo, in, cs, us, sy, id, wa, st' | cat - vm2.csv> chart.csv $ psql -p 5432 -U postgres -c "copy vmstat FROM '/root/report/chart.csv' delimiter '|' csv header" Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. ...