Most voted "command-line" questions
63 questions
Sort by count of
-
0
votes1
answer606
viewsI want to use php exceptions to ignore an error that ends up terminating the script
When the user does not have the client installed I get an error terminating the script. How to ignore it with exceptions and continue the script? PHP Warning: Invalid argument supplied for foreach()…
-
0
votes1
answer155
viewsError executing a Rake Task
I need to perform some custom tasks, but whenever I try, I get the following message: Application has been already initialized. I searched several places, including the OS in English, but without…
-
0
votes1
answer65
viewsScript with mv Error: cannot move new_name to new_name/original Directory not Empty
Hello, I have the following function below, her goal is to check if the folder exists, and rule out, extract the file .tar.gz and rename. ssl_v="1.0.2g" ABI="armv6" # Clean then Unzip [ -d…
-
0
votes2
answers105
viewsParameters, functions in C
I am a beginner in programming and I have a lot of doubt about the functions and the parameters. Follow a code example: #include math.h int main(int argc, char *argv[]) // Dúvida nessa linha {…
-
0
votes2
answers365
viewsHow to change the format of a query result?
I would like to know if there is any argument in select that changes the format of result to be used as dump. Example: create table `table_name` (`id` int, `value` text); insert into `table_name`…
-
0
votes2
answers192
viewsGenerating a file that is output from a command only if a condition is met
Be the command: top -o %MEM -b > file.txt I would like you to file.txt only the values that are between two time periods, for example: between 07 April 2017 07h and 07 April 2017 12h. Is it…
-
0
votes0
answers50
viewsPHP does not display accept UTF-8 character input (accented characters) in interactive mode (REPL)
I’m trying to make use of the command line to make a small change to the server, namely I’m using PHP in the command line in interactive mode, but I noticed that PHP is not accepting accented…
-
0
votes2
answers830
viewsFilter number of characters with SED or grep
I have a file with strings I need at first filter for example only lines that has 5 characters And in a second moment filter only those that have at least 2 characters repeated together Example:…
-
0
votes0
answers1123
viewsFind File and Replace Word in XML or TXT
Hello, I have to create a DOS (Windows) command line script, which locates one or several files. xml that are located in a certain directory and change a value of a tag, this tag can be fixed, IE, I…
-
-1
votes2
answers3978
viewsI can’t change directories in Git Bash
I try to navigate between directories but I can’t, I’ve tried everything…
-
-2
votes1
answer82
viewsHow to pass multiple files with click python?
I have a directory with several files: arquivo.txt arquivo1.txt arquivo2.txt... And I have this code: import click @click.command() @click.argument("file", type=click.File('r')) def cat(file):…
-
-4
votes0
answers52
viewsHow to insert multiple rows into a sql server, keeping all these rows in the same id
I am studying a program that lends equipment, in its proper functioning, when making a loan of material should be kept in the dbo.emprestimo all loan details (name, location, business, etc), then…
-
-5
votes1
answer261
viewsHow I pass the dot and comma at the end of the line of HTML and CSS code
I am learning how to program now. However, I am a little uncomfortable about the point and comma at the end of the line of code. When I type the command line I use the autocomplete to help me…