Search Results

Search: Posts Made By: lordsmiter
3,757
Posted By lordsmiter
thanks...
aigles,

I will try yours out in a bit. I need some time to figure it out.


dr. house,

Anything after the first 10 numeric digits (or 12 with dashes) can be thrown away, such as line 1...
3,757
Posted By lordsmiter
like this
Your input:

XXXXX:YYYYY:ZZZZZ:(123)456-7890x84848
XXXXX:YYYYY:ZZZZZ:x12345
XXXXX:YYYYY:ZZZZZ:(987)-654-3210
XXXXX:YYYYY:ZZZZZ:73849
XXXXX:YYYYY:ZZZZZ:543 - 987 - 2106...
3,757
Posted By lordsmiter
getting closer...
I think that would work for any of the crap encountered when a person has the full number and area code formatted in 20 different ways. The remaining issue is when they just have their extension...
3,757
Posted By lordsmiter
reformating non-uniform strings
I have a set of free-form phone numbers that are not uniform and I want to reformat them into a standard uniform string. These are embedded at the end of a colon seperated file built by a large nawk...
3,183
Posted By lordsmiter
AWK with inconsistent field layout
Input File:

1234567890123456789012345678901234
----------------------------------
11111 XXX xxxxx 6666666666
22222 YYY 2222222222
33333 AAA TTT xxxxx 9999999999...
2,642
Posted By lordsmiter
Most excellent! That works. Thanks!
Most excellent!

That works. Thanks!
2,642
Posted By lordsmiter
Wow that works great. Looks like I need to read...
Wow that works great. Looks like I need to read up some more on nawk.

One thing though. This is eliminating the rows from FileA that have the same A3 value but the unique A1. In other words, the...
2,642
Posted By lordsmiter
Help with merging 2 files into 1
:::::::::
::FileA::
:::::::::
A1-------A2--------A3---A4---A5--
=================================
AC5VXVLT-XX----------------------
B57E434--XXXX1-----MMMM-ZZZ--111-...
Showing results 1 to 8 of 8

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