10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I was trying to write a shell script which reads csv file and sends mail in html format along with tables. Hope i have completed 1st part , but while sending mail i was trying to highlight some rows in the table based on the egrep outcome. If the string exists in line/INPUT, i am trying to... (4 Replies)
Discussion started by: varmas424
4 Replies
2. Shell Programming and Scripting
i have a file as below:
? ? ? ? 20060101
DHR ? ? ? ? 20060101 1316 30.90
KOM ? ? ? ? 20060101 1317 7.20
DHR ? ? ? Pg ? 20060101 1316 27.32
DHR ? ? ? Sg ? 20060101 1316 30.52
? ? ? ? 20060101
MRD ? ? ? ? 20060101 1355 46.12
SHB ? ? ? ? 20060101 1355 40.90
HSH ? ? ? Pn ?... (2 Replies)
Discussion started by: oreka18
2 Replies
3. Shell Programming and Scripting
Hi,
Could you please tell what is the meaning of -z in while loop condition.
For example,
while ; do
echo "*** Enter the age "
readage (3 Replies)
Discussion started by: vidyaj
3 Replies
4. Shell Programming and Scripting
Gurus,
I need to read a line from a file and strip the characters from it and compare the stripped value with the value I pass to the script while executing it. Below is the code for the same. But when i execute the code, it is throwing an error.
#!/bin/ksh
. /home/.i_env
... (14 Replies)
Discussion started by: svajhala
14 Replies
5. Shell Programming and Scripting
Hi,
my xml files looks something like this
<Instance Name="New York">
<Description></Description>
<Instance Name="A">
<Description></Description>
<PropertyValue Key="false" Name="Building A" />
</Instance>
<Instance Name="B">
... (4 Replies)
Discussion started by: tententen
4 Replies
6. Shell Programming and Scripting
I'm a noob working on a script to take 3 user inputs. One of them is simply a variable: "poolname". The other 2 are cases: "groupa/groupb" and "enable/disable". "groupa" and "groupb" reference 2 files - groupa.txt or groupb.txt. These files simply consist of a list of server IP addresses and port... (2 Replies)
Discussion started by: *nixnoob
2 Replies
7. Shell Programming and Scripting
Hi,
I have to insert html frames in for loop.
Here is the code.
for($k=0;$k<3;$k++)
{
print<<HTML;
<html>
<head>
<title>
HTML Horizontal Frames
</title>
</head>
<frameset cols="25%,75%">
<frame src="a.html">
<frame src="b.html">
</frameset> (0 Replies)
Discussion started by: vanitham
0 Replies
8. Shell Programming and Scripting
Hello All,
How i can put loop in nawk. what i want is that i define a variable which contain vlaues like var='1 2 3 4 5' and then define for loop which gives vlaue to nawk one by one to varilable inside nawk and then print it.
cat /omp-data/logs/5etr/081121.APX | nawk -v CDNLIST='700 701' '
... (1 Reply)
Discussion started by: wakhan
1 Replies
9. Shell Programming and Scripting
i have the equation like below
07:35:07 ( AB : 2319f.ab * 22) + ( AB : 2320f.ab * 22.03 ) + ( AB :2321f.ab * 22.07 ) ...... N
i want put ":" as a delimiter and break the equation like below
2319f.ab * 22
2320f.ab *22.03
2321f.ab * 22.07
.
.
N
i know the number of... (1 Reply)
Discussion started by: mail2sant
1 Replies
10. UNIX for Dummies Questions & Answers
How do I test the return condition in the script if no files are found:
for file in `Find ${LANDING_FILE_DIR}${BTIME_FILENAME_PATTERN}`
do
...
..
done
I want to capture the return code so I can echo the error or condition. Using if ] always returns zero no matter where it's placed.
... (4 Replies)
Discussion started by: mavsman
4 Replies