Android adb shell delete SQLite database

Bash
I need to delete an SQLite database and in order to do so , i need to access adb shell. i'm on windows 7 and i have my sdk installed on: C:\Users\Om...
4 years ago

Arithmetic statements in bash if clause

Bash
Just a quick question about the above stated topic: I'm currently trying to use a value i am given through read in my if statement: if [ $value1 -l...
4 years ago

Why wget ignores query string in the url?

Bash
I want to use wget to download the following 18 html files: http://www.ted.com/talks/quick-list?sort=date&order=desc&page=18 http://www.ted...
4 years ago

MongoDB aggregation Shell script to MongoC# Driver

Bash
How can I convert this Mongo Shell script to MongoDB C# Driver? var myItems = [] var myCursor = db.Tickets.aggregate( [ { $match : { Ticket...
4 years ago

What does spawn ,expect and send command in linux/unix

Bash
The following three lines having three commands(spawn,expect,send), but what it does actually. Please explain any one spawn ssh -oStrictHostKeyCheckin...
4 years ago

unable to echo value after exporting variable using getopts

Bash
I'm trying to figure out in my script, why my variable dbname isn't being set when using getopts after explicitly doing an export on that variable. I ...
4 years ago

Grep ignore multiple lines

Bash
Is there a way with Grep to use the -v switch to ignore a line and the next number of lines after it. Its basically to filter exceptions from a log fi...
4 years ago

How to get the special characters as a normal string in shell

Bash
I have written a shell script which reads a file and take the path of a file required to perform particular task but if the path of the file contains...
4 years ago

How to optimize script for colorizing log files

Bash
The following script colorizes SQL commands buried in log files, and a couple of other "tags": red="\x1b[31m" green="\x1b[32m" yellow="\x1b[33m" blue...
4 years ago

run composer and laravel (artisan) commands without ssh access

Bash
I want to test some laravel applications on my basic shared host. Currently I just upload my complete application including the vendor files, however...
4 years ago

Linux shell single quotes and double quotes in one command

Bash
I need your help to make this command work: ssh -t user@localhost "cd /tmp ; PROMPT_COMMAND='echo -ne "\033]0;log\007"' ; bash" Here is the error t...
4 years ago

rsync copy over only certain types of files using include option

Bash
I use the following bash script to copy only files of certain extension(in this case *.sh), however it still copies over all the files. what's wrong?...
4 years ago

VBA to open a file and dll program

Bash
I have created a macro that opens a file in a predetermined program (e.g. Acrobat for pdf, Word for docs, Excel for xls). However some programs such a...
4 years ago

Set process name in shell

Bash
I have something like this ./myProcess.sh & So I run it in background. When I put ps the proccess name is "bash". 16282 pts/5 00:00:00 bash...
4 years ago

bash - parsing a name value pair with delimiter from env

Bash
I'm using a bash shell. I have some values from my env that I want to extract and assign those values to a variable. I also need to split it at the = ...
4 years ago

How can I synchronize this C code?

Bash
I have written a tokenizer that tokenizes shell command language input and when I execute the commands I get the output in "wrong order" after the for...
4 years ago

Compare executable output to text file using grep

Bash
I need a automated method to compare my C++ standard output to the 'expected output' test case files. In the past I used a shell script that would ex...
4 years ago

Sqlite cannot exit after entering ls

Bash
I installed SQLite on an Ubuntu Server, started it up and entered ls. Now I'm stuck in ...> as you can see below sqlite> ls ...>ls ...&...
4 years ago

Provide empty value to an argument in linux command

Bash
I have a shell script where I can pass two arguments. 1st argument can be empty or a string 2nd argument can be 0 or 1 Now I want to provide empty v...
4 years ago

Reading the output of a script in a particular way

Bash
So I have a script called sortByDates. As you may have guessed, it sorts by dates.I would like to send a bunch of lines to it(stored in an array in my...
4 years ago