Hello
I have a bash script that parse a text file variable $essid_string with content like this:
ESSID:"Shopping City WiFi"
I want to extract the substring betwee...
Briefly, I need help writing a bash shell script that can go into a directory (recursively) and extract all the .tar.gz archives it finds, and then pipe all of the extracted text files into a ...
Can someone help me create a BASH shell script that reads a text file with entries like below. And creates a menu.
Basicaly the script would read the txt file for the site names and output ...
Hello everyone,
I´m working with a "job table" (mysql). In this table you can find different params that are being used for a php-script. This script works on my database and file operation...
Ok so this is the .inf file I want the shell script to manipulate.
An example of what I want it to do....
4 Staticaly defined variables.
$HOSTNAME ex. test01 --> ComputerName
$IP ex. ...
I have a list of domains that I'd like to trim down a little bit. I only want the domains listed and not the subdomains of each domain. For example, the list below:
ff.search.yahoo.com
fil...
I am building a shell scrip that needs to spawn a child process in another window and I can't quite figure out how to do this.
Hello,
One of my CMS applications makes backups of my INTRANET site at 2 times, 7am and 8pm on a daily basis. As you can see from the files below is that there are web backups and intranet ...
I would like to be able to parse through a file, and have it start a new line everytime it finds "String" (which is somewhere on every line). So after this is complete, every other line in the...
I've searched the web on basic bash, sed and awk scripting and can find nothing simple enough to answer this question: how do I copy and paste lines in a file? I have a file containing the li...
I have a bunch of files that I need to move based on a file name and than once moved files need to be renamed:
Example:
group of files
[...]
005512345.txt
0055742394.txt
[...]
to be m...
what is the way to convert "Wed Oct 15 04:58:06 2008" to epoch using bash ?
Hi!
I'm writing a simple bash script to place in /etc/cron.daily/. The script runs a couple of commands. What I'm wondering is how do I send all stdout and stderr to mail once the script ha...
experts,
I have tried to use the following command to add a new user but cannot login as that user.
groupadd admin -g 500
useradd admin -d /home/admin -s /bin/bash -g admin
...
I have a file that contains a list of names. (approx 80) I would like to use these names to feed into sed and delete every line that contains any of these names. I cant seem to figure out ho...
I have a python script that processes data files which I currently run from the Linux command line:
$ /path/process.py archive1.csv archive1 2> error.log
with arguments: name_of_file to proc...
I've got the following text menu below (in the code snippet) that creates menu entries based on a std unix file based in this format:
SITE1:DNS1:DNS2:TIMEZONE
SITE2:DNS1:DNS2:TIMEZONE
If ...
Hello,
I am trying to write a bash script with multiple options. I know it can be done however I am stuck on how to get the script to loop back to the "pick a number". Basicly I am writing ...
Hi,
I'm trying to move hundreds of files (archive them to seperate folders) in bash. But I get the following:
[mail.bowens.co.za ~]# mv /var/spool/asterisk/monitor/g???-200808* /var/spool/as...
I do a daily mySQL dump on both of my linux servers and keep them for two weeks.
My question is, in event of a semi-disaster (rogue php program trashes tables), so I just want to restore an i...
I have a ftp server that people upload files to in /home/username.
I need a bash script to move files from their home directory to the correct directory.
I will be adding future users so...
What I am doing is creating a script to do various tasks once a standard RHEL 5.1 install has been completed.
I can get it to create users and passwords and various other things, where I a...
Hi there,
I assume this will be trivially easy for someone who knows bash scripting. In my .bashrc file, I have a bunch of statements to define aliases. For example:
alias more='less'
...
Hello,
I have the following bash code fragment:
x=0
for i in $(locate $1)
do
dnames[$x]=$(dirname $i)
let x=$x+1
done
Which assigns the output of a locate command into th...
hello.
for a bash script I am writing, I need to take take the parameters from 1 or more effects in an xml file and write those parameters in separate files (one per effect).
For example...