Search Results

Search: Posts Made By: naoseionome
2,502
Posted By naoseionome
I forgot to add something... I've tried that...
I forgot to add something...
I've tried that and this is what i get:

cut -f1 -d"," test2.txt | cut -f2 -d"="
value1
cut -f2 -d"," test2.txt | cut -f2 -d"="
value2
cut –f3 -d"," test2.txt |...
2,502
Posted By naoseionome
How to cut a line that contains two different separator
Hi all,

I have a script that receives a file, receives the values and put them on an oracle database.
I need to do this for multiple files that will contain in the end near 500 million records,...
7,717
Posted By naoseionome
awk and substr performance
Hi,
I have another performance question i would like to share:

i have this code:

#!/usr/bin/ksh
#CONTACT
gzcat *CONTACT* | awk '
{
KEY=substr($0,1,12)
fkey=substr($0,14,12)...
6,200
Posted By naoseionome
changes
hi,
I'm doing some changes already.
I'm running the test now with printf and trying to figure the amount of memory for sort (1 or 2 or 3 Gb :P)


Originally Posted by naoseionome...
6,200
Posted By naoseionome
performance issue using gzcat, awk and sort
hi all,
I was able to do a script to gather a few files and sort them.

here it is:

#!/usr/bin/ksh


ls *mainFile* |cut -c20-21 | sort > temp

set -A line_array
i=0
file_name='temp'
...
11,238
Posted By naoseionome
problem fixed
Hi,
I found the problem.
No need for an answer. The error was simple: too much time without sleeping and working :S
11,238
Posted By naoseionome
cutting fields and doing trim in awk
hi,
I have this code:

#!/usr/bin/ksh

#SERVICES
gzcat *SERVICES* | awk '
{
SUBSCRIBERNUMBER=substr($0,1,20)
SUBSCRIBERNUMBER=trim(SUBSCRIBERNUMBER)
SERVICECODE=substr($0,22,61) ...
2,963
Posted By naoseionome
missunderstood
Ok.

I thought that but i think is always more polite to send an email first and then cancel the thread or not depending on that.

It was the deadline for me to try this option but I was able to...
2,963
Posted By naoseionome
question
this is not a homework question.
This a a work question that I'm trying to solve.
I don't understand almost nothing about Linux, thats why i asked this. it can look dummy but is not homework.
I...
2,963
Posted By naoseionome
work arround
I made it working.
I'm doing like this:

#!/usr/bin/ksh

gzcat *common* | awk '
BEGIN { FS = "," } ;
{if(isnum($1)) {imsi=$1}{imsi="xpto"}}
END{print imsi",1,"$0}
function isnum(n) {...
2,963
Posted By naoseionome
awk keywork
I use it in command line when i do :

awk -f gather_files.awk indata.txt


shouldn't this be enought?
2,963
Posted By naoseionome
awk question
Hi,
I trying my first awk script.
I have this:

my code file:

#!/usr/bin/ksh
BEGIN{FS=","}
{if(FILENAME=="indata.txt") {L=1}}
END{print $1","$2","$3","L","$0}


my example file:
...
1,725
Posted By naoseionome
awk script
Hi,

I'm trying to complete the information in a file, it will be my first AWK script and i have no idea how to do that!
I just get the book sed awk - 2nd edition, By Dale Dougherty & Arnold...
2,661
Posted By naoseionome
better example
explaining my situation best:




the information may came like this:

410000000000001,dummy, data,separated,by,comma,,,,,,,,
,,,,,,,,,,,,,,,,,,,,,,,,,
,,,,,,,,,,,,,,,,,,,,,,,,,...
2,661
Posted By naoseionome
concat 6 files in 1 file ( maybe use AWK?)
hi,
I have the following problem:
- 6 different files that have one key in common.
- this six files must be aggregated in one output file sorted by the key.
- the main file has to be writen...
Showing results 1 to 15 of 15

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