Questions tagged as 'bash'

2
answers

Error in using aliases and read in ShellScript

I'm trying to create a command in the .bashrc of ubuntu, however I'm having a problem, I'm trying to create a folder with the variable entered at the time of calling the alias, but this is giving an error. When I open the terminal it already ask...
asked by 20.02.2016 / 17:14
1
answer

Date and Computer Language Shell Script

Is there a shell script function that takes the date and time (time zone) and language that are configured on the computer?     
asked by 08.12.2015 / 18:30
1
answer

How to store value of a variable in a Bash Script function

I'm creating a factory to easily encrypt a file in this case in txt or decrypt. The problem in this program is the value of the CIFRA_HEX and CIFRA variable that I can not pass the stored value to the following function (decifra_RC4 ()) because...
asked by 13.10.2018 / 14:07
0
answers

Read command gets lost when using the arrows in MingW

I need to read a command line information. Here at work we use MingW that comes with SourceTree.
asked by 07.02.2018 / 00:17
1
answer

Retrieve arguments passed via ARGV in the terminal

I have a make file. Inside this make file, I call this file that has this: set -f; echo $1 | bc I want to retrieve the value of the function in C for this makefile. Example: ./a.out "12 + 12" result: 24     
asked by 11.11.2017 / 08:39
1
answer

Insert text using FFMPEG, but only in a portion of the video

I use the code below to generate new videos (from the respective folder) by entering the student's name and CPF in each video. However, compilation takes a long time, since the compilation time is the time of the video. I need something faste...
asked by 04.10.2015 / 00:28
3
answers

Remove specific line of files in linux [closed]

I need to remove a particular line in a file crontab ex: * * * * * root /home/linaro/funcao1.sh * * * * * root /home/linaro/funcao3.sh * * * * * root /home/linaro/funcao4.sh * * * * * root /home/linaro/funcao5.sh I would like to dele...
asked by 07.11.2018 / 18:40
1
answer

How do I know if script command was executed successfully?

I need the script to identify if the tar.gz file was successfully generated in an if. Here is a nonfunctional example: VAR=tar -zcf teste.tar.gz teste/testeDir if [VAR] then echo "Sucesso" else echo "Erro" fi Pretty simple I think but I cou...
asked by 29.07.2016 / 20:14
1
answer

What kind of recursively remove accented characters from file names

I tried other scripts I found on the internet (* the ones I found), but without success. So I want to know from some of you how to do this automated / recursive task. Shell Script Retrieved from: link set meta-flag on set output-meta on...
asked by 23.08.2018 / 23:15
3
answers

Problem creating a .sh script to get into a directory

I'm creating a .sh script that the first step is to get into a directory. 1. #!/bin/bash cd /home/salariosbrasil/consulta-ninja #git pull pwd This directory exists and even cd does not work .. but your self test mkdir -p...
asked by 24.01.2017 / 20:40