Advertisement

Experts have come up with some helpful tips for getting a solution to your problem fast.

 

Welcome! If you have any general questions about Experts Exchange, feel free to ask me.

 
Time Tested bash Solutions: 101 - 125 of 157
 
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 need to have a a find command the traverses the directories to list files that have TAB in them. I need to get the list of files only.... No other output is needed. A script would be o.k. too!
hi. Im new to this. I try to make a bach job, there is using stsadm for Sharepoint to backup the diffrent sites I have on my Sharepoint. I have a file made from this command: stsadm -o e...
I have a list of partitions from which I have to find out the total disk space and free space from selected partitions. Example from the below: /proc                    0K     0K     0K...
Having these two scripts: +++++++ test ++++++++++ #! /bin/bash echo p1 = $1 echo p2 = $2 echo p3 = $3 +++++++++++++++++++++ +++++++ add_param ++++ #! /bin/bash ./test newparam...
Hi, I want to remove any lines in the report that have the value of $curver and store in results.. This is not working: cat report | egrep -v $curver > results I've googled for age...
Hello all, I have a cron job that will be renaming some mysql tables daily to back them up.. I wanted to do this from a shell script but I'm not sure how to gate 'date' to show YESTERDA...
I am trying to incorporate a test into my bash scripts which will select different code depending on whether or not it runs in an interactive or a non-interactive mode. Given the following ...
We are running a legacy front-end system running in HP-UX 10.20.  The system produces an ASCII interface file that is uploaded into our GL system.  The interface file is positional with no del...
im trying to write a shell script to automatically download some software and install it. heres what i have: #!/bin/bash clear wget http://www.somesite.com/downloads/software-current.t...
Mac OS X 10.5.5 I used Network in System Preferences to configure a VPN connection. After which it displays in the menu on the top of my screen with my clock. I click on it and then click '...
Hello group, I have to text file file1 and file2. How can I mix them such that their columns stand next by together (either in bash or PHP)? file1 has: A B C D E F file2 ha...
Hello, I'm upgrading some linux workstations runnnig fc6 and torque 2.3.1 to fc9 and torque 2.3.3. In order not to overload NFS, when a script starts, it connects to the fileserver via rsync, ...
i wrote a small bash script to do a mass search/replace using 2 files... $DESC is the file with the labels to put in the destination file $XML is the destination file (the file with the e...
Hi all What do I do to get list of files that have tabs? How to do substitute the tabs with spaces? Is there a way to do that in a perl script that traverse the directory structure and re...
The following bash script on an EMC version of redhad linux #!/bin/bash # get_fs_list () { sleep 3; } # get_fs_list gets bash -v test.sh #!/bin/bash # get_fs_list () 'est....
Hello Experts! First Half of the issue: I have a flat text file that contains the listings for products with a catalog number, something like this: B1234567 B1234568 B1234569 The...
Hello all, I have several joomla web sites on a server that use a component that contains a folder that needs to be deleted.  The folder I need to delete is called bad-behavior The web d...
Hi, I have logs files like this <Oct 7, 2008 7:43:59 AM CDT> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.> 2008-10-07 07:44:14,106 INFO [org.spring...
Hi! This is probably an easy question, but am not so good with regular expressions ... I have this script that automatically send my (IMAP) emails for me at a certain time using cron, and I...
I want to find if I file has xzy in the text of the file ( not the name of the file ). If xyz is in the file I want to copy the file to filename.xyz I tried find and for f in * and coul...
I was hoping that someone could help me write a script to be run as a cronjob that will find and renice processes with a certain name. Any ideas/examples that can provided would be helpful.
I have bunch of sites that I want to test whether those sites open successfully or not and the results should be emailed to me. Basic testing would be just to test whether going to that URL...
Hi, I want to create non-existence directory. Please advise solutions. Thanks. clear echo "Enter location of your home directory : " read input if [[ ! -d ~/h/susan ]] && echo "Dire...
On solaris I have data:   N00412L3.daysold 140 37 N00160L3.daysold 18 38 N00158L3.daysold 11 39 the 14 days old of the tape and I want to sort to find tapes over 90. I think sort w...