Search Results

Search: Posts Made By: fastlane3000
1,987
Posted By fastlane3000
Thank's bipinajith, it works perfectly.
Thank's bipinajith, it works perfectly.
1,987
Posted By fastlane3000
Change a file content format using awk
Hi,
i have a file input.txt

Continent North America
Country USA Capital Washington D.C.
Country Canada Capital Ottawa
Continent South America
Country Argentina Capital Buenos Aires
Country...
1,430
Posted By fastlane3000
i think i know what goes wrong with your code you...
i think i know what goes wrong with your code you missed the spaces

it's

if [ "$a" = "$program" ]; then echo "$a $b" fi


and not


if ["$a" = "$program"]; then echo "$a...
3,160
Posted By fastlane3000
Very Impressive, always thought that 'awk' was...
Very Impressive, always thought that 'awk' was powerful but didn't how much it was true.
Tested with the example but also with an other file.
It worked perfectly
Thank's Don Cragun
3,160
Posted By fastlane3000
sorry didn't make a clear example 2nd column...
sorry didn't make a clear example
2nd column could have alphabetic values [A-Za-z] but also numeric [0-9] and even both alphanumeric,
2nd column have a variable length eg :Ag, Gde, vi3.... etc...
3,160
Posted By fastlane3000
that's perfect just one more thing before...
that's perfect
just one more thing before closing this thread, can someone explain me how you choose the values 65 and 90
3,160
Posted By fastlane3000
i really appreciate your help, this forum is...
i really appreciate your help, this forum is really the best

sorry Agama, this one also doesn't work,
Output :

||A|0|B|0|C|0
1||A|17,94|B|22,59|C|56,93
2||A|63,71|B|0|C|23,92...
3,160
Posted By fastlane3000
Thank's agama, I can sort the file even it's...
Thank's agama,
I can sort the file even it's not (using 'sort' command)
i tried your solution, but i got this
Output :

1|A|17,94|B|22,59|C|56,93
2|A|63,71|C|23,92
5|B|19,49|C|67,58

it...
3,160
Posted By fastlane3000
Converting to matrix-like file using AWK
Hi,
Needs for statistics, doing converting

Here is a sample file
Input :

1|A|17,94
1|B|22,59
1|C|56,93
2|A|63,71
2|C|23,92
5|B|19,49
5|C|67,58

expecting something like...
1,239
Posted By fastlane3000
I haven't tried it but maybe it could work ...
I haven't tried it but maybe it could work

nawk 'NR<=1000&&substr($0,25,10)~/ABC/{sub(substr($0,1,100),"5");print}NR>1000||substr($0,25,10)!~/ABC/{print}' infile
6,961
Posted By fastlane3000
maybe you're not using the same awk than i have...
maybe you're not using the same awk than i have (i've got a gnu version called gawk)
just try "rdrtx1 (https://www.unix.com/members/302126107.html)"'s solution it's more complete with a "sort"...
6,961
Posted By fastlane3000
in case you need to add "%" and use float ...
in case you need to add "%" and use float

awk '{ A[$2]++ } END { for(X in A) printf("%d\t%.2f%\n", X, (A[X]*100)/NR) }' inputfile
2,523
Posted By fastlane3000
compress files as they are created by a dbexport
hi,

we work on an IBM machine, and we have an INFORMIX datbase, we need to make a dbexport which create a flat files according to the tables we have.

we are on AIX OS using ksh 5.3

we need...
Forum: AIX 08-30-2011
4,294
Posted By fastlane3000
thx guy for the answers, i didn't want to make a...
thx guy for the answers, i didn't want to make a restore test but i think i have no choice
Forum: AIX 08-07-2011
4,294
Posted By fastlane3000
How to make a copy of a tape to another tape?
Hello,

We need to make a copy of a backup tape, using the 2 tape recorders in IBM 3582 Tape Library

We tried tu use "tcopy", it seems to work fine (no error messages) but we aren't sure if we...
3,475
Posted By fastlane3000
Hi You could try something like this set...
Hi
You could try something like this
set color="`echo "blue/green/gold/black/red/purple/gray"|awk -F "/" '{print $1,$2,$3,$4,$5,$6,$7}'`"
4,081
Posted By fastlane3000
the same if you want to use awk only
the same if you want to use awk only
Forum: AIX 02-06-2010
3,669
Posted By fastlane3000
Thank you very much ! you guys are great, dd...
Thank you very much !
you guys are great, dd works perfectly :)
49 seconds to convert a 200Mb-File it's really awesome:cool:


Merci beaucoup Monsieur vbe, vous êtes le meilleur!



THANK'S...
Forum: AIX 02-03-2010
5,540
Posted By fastlane3000
hello, SSH needs OpenSSL to encrypt the...
hello,

SSH needs OpenSSL to encrypt the connection, so it's a prequest.

you have to install it first try this link (after registering at the IBM website, it's free just need an e-mail) :...
9,631
Posted By fastlane3000
hello everybody i have almost the same...
hello everybody

i have almost the same problem with my files (i am on AIX 5.3), i am gonna try this solution
The main difference that in my case i don't have header but also i can't use "pos.txt"...
Forum: AIX 01-29-2010
3,669
Posted By fastlane3000
hello and thx for answering me so fast sorry...
hello and thx for answering me so fast

sorry i was wrong, actually it's a text file of 200 MegaBytes !
i need to change the format of the content so it will be possible to insert the datas in a...
Forum: AIX 01-29-2010
3,669
Posted By fastlane3000
How to cut a flat file according to a certain number of characters?
hello everybody

i am looking for a shell to cut a flat file (with a long unique line) according to a certain number of characters and redirect every result to an output file.

here is an example...
Forum: AIX 02-20-2009
2,284
Posted By fastlane3000
sorry i forget to talk about the error the...
sorry i forget to talk about the error

the problem is the day is incrementing until 31 but the agency stay with "00001" and there is an error it says "cat" couldn't open "day.txt" and the shell...
Forum: AIX 02-20-2009
2,284
Posted By fastlane3000
an archive shell
my shell doesnt work but i didn't find why, could someone help me please !
"archive_month=$1

mkdir /rep/archive1.$mois_archive
mkdir /rep/archive2.$mois_archive

agency=00001
day=01

for...
Showing results 1 to 24 of 24

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