When I created the configuration file apache/conf/httpd.conf and went to check if it was in the system the program was saying that the file does not exist so how do I recreate the file so that it does ...
In Ubuntu desktop 20.04, I have 20 directories, each containing a text file with the same name, "weights". These text files contain ~20-30 numbers separated with a space. In each of the 20 directories,...
I'm writing an awk script that calculates some statistics. First I need to get an user input, which is a string, and store it in a variable (center). I have this:
printf "Enter the ...
I have a command in a bash script like this, to get me an array of all the domains on my webserver.
domains=($(grep -rnw '/etc/nginx/sites-available/' -e 'server_name' -l | xargs grep -e 'server_name'...
I have a script that scans for wifi access points and lists them in the following way in file1.txt:
and the same script on each scan reads the signal quality of each wifi AP ...
The following data contains a variable number of fields per record with each row being a single record. Awk script that will add all of the fields for each row together and print the resulting sum per ...
This a sample of my input file:
I wanna print field (from 4th to the last field) as new line for each by inserting increasing arithmetically variable (from 5 to 25) after 3rd field in the text file.
01.01.1995 01:00 1....
When you ping you will get the ip between () , for e.g : (10.10.10.10)
and after the ip there are (number) for e.g : (10.10.10.10) 56(84)
so how i can get the ip that is between the () ? and without ...
The size is simple to find after size=
i can find the size and put it to a file but removing everything but the numbers and then summing it with the total numbers all in one file is just not coming ...
I want to count the number of different name in a text file of this presentation:
2008 girl Avah
2009 girl Avah
2008 girl Carleigh
2011 girl Kenley
2012 boy Joseph
2013 boy Joseph
2014 boy Isaac
I have file which contains something like below