Questions tagged as 'bash'

2
answers

Shell Bash, How to pass data from shel as parameter

I need to run a file1.sh file, but I also need to get the data that comes after it, for example: file1.sh 171.55.8.45, that ip that comes after, on the same line as the file, before pressing enter , I need this ip to be read and passed as a para...
asked by 15.12.2017 / 13:43
3
answers

How can I display only the names of packages while they are being unzipped

The question that may already have some answers, however I did not find. I'm kind of lost, I'd say that a little bit confusing even because what I'm asking I think I've already done it in some circumstance of life but I can not remember me fo...
asked by 12.05.2017 / 20:24
1
answer

Problems inserting commands in bashrc via script

I'm trying to enter commands in bashrc via script. I run the command source powerpyenv.sh # powerpyenv.sh echo '### Added by pyenv' >> teste echo 'export PATH="$HOME/.pyenv/bin:$PATH"' >> teste echo 'eval "$(pyenv init -)"' >...
asked by 21.02.2016 / 20:08
3
answers

Make a Shell Script bash that extracts to a new file all names and nr of women whose number begins with "91"

Consider that there is a file "file1.txt" which has for example: Name of the person, Sex, Zip Code, Mobile Number, Mobile Phone Mark ... How do I write a bash shell script that extracts to a new file all names and phone numbers of all fema...
asked by 25.11.2015 / 15:12
1
answer

Count number of occurrences in a for loop {Bash}

I have the following script #!/bin/bash for file in *.jpg; do convert $file -resize 1920x1080! -blur 0x8 alterado$file; echo "A Processar o ficheiro $file" done I want to echo with    The processor the xpto file (1 of...
asked by 11.11.2015 / 20:03
1
answer

Permission to shutdown! [closed]

How do I give permission to execute the command shutdown to user? I'm using OS Linux Mint 13.     
asked by 25.06.2015 / 20:54
1
answer

Syntax error if in csh script

When I try to run the script, I get this error: $ ./install $ if: Expression Syntax. I'm trying to install Altera Complete Design Suite 7.2 , in Debian GNU/Linux 7, Kernel Linux 3.16.0-4-686-pae , with csh versão 20110502-2.1...
asked by 07.06.2015 / 22:12
1
answer

Rotate artisan inside shell script linux

How do I make a linux shell script to run a laravel artisan command? ex: php artisan migrate but create a script to run this command     
asked by 14.12.2018 / 02:52
1
answer

How to copy copy the largest file from folder to another using bash shell?

Within a directory with multiple subdirectories I can fetch all .py files, see only which ones have datetime, and show me only the largest of them. Using find, grep, ls and head, but when I try to copy the output of the head, in this case the la...
asked by 11.10.2018 / 15:16
0
answers

Problem with Git in Windows 10

This issue is not related to any git configuration or repository, it is related to the Gith Bash Program and Windows 10 OS It started as soon as I installed and customized Git Bash in my Windows profile, the Git icon never appeared in the to...
asked by 12.09.2018 / 02:57