Questions tagged as 'bash'

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 / 20:23
2
answers

Rename linux directory

Good I expose you the small problem that I have, I have updated a theme in wordpress and the old one I have changed the name, to the directory I have put .old at the end, but now I can not access. I tried renaming it again with -old at the en...
asked by 05.12.2018 / 09:09
1
answer

Bash, mail and special characters

I tell you, I am sending an email in this way: mail -s "$(echo -e "$ASUNTO \nContent-Type: text/html")" $DESTINATARIO < cuerpo.html The message arrives to me barbarous, the problem is that the variable $ SUBJECT has as content: "Birthd...
asked by 29.08.2018 / 17:40
2
answers

Problems with bash script in CentOS - Reading of variables

I have to make a script written in bash to do access audits in mySQL. I already have the sentences that I have to use, but I do not know how to write the script correctly in order to collect variables and add them to a simple menu to make the...
asked by 20.11.2018 / 22:08
1
answer

Problem BASH script linux

Hi, I have the following problem:    Make a script that moves all the programs in the current directory (executable files) to the subdirectory "bin” of the HOME directory of the user currently logged in.       The script must print...
asked by 17.10.2018 / 18:29
1
answer

How to place the php command in the git bash in Windows?

How to use the PHP command in the Git Bash?     
asked by 30.07.2018 / 22:44
2
answers

Ubuntu for Win10 does not install where they say [closed]

Greetings, I wanted to know which other site installs the Bash for Windwos 10 because AppData / Local / lxss does not exist and the Bash is working perfectly for me. I share an image as it will be worth more than 1000 words ...     
asked by 23.09.2017 / 12:56
3
answers

Find the directories and files in the current directory that contain a certain string

Show on screen all the directories, only directories, of the current directory that contain in their name the string "pra". I have this: find . -type d Show on screen all the files, only files, of the current directory that contain in t...
asked by 25.09.2017 / 18:29