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 Unix Systems Programming Solutions: 1 - 25 of 831
 
I have a shell script and I want to specify both the from address and the subject on the same command line.   My mail command-line looks like this: mail -s"[Bug $bugid]" joe@joe.com < bugs...
Hi. I would like to ask for help regarding using the while statement. Supposed we want to ask the user to keep on typing in a name of months of the year for each prompt which will then be stor...
Hi, I'm trying to get the size of a file using a unix shell. . . . . is there a specific command to get this info? Thank's
I have problem on automate the FTP using unix shell. Could anyone help? Regards, William
Hi, I have 5 java files and I would like to zip them so that the extension of the zip file is *.tar.gz. Can you please tell me the command that I can use on a UNIX machine in order to zip tho...
Hi,   I am doing shell programming. I initialise a variable in a script and use the export command.  After the script is executed I want the value of the variable to be visible outside the...
Hi, I have a file with a single line of text in it, but the thing generating it puts large chunks of spaces throughout the line. Is there a regex format I can use with SED to replace all of...
When looping through this while loop, I get to the first if condition which happens to be true.  It should not get to any of the other elif conditions, right?  I'm looping through a file and i...
Hi, I have a shell script that send an excel file as an email attachment. I would like to be able to send more than one excel attachment at any given time. This is the script that curren...
Hi Experts, I am trying to write a shell script for converting upper case names of .cpp & .h files into lower case, my script is checking if the file is not directory, if it was directory ...
Hi... I have a whole bunch of xml files that i want to make a change in..... I want to replace the FIRST occurance of the word Update with the word Insert. I have about 20,000 files, and I w...
I want to use exported variables from one script in another. Just as an example, there is more to it than this, but these variable are declared in one script. Does export only make them avai...
Is it possible to extract a substring from a string using ksh INTERNAL ONLY functions? I know the task could be easily done by forking a 'cut' or 'awk' and probably many others, but it is not...
Anybody know how to convert a hex to a decimal number? I'm in BASH shell. eg: a_hex_number="3e101010"     to 1041240080 (in decimal) I need the decimal value for ctime function. Thx.
Hi, I want to test that a file (say $FILE) exists and has more than 0 lines.  How will I do that in a single if statement ?  Can I do the following: if test -a ${FILE} && `wc -l ${FILE...
I have the following script: #!/bin/bash telnet console 7020 <telnet.in telnet.in contains the following: ^] send brk boot net -v - install ^] quit However this isn't quite ...
Hello,      I am using /bin/sh as my shell and writing a shell script for this shell.      I have few operations that involve bitwise AND and bitwise OR operations to be done.      I wa...
Hi, All that I am doing is (on my HPUX command prompt) >mailx -m -s "hi" validemailid@somedomain.com After I press enter ,it then stops for the email body. I type hello and then CTRL-D ...
Hello, I'm a newbie so forgive me if I am doing something silly. I have a string passed into my shell script as an argument. I only want every other character of this string. while [ $num...
I have a text file filled with a list of SKUs for which there will be matching images in a directory and its subdirectories.  I need a command or shell script that will read each line of the t...
Hello UNIX Xperts: This is a simple question for many of you - How can I modify a script to print a comma seperated list of integers, starting with the entered value as an argument to the s...
Can I declare a UNIX shell script variable a character or an integer? I'm trying to get yesterdays date so I put this in my script. It seems to work but on the 8th I got an error doing the mat...
I have the following variable VAR="/abc/def/mno$xyz" How do I get the value after the "$" sign? I tried: NERVAR=`echo "$VAR" | awk -F"\$" '{print $2}'` but it didnt work. Thanx
I have a problem in a shell program where I do errorchecking. I ask a returnvalue from the database, which usually is a number, and this goes to a variable. Now, I want to know if the retu...
Hi, I am trying to use the mail sytax in my script, but it just hangs...It does not do anything... My requirement is just to send an email to my client indicating the job status..... C...