Questions tagged as 'shell'

6
answers

What does the symbol '~' mean in Bash?

What does this symbol mean ?: ~ I've seen it appear when you are going to install some components such as: php ~/composer.phar require cboden/ratchet or when I make a cd in the root: analistasistemas-VirtualBox / # cd analistas...
asked by 06.02.2018 / 17:09
1
answer

script delete folders according to the current date

I have made a script to delete folders when the disk is, for example 80%, I want to use it in centOS with asterisk. where folders are organized "/ var / spool / monitor / 2018 / {01/02 /.../ 12}" Well, I did this script that erased 2 months a...
asked by 20.04.2018 / 18:55
1
answer

How can I select the lines between two patterns?

   Question and answer based on my own question and answer in How to select lines between two patterns? I have a file like the following and I would like to print the lines that appear between the patterns PAT1 and PAT2 . 1...
asked by 14.03.2017 / 16:16
1
answer

Why does not raw_input () work for me? [duplicate]

In Python 3.6.2 in my Shell I put: print ("Hola mundo") raw_input() I execute it and it sends me this error: multiple statements found while compiling a single statement     
asked by 02.10.2017 / 11:03
3
answers

Run .exe from the apache server

Good morning, I have an application which when clicking a button should open my computer's scanner, to start a scan, but I have several problems: PHP does not allow to connect from the server to the local computer (or if someone knows so...
asked by 17.01.2017 / 16:37
0
answers

Enter a reading counter to variable

Hello that such a good afternoon, what I want to do is to count x times a word defined in a text and after that put it in a variable which will be printed in a pop-up box. The little code I have is this: @echo off :bucle find /c "Perl" < te...
asked by 06.07.2016 / 23:44
1
answer

Creating files with Touch

I have to create, from each file that pass me by parameter, a file with each line of the form filename . numeroNLaLinea . The code that I thought is the following: #!/bin/bash for file in $@ do i=0 if [[ -s $file ]] then...
asked by 08.11.2016 / 21:23