The situation is as follows, I have 3 variables available:
numlinha - > line number to replace
texto - > text of the line to be replaced (I would prefer to use the line number but this is here if I can)
texto_sub...
I have a bash runmydocker.sh script whose purpose is to retrieve the string sent by the user when he is calling that script and create a DNS in etc/hosts .
Example:
The user (developer) will call runmydocker.sh mysitephp7.com...
I need to do some testing on the linux command line, but doing all the testing is very time-consuming, can anyone help me, if I can, write code in shell script to run all tests, and write output from bash in a txt file?
I have a folder called work and inside it I have 2 folders: p1 and p2 . How can I tell if the p1 and p2 folders are empty?
I have the following command
find . -type f -printf "%T@ %p\n" | sort -nr | cut -d\...
I was looking on the internet how to make a homemade DVR (using a Linux machine) and what I found was this avconv command:
avconv -i rtsp://<user>:<password>@xxx.xxx.xxx.xxx:xxx/play1.sdp -c copy -map 0 -f segment -segment_time 300...
I use a bash script to translate words from other languages into Portuguese. It always worked very well, but for a few days it got extremely slow, to the point that I could not use it. Home
some people informed me that the problem could be in th...
I'm creating a system that works online, the user logs in and will have access to a terminal which can execute only the commands allowed on the server. The question is this:
The user will have to execute a script in Python and pass parameters...
Good afternoon,
I'm programming in C and it's the first time I'm programming in Bash (shell-script).
I did some bash functions, learned to call and created an interactive menu with the user, my program does "basically" reading a wordlist a...
I would like to know if there is a difference in how bash represents variables with null values
var=
and with empty strings
var=""
What precautions should I take when handling variables like these?