well I think I found a delimiter, anything with more than one space, the Names will contain one space but never two spaces in a row. Can anybody work with that? I have tried it `awk -F " " '{print $1}' works fine, when I try to print more than one field, no can do, only prints the...
I understand that it wasn't consistent but I am trying to protect my data, if I listed my hard data, it would takes hours for me to cover up anything that needs to be protected, oh yeah by the way I work for the US GOvernment so you can imagine. I'm must trying to get the theory down I know it...
field2 will ALWAYS have a number starting between 0-9
field can have a combination of characters, spaces, and numbers as displayed in my previous example. Just to give you a little info, Field1 are Firewall Rules that contain Names of programs in uppercase and lowercase, numbers, and spaces in...
to simplify this, the first field contains characters, spaces, and numbers, the second field will only contain numbers with no spaces.
Ex
"1111JJJ 222222222 12132Jack" 5551212
"1122JJJ 333333333 12132Joe" 5551313
Thanks, I hope this makes it easier
well I was trying to hide my data as best as possible and didn't give enough parameters. Unfortunately, none of the fields are fixed. Second, all the fields can contain a combination of numbers, characters and spaces. Sorry
Ex.
John1111111 1111111 1 Main St. 555-1212
Joe Doe 11122222222 2...
Well I thought I had something good on my hands until I received I had spaces in what was supposed to be my first field in the file. Here is an example:
John 1 Main St 555-1212
Joe 2 Main St 555-1313
Jack 3 Main St 555-1414
Jack Frost 1 Main St 555-1515
John Doe 2 Main...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.