What I am trying to do is make F* files in the /tmp directory. The command works fine, but the problem is that it only splits the files into F1 F2 etc. into the current directory. I've searched but cannot find a way to put them in a directory other than the present directory, though it should be simple. Anyone have an idea? I would think "/tmp/x" but this didn't work and I've tried variations.
You've got two of the exact same awk program in a row, you probably only ned one. And you can simplify that one a whole lot, too, and remove the cat -- awk does not need cat's help to read multiple files.