Advertisement

635 organizations, including eBay, Ericsson and Lockheed Martin, now work smarter with Corporate Accounts. Save up to 42%

 

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

 
Time Tested Shell Scripting Solutions: 26 - 50 of 263
 
Basicaly I want to have this intial while loop with two or three conditions. 1)-z "$nfs_srv 2)$ASK_VOL_SIZE" -ne 0 3)$nfs_srv -gt $hd_size_convert How do I write the line to have several...
Hey Guys/Gals... I'm interested in writing a shell script that implements a simple calculator for integer arithmetic. The calculator should prompt the user and receive its input in following ...
Hi, I am going to attend an interview for a programmer position. The questions will be based on Perl and Shell Script. Can anyone please post Shell Script questions which usually ask for ...
Hi, I am new to shell scripting.  This question is about K shell scripting. I need to print the words from a sentence suppose that i have a sentence : TEST_SENTENCE="Please help me in ...
Don't know if it matters, but using bash shell, I'm trying to do a find that will find all files with a patricular name that contains a particular text and do a vi substitute on that text. ...
I want to catch the ASCII character through the shell script. basically I want to catch if user has pressed "enter key" Or "Escape key". based on that I have to do something in shell...I can d...
Hello experts, I need your help with "find' command. I have directory tree below with files inside each folder. I need to delete files older then x days but only in root directory and not sea...
I have a file with a list like this: **** START OF FILE **** -;lkasdf --;lajdf;lajsdf --;lajsdf;lkajsdf -;lkasd;flkjadsf -;ao09asdg -;asdg0 **** END OF FILE **** The question that...
how can i CAT a file into another from a specific line ?
I'm trying to decrypt a pgp file useing the pgp.exe command line tool how do I go about doing this? Shouldnt there be 3 parameters passed filename:*.pgp public key:"*.asc" passphrase:"h...
Hello I have developed a script designed to read multiple files and extract spcific text information and write that info to an xml file. However, it takes many many hours (>24 in test). Sin...
In some cases (occur twice or thrice a day) our application reads the file while it is being written through FTP by our business partner, means if the file is 400 KB, and it is being written o...
Hi I have a large(194MB) ASCII text file which contains fixed length records terminated with a LF, which get imported into a database. However, the person that created the program which cre...
I'm converting credit card data from one system to another.  The data as is sits today has a card holder name field which consists of a single column in my Sybase DB.  To properly extract/form...
how can i add number of days to a date in shell script ex:if date is 20080506 in Ymmdd format how can i add 10 days to it?
hello how can i echo in a file, on a specific line ? Example: lets say the file has bla1 bla2 bla3 between bla 2 and 3 i want to put "bla bla"
Hi: I was not able to do this in Excel, so I decided to have it accomplished in a Linux Centos Server, issuing the command from the command line. Imagine I have a very simple flat text f...
I need a shell script that will convert all HTML tables in a file to csv format and disgard any text that is not inside a table. I have searched high and low, found some bits and peices, bu...
Hi all I am trying to write a bash script that will monitor a log file to test whether the log file is growing. This is to monitor an application and ensure that we are informed if it s...
Hi All, I have a file with the following format:   Field 1 ABC CDE       , 1234567         ,                       1231   23131                   (the line stop here, there are many spac...
Problem:  Using shell scripting, suppose I want to extract data from a table in database1 into another table into database2.  Then, I want to verify that the data in database2 matches the sour...
Hi all, I am trying to write a quick UNIX shell script to execute a nslookup and then read the output to a simple file for easy editing. Basically I want the hostname, FQDN host name and IP...
This is a follow up question to http://www.experts-exchange.com/Programming/Languages/Scripting/Shell/Q_22763955.html I am trying to create an unattended uninstall script. Now, the solution...
Hello, first off really new to bash, so not sure how this works. Both of these values should be 15, but it always prooves false. I believe $hd_size might be stored as a LONG (15.55) h...
I want to spawn off a child process from a shell script . but how do i trap the exit code of said command once it has executed? Example: nsueu417:OTPEMREP # ls foo foo: No such file or...