Search Results

Search: Posts Made By: aemunathan
23,727
Posted By aemunathan
HI The ouput contains very huge count value...
HI

The ouput contains very huge count value as compared to the actually expected output....

What could be the problem?
23,727
Posted By aemunathan
hi Thanks for the response.... can i use...
hi

Thanks for the response....
can i use or condition as well in that

like

awk -F, '$6=="VLY278" || $6 == "VLY280" || $6 == "VLY366" || $6 == "TLY340" && $3 ~ /^2012-04-14*/ {cnt++} END...
23,727
Posted By aemunathan
Multiple pattern matching using awk and getting count of lines
Hi ,

I have a file which has multiple rows of data, i want to match the pattern for two columns and if both conditions satisfied i have to add the counter by 1 and finally print the count value....
8,630
Posted By aemunathan
Hi, In a hurry i posted that requirement and...
Hi,

In a hurry i posted that requirement and searched immediately and got some clue...but i tried the following way i could not succeed.

#!/bin/bash
time=$(ls -l /home/dg/sm.ini |...
8,630
Posted By aemunathan
Run a script when a file is modified/time stamp changed
Hi,

I need to run a script file which uses a file and that file is modified as and when some alarms generated, it is not based on any fixed time period.. it may be modified even once in a minute...
7,751
Posted By aemunathan
Hi Its really great finding. Yes there was...
Hi

Its really great finding. Yes there was some hidden characters. ^M

and its removed and working fine.....
7,751
Posted By aemunathan
Hi, yes i tried already with ksh. its...
Hi,

yes i tried already with ksh. its running but the output is the same...one thing i observed, if i do a more input file name (smsT.ini) and copy the content of the file and create a new file...
7,751
Posted By aemunathan
hi, i hope i understood ur example. and i...
hi,

i hope i understood ur example. and i tried to add the input and output file as below, but it doesn't work.


#!/bin/sh
while IFS== read -r key value; do
case $key in
...
7,751
Posted By aemunathan
Hi now the output is i want the...
Hi

now the output is


i want the output as
7,751
Posted By aemunathan
Hi, for this input file its malfunctioning....
Hi,

for this input file its malfunctioning. why so?


the result is coming out like the one below.



what could be issue....
7,751
Posted By aemunathan
Hi, yes its ok....thanks
Hi,

yes its ok....thanks
7,751
Posted By aemunathan
Read file line by line and process the line to generate another file
Hi,
i have file which contains data as below(Only sample shown, it may contain more data similar to the one shown here)


i need to read this file line by line and generate an output file like...
2,246
Posted By aemunathan
Hi, I found out the problem, Its the...
Hi,

I found out the problem,

Its the blank line which creates problem in the data assigned from sql query. after removing it became ok....


smstext1=`echo $smstext | sed -e 's/\n//'`
2,246
Posted By aemunathan
that i tried....its not ok.
that i tried....its not ok.
2,246
Posted By aemunathan
http post with data from variable?
Hi
am using a variable in my http post message which is getting data from the select query as follows. if i use some values assigned to that variable , http post works fine but if i use the data of...
Forum: Web Development 11-11-2010
9,566
Posted By aemunathan
How to find number of http connections active currently in apache web server
Hi

I have a solaris 9 OS with apache web server running on top of it. i want to know how many http connections are active at any point in time. (In other words how many users are accessing my...
8,998
Posted By aemunathan
hi, i have given only one column value in...
hi,

i have given only one column value in the data provided...and moreover i need to find and replace whereever that 404-064-xxxx-xxx-xxxx (any length upto space) has to be removed...
8,998
Posted By aemunathan
Find replace a particular string of data with wildcard
Hi

I am having a csv file in which lots of data are available wherein i need to find a particular kind of data and replace it with null value.

here is the sample data..


I need to find the...
12,651
Posted By aemunathan
sending mail using Mailx with data from oracle table
Hi,

i need to send emails to the mail ids i receive using the sql query .


SELECT L.ALARM_DEF,L.CRITERIA,L.DISTANCE_METRE,L.EMAIL,L.LAC_ID,L.LAST_CHECK,L.RANGE,...
17,296
Posted By aemunathan
no its not exactly 200 m ...it varies randomly...
no its not exactly 200 m ...it varies randomly for different lat long...34m, around 100m...etc...am not rounding off
17,296
Posted By aemunathan
Hi, its right ..am neither a programmer nor...
Hi,

its right ..am neither a programmer nor a shell scripter...am simply learning new things through this kind of forums...since i had the intention to learn, i came here....am not confident...
17,296
Posted By aemunathan
hi this is the way i converted ....not...
hi

this is the way i converted ....not succeeded..


#!/bin/ksh
pi = 3.14159265358979323846
Earth_Radius = 6378

Function_distance()
{
theta =$(($2 - $4))
dist = $($($(sin($(deg2rad...
9,737
Posted By aemunathan
Select multiple values from an Oracle database and assign it to two dimensional array
hi

I have two tables in oracle DB and am using a joining query which will result in the output as follows.



i need to assign it to a two dimensional array and use it for my further...
17,296
Posted By aemunathan
Calculating distance between two LAT long coordinates
hi,
i have a pair of latitude and longitude and i want to calculate the distance between these two points. In vbscript i achieved in the following way...Now i want to implement this in unix shell...
12,413
Posted By aemunathan
awk partial match and filter records
Hi,

I am having file which contains around 15 columns, i need to fetch column 3,12,14 based on the condition that column 3 starts with 40464

this is the sample data



how to achieve that
Showing results 1 to 25 of 109

 
All times are GMT -4. The time now is 01:13 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy