I am trying to pull data out of a file to execute a series of repetitive commands. One of the fields is a {hex number}.{hex number} pattern. I need the first part of that structure to pass into the command. The file structure is like this:
A 2007/10/20 09:50:00 li text ef6da.1 name 8888.1 99999 path
A 2007/10/20 09:55:00 li text fa57.2a4b8 name 7777.1 99998 path
What i need to do is output a command line for each entry like:
request -p ef6da -m li -v 99999 path
request -p fa57 -m li -v 99998 path
What I am having problems with is splitting the first part of the 6th field, I need the portion prior to the period and not the part after. My attempt has stymied at:
This doesn't work on my system at all it errors. The FS option doesn't say what it is affecting does that mean it should work on all entries. Also aren't there supposed to be braces ({}) around the awk script. what is the $0 supposed to give me, it looks like it is creating a string variable. Am i supposed to put this in the place of the awk string I showed originally?