My question is as follows, I am developing a script where from a text list where you will have the name of the directories, the script pick up the name of each directory, show the size of each directory and then the total. Example:
I need to...
I would like to make a parser with just one line and break a string into several variables. In the string I will parse, the default is that each field is separated by a comma.
On several lines, the code to do what I want would be like this:...
Good people, this is my output with the normal find:
{
"_id" : ObjectId("57be6168ce98ad853a96282f"),
"nome" : "Mercado Padrão",
"userId" : "o4wQ2i4Dt7cAMNf9A",
"produtos" : [
{
"nome" : "coca cola",...
I need to select the rows of a file that contains the characters | or \
diff -y ontem.csv hoje.csv | grep -e "|" -e "\"
How to tell pro grep to return the rows it contains either a | or a \ ?
The command
python foo.py
When called on the terminal, it runs the sent python file. Imagine that I have a python file that always needs to be called as follows:
xvfb-run python foo.py
to work.
Is there any way I can write something...
What I already have: %date% is the windows variable that stores the current date. When I use echo %date% the value Tue 07/25/2017 is correctly printed.
But when I try to do mkdir %date% the created folder is Tue...
I have a file that has three columns, and several rows.
The second column is made up of numeric values, and I want to rearrange it, in ascending order, but without affecting the previous and subsequent column.
exemplo do arquivo:
7.31937 736...
I have the following function:
function ping {
nome=$(dialog --title "inform o endereço que deseja PINGAR" --inputbox "IP ou URL - \
Lembrando que será disparado 10 pings para o endereço informado." 10 45 --stdout)
status=$?
if [[ $status -eq...
A new need arose accompanied by a good new question that until then I did not find anything similar on the internet - Copy a single line at a time, for a single different file .
Example for each new line to be copied:
total=10
linha='ca...
I'm trying to compile the client zookeeper 3.4.12c on a machine solaris , below are the steps I followed.
unzip the source code, enter the folder zookeeper-x.x.x / src / c.
make a "./configure [OPTIONS]" to generate the makes...