Search Results

Search: Posts Made By: raghavendra.cse
7,118
Posted By raghavendra.cse
i am using ksh it is fialing with invalid option ...
i am using ksh it is fialing with invalid option

sed: illegal option -- i

---------- Post updated at 05:44 AM ---------- Previous update was at 04:42 AM ----------

i achived it using
...
7,118
Posted By raghavendra.cse
Find and replace with variable using sed or awk
hi,

i have file say email.temp looks like
Bell_BB 17
Bell_MONTHLY 888
SOLO_UNBEATABLE 721

and another file r3

Bell BB,Bell_BB
Bell,Bell_MONTHLY
...
1,520
Posted By raghavendra.cse
comparing files with field using awk
hi,

i have 1 files a.csv temp.out

a.cvs looks like
add,16390,180,674X,HALIFAX_COMMONS_X,902,497,902-209
add,16390,180,674X,HALIFAX_COMMONS_X,902,497,902-219...
2,214
Posted By raghavendra.cse
I got solution to requirement BEGIN...
I got solution to requirement

BEGIN {FS=",";count=0;}

{
if ( NR == 1 )
{ next;
}

if ($1 != "" )
{
if(NR != 2 ) { print prev_serv_list,count; }
prev_serv_list=$1;
...
2,336
Posted By raghavendra.cse
Input header 0 CAMPAIGN_NAME 1 Bell_BB...
Input

header 0
CAMPAIGN_NAME 1
Bell_BB 14
Bell_MONTHLY 803
SOLO_UNBEATABLE 644
Bell_BB 1
Bell_MONTHLY 25
SOLO_UNBEATABLE 78

Output repuired

header 0
CAMPAIGN_NAME 1
Bell_BB 15...
2,336
Posted By raghavendra.cse
adding field values if field matches
hi

i have file as below , i want to add duplicate records like bell_bb to one record with valuve as 15 ( addition of both )

any oneline awk script to achive this ?


header 0
CAMPAIGN_NAME...
2,214
Posted By raghavendra.cse
Calculating number of records by field
Hi,

I have CSV file which looks like below, i want to calulate number of records for each brand say SOLO_UNBEATABLE E and SOLO_UNBEATABLE F combined and record count is say 20 . i want to...
1,494
Posted By raghavendra.cse
Thanks a lot ! :)
Thanks a lot ! :)
1,494
Posted By raghavendra.cse
Spliting file based field pattern
Hi all,

i have file that looks like as below

2263881188,24570896,439,SOLO,SOLO_UNBEATABLE,E,+3.13,+0.00
2263881964,24339077,439,SOLO,SOLO_UNBEATABLE,F,-0.67,+0.00...
2,147
Posted By raghavendra.cse
Thanks radoulov
Thanks radoulov
2,147
Posted By raghavendra.cse
Comparing fields in two files
Hi,

i want to compare two files by one field say $3 in file1 needs to compare with $2 in file2.

sample file1 - reqd_charge_code
2263881188,24570896,439
2263881964,24339077,439...
1,445
Posted By raghavendra.cse
Thanks albertogarcia its working !
Thanks albertogarcia its working !
1,445
Posted By raghavendra.cse
how to add empty filed to record
hi

i have record looks like below

1,US

I want to add empty field to the record as below

1, , , ,US

how i can do it using awk ?

i tried with awk its not working
awk '{ print $1",...
1,549
Posted By raghavendra.cse
i just want to check if $1 ends with _NOK and $3...
i just want to check if $1 ends with _NOK and $3 <=0 then assign $1=$1 and $3=$3
else making $1 ending with _OK instead of _NOK and $3=$3

---------- Post updated at 09:58 AM ---------- Previous...
1,549
Posted By raghavendra.cse
i have tried this let me know where i am wrong ...
i have tried this let me know where i am wrong

BEGIN {FS=","} {
{s=$1;s=substr(s,length($1)-3,length($1))}
if($s=="_NOK" && $3<=0) {r=$1;j=$3} else {r=gsub("_NOK","_OK",$1); j=$3}...
1,549
Posted By raghavendra.cse
Awk Help needed
hi,

I have input file woth records as shown below

OCSMRC_OK,7057348733,+0.00,0,18/05/2010 23:42:19,BellMobility,302610000918553,0006056099,B30,686505,686505,OCS_MRC,+49.14,0,0
,0,0,...
1,529
Posted By raghavendra.cse
cant we do it by writing one more script when...
cant we do it by writing one more script
when the xyz completes cant we write loop in script which checks stauts
when until pid is running and when compleets run another process like that ..
1,529
Posted By raghavendra.cse
sheduling the shell script ?
Hi ,

i have process named xyz with pid as shown beolw


sysop 911 27823 23 07:37:02 pts/0 16:04 /usr/bin/ksh xyz


this process will take nearly 8 to 10 hrs to complete .

...
3,524
Posted By raghavendra.cse
dnt know why it is not working tried with...
dnt know why it is not working

tried with /usr/bin/sed still the same ..

---------- Post updated at 08:06 AM ---------- Previous update was at 08:00 AM ----------

Thanks all tr "\t" "," <...
3,524
Posted By raghavendra.cse
Both are not working !
Both are not working !
3,524
Posted By raghavendra.cse
Suppressing space replacing by comma
hi

i want to replace spaces by comma
my file is
ADD 16428 170 160 3 WNPG 204 941 No 204802
ADD 16428 170 160 3 WNPG 204 941 ...
7,973
Posted By raghavendra.cse
Replace comma by space for specified field in record
Hi,

i want to replace comma by space for specified field in record, i mean i want to replace the commas in the 4th field by space. and rest all is same throught the record.

the record is
...
1,941
Posted By raghavendra.cse
Removing spaces from record
HI

i have record as shown below

402665,4X75,754X_FERNIE BC,12F2,008708,FERNIE BC,1,UTC ,UTC ,250
402665,4X75,754X_FERNIE BC,F212,008708,FERNIE BC,1,UTC ,UTC ,250...
1,281
Posted By raghavendra.cse
Thanks its working !
Thanks its working !
1,281
Posted By raghavendra.cse
need help with awk
hi

i have file with content as shown below some thing like this its big file

4006B4,X400X,9003,X400X_HALIFXCLLR NS,001003,HALIFXCLLR NS,8,AST,ADT,902
4006B4,X400Y,9005,X400Y_HALIFXCLLR...
Showing results 1 to 25 of 32

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