Questions tagged as 'terminal'

1
answer

Close console window in C

I need to create the old woman's game. I want to know how to close the black little window that appears without needing to click any key, for example: When you run the program it appears:    1 to play       0 to exit If the user types 0,...
asked by 15.06.2016 / 23:36
1
answer

How to create a .BAT configuration file in windows?

I am automating some processes on a Windows server, and I would like to create some .bat files for this, but for that it would be necessary for the .BAT to be read from a configuration file so I did the following: file get.bat: @echo off set...
asked by 23.07.2015 / 15:13
3
answers

Difference from: "git commit -am" and "-m"

What would be the difference between typing: git commit -m "Teste" and git commit -am "Teste" ? I'm learning about Git and would like to know how to differentiate it.     
asked by 21.11.2018 / 19:59
3
answers

Extract information from a .txt file

I have a .txt file with the following information. 31.812:9.862 179.52:6.847 315.015:9.135 462.305:6.276 103.875:4.122 176.064:3.593 196.7:4.407 246.599:4.423 I need to extract this information 9.862 6.847 9.135 6.276 4.122 3.593 4.407 4...
asked by 25.01.2017 / 19:23
1
answer

println on Swift through the terminal

I'm trying to compile a people.swift class with Terminal of MacOSX class People { let name:String = "" let age:Int = 0 init(name:String, age:Int) { self.name = name self.age = age } let a...
asked by 06.06.2014 / 21:53
1
answer

CMD, Console, MS-DOS and related terms

Well, it has embarrassed all the concepts that I will list below, and I would like to see the definition of these terms presented, perhaps some are synonymous with others and others are totally different. SHELL BASH Terminal Console...
asked by 06.07.2015 / 05:33
2
answers

Send a command to the Terminal via C ++

How do I send a code to the terminal? For example: on a graphical screen where I type the name of a folder, and it sends to the terminal a mkdir NomePasta ? (Of course, there will be other functionalities, like running programs for e...
asked by 13.08.2014 / 15:14
1
answer

How to pass response from one command as argument to another command?

In linux I do something to get the response of one command and pass as argument to another: ./program 'ruby -e"puts 'Oh' * 3"' In case what is between the accents ( ruby -e"puts 'Oh' * 3" ) will be executed and the return will be pass...
asked by 04.01.2017 / 16:06
2
answers

How do I find out where to install a package via SSH? [closed]

I installed a package as in the example below: $ apt-get install nome-pacote But I can not find in which directory it was installed. Is there a command to find out where the package is? Remembering that if I call the package it works nor...
asked by 17.06.2014 / 15:43
1
answer

Delete file by command line with different type

It has 2 directories, their content is the same, but in one of them there can only be java files and in the other only files other than java In the resources folder are those are not java    src \ main \ resources> from / s * .java...
asked by 04.04.2014 / 22:22