Search Results

Search: Posts Made By: sbasetty
2,784
Posted By sbasetty
Displaying exponent value as string in PERL script
Hello All,

I am currently having an issue displaying a exponent value using perl,

I have a perl program which generates an xls file. This xls is populated with values from a database. But for a...
9,063
Posted By sbasetty
I worked great awk 'BEGIN { n = 100} { if...
I worked great

awk 'BEGIN { n = 100} { if ($1!= prev) { n++ } prev = $1; print $1,$2,n }'

Thanks a lot
9,063
Posted By sbasetty
It is actually later: "yes, sorry, the stuff...
It is actually later:
"yes, sorry, the stuff about unique per key wasn't right actually"

Please find the request:

I have to generate the numbers say from 1001 for each record in a file based...
9,063
Posted By sbasetty
Actually we have to compare the current record...
Actually we have to compare the current record (EMPLOYEE_NUMBER) with the previous records (EMPLOYEE_NUMBER),
If different the seq. number has to be generated otherwise
the number remains same for...
9,063
Posted By sbasetty
Sequence number generation on a key column
Hi Folks,

Can you help me with this issue:

I have to generate the numbers say from 1001 for each record in a file based on a key field,
the catch is the generated number should be unique based...
2,312
Posted By sbasetty
Help with tokenizer
Hello folks,

Can you help me with this issue:
I have a flatfile says:

line#1:
HARRY WENT TO SCHOOL|SALLY JOINED HIM|AT SAINT ANN|THEY ARE GOING ON PICNIC |CAN YOU GUESS|

line#2:
HELLO...
10,613
Posted By sbasetty
Here is an example to access EMP_ID from EMP...
Here is an example to access EMP_ID from EMP table:

##############################

qry_ChkEmpID=`sqlplus -s ${db_conn} <<!
set head off;
set feedback off;
select emp_id from EMP where...
3,352
Posted By sbasetty
Search for a File Name in a folder
Hello All,

Can you please help me with this request.
I have to identify a file (having file name with perticular pattern)
with in a range.

Example:

input file name can be:
myfile2007_03...
94,864
Posted By sbasetty
[QUOTE=reborg] gzip -c file1 file2 > foo.gz ...
[QUOTE=reborg]
gzip -c file1 file2 > foo.gz


Thank you very much for your quick reply.
I have tried this command
here it is compressing the two files in to a single file,
If we unzip this...
94,864
Posted By sbasetty
Compress multiple files
Hi Friends,

Can anyone help me out with compressing multiple files.
I have multiple files in directory , I have to compress these into a single file,
I tried using
gzip -r outfile.gz file1...
5,743
Posted By sbasetty
I think this logic might be helpful you have...
I think this logic might be helpful
you have to write a program,to parse the values "by row" to get the max and min value.
then parse the calculated values column wise to get the Max and Min.
8,856
Posted By sbasetty
Thank you very much guys It worked
Thank you very much guys It worked
8,856
Posted By sbasetty
I would like to have the output between "ADDRS"...
I would like to have the output between
"ADDRS" and ";" only
with this input I am not getting the address part.

Can you please help

SAM
ADDRS 64874 FRANKLYN DR
IRVINE TX -
'74394;
538...
8,856
Posted By sbasetty
Parse file
Hi Friends,

I have a file in the format shown (Name followed by address:)
I need only the address part please see the output.
I have tried using nawk but I am not getting the desired output.

...
Forum: Linux 03-26-2007
2,185
Posted By sbasetty
OS Installation
Hello,

Can anyone suggest me the source for getting the Linux OS,
I have done a partitions in my system and dedicated one partition for Linux with the windows.
Please suggest me the websites...
7
2,934
Posted By sbasetty
I think this link would help you ...
I think this link would help you

https://www.unix.com/showthread.php?t=34325&highlight=created+date

best of luck
2,197
Posted By sbasetty
thanks a lot
thanks a lot
2,197
Posted By sbasetty
Summing on column
Hi Friends

How to do sum on a column?
I have a file like:

FRED 500.01 TX
SMITH 50.10 NY
HARRY 5.00 CA

555.11

Sum on second column.

I am trying using nawk like...
20,842
Posted By sbasetty
Padding with zeros.
Hi Friends,

I would like to left pad with "0's" on first column say (width six)
I have a large file with the format:


FILE:

1: ALFRED 84378 NY
8385: JAMES 88385 FL
323: SMITH 00850 TX
...
9,334
Posted By sbasetty
can you please explain what you are doing in the...
can you please explain what you are doing in the "sub" to compare
9,334
Posted By sbasetty
It worked like a magic Thanks a lot
It worked like a magic

Thanks a lot
9,334
Posted By sbasetty
Hi Radoulov, How to restrict the gsub to...
Hi Radoulov,

How to restrict the gsub to start from a certain position,
Can we use the substr in conjunction with gsub,

nawk 'NR==FNR{ gsub(/[ \(\)-]/,"");x[$0];next}
{gsub(/[ \(\-]/,"")}!($1...
5,818
Posted By sbasetty
sort -n -t\| -3 -5 -m file1 file2 ins not...
sort -n -t\| -3 -5 -m file1 file2 ins not working.
is diplays the files seperately
I would like to merge that.

Thank you
5,818
Posted By sbasetty
Merge files based on key
Hi Friends,
Can any one help me with merging these file based on two columns :


File1:

A|123|99|SAMS
B|456|95|GEORGE
D|789|85|HOVARD

File2:
S|123|99|NANcY|6357
S|123|99|GREGRO|83748...
3,936
Posted By sbasetty
thanks a lot
thanks a lot
Showing results 1 to 25 of 66

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