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 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 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 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 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...
Hello,
I wonder if the following if statement is 100% correct:
if (!(-e ${MTCDIR}/library/$opusTech)) then
echo " This technology does not exist. Existing technologies are:"
cd ${MTCDIR}...
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
Hi,
In the attached server.c and client.c code snippets, if I don't use
bzero,
then,
at the client side, some extra/strange characters appear at the end
of client.txt.
I want to know w...
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...
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 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...
This is an easy one, for someone who knows.
I need to know how to go to sleep for a short period in "C" code, on Unix. When I say a short time, I mean in milliseconds. I am aware of the...
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...
Hello,
I want to know whether .sh files run in windows or not. It will be helpful if some1 let me know the ans.
sajja
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...
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 ...
dears,
kindly, i need a Unix AIX simulator that can be run on windows. any one can help me.
Please don't answer if you don't know.
How can I pass a command line argument such as $1 or $2 into an awk script?
I have written a shell script that includes some awk programming and i need to be able to call that program by typi...
I'm a Windows programmer by trade......
I have 2 books that both explain functions. Neither show how to assign a return function value to a variable. Either externally or within the same sc...
What is the syntax for running a script in crontab every 4 hours?
O/S = HPUX 11
Thank you for any assistance.
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...