Questions tagged as 'unix'

1
answer

Absolute path md5sum

#!/bin/bash comprobacion () { fichero=$1; #La variable a almacena el valor actual del checksum a=$(ls -p $fichero | grep -v / | grep -v Script_Md| xargs md5sum); #La variable b almacena el contenido de...
asked by 08.05.2018 / 16:49
1
answer

Include hidden files in a tar

I need a command that can include hidden files within a tar.gz Until now I use $ tar -zcvf respaldo.tar.gz /var/www/sitio.com/ But this does not store hidden files like .htaccess How can I include these files in a similar command?     
asked by 25.11.2017 / 20:02
1
answer

Regular expression date on solaris

I need to find files whose extension ends with a date format YYYYMMDD , in Linux I have the following command: find . -regextype posix-extended -regex './.*.([0-9]{4})(0[1-9]|1[012])([12][0-9]|[0-9]|3[01]){2}' But Solaris does not wor...
asked by 27.03.2018 / 17:09
1
answer

Problem when creating or starting an ionic project in macos

I'm trying to install ionic on my macbook, and I've had a lot of trouble trying to install NODE and npm, in the end I managed to install everything without any errors, but when I try to start the project, with this command: sudo ionic start io...
asked by 10.09.2018 / 10:04
1
answer

Shell Script create script alert file creation

I'm trying to create a script, that I detect the creation of directories / files / subdirectories, and that after that, I execute another statement / command Example: Launch a script, and if in / test / detect that it has been created, create...
asked by 02.03.2018 / 16:57
1
answer

How to check if there is a word in a file

I have the following file in centos: I want the program to check if there is "equipment" with a regular expression like it would be with the sed command ???     
asked by 01.01.2019 / 14:39
2
answers

Recommendations for Windows 10 partition table and Mint Sylvia linux?

Even if I'm not a fan of windows, because of university issues I must use it, I would like to know if any of you could recommend a partition table to share the two operating systems, in my case it is a 1TB disk. I have found solutions like the o...
asked by 17.08.2018 / 18:34
1
answer

Open a file from another directory with C ++ in GNU / Linux

My intention is to select a text file from the text / directory, but when I select it, I get the error. ifstream Archivo; system("clear"); cout << "Elige el archivo que quieres leer" << endl; system("cd texto/ && ls --col...
asked by 13.12.2016 / 05:01
3
answers

Convert months into string to integers?

I have an output of one month: Agosto I want to convert it to whole: 08 In linux Bash, I have the following code ... But it does not work, since it gives me jumps of the line with each converted element: com2=$(cut -d/ -f2,2 tmp_date...
asked by 17.10.2018 / 18:59
1
answer

Accents in Bash

When I generate a query from my database, it returns an information to me, which I save in a variable and then send it by email from the bash using "mail". The problem I have is that, as some words have accents, the Bash does not recognize it...
asked by 16.08.2018 / 17:05