Search Results

Search: Posts Made By: reno4me
14,930
Posted By reno4me
I did get it working using the FS=[_.]*, the...
I did get it working using the FS=[_.]*, the output was in the format I expected.
I appreciate the help!! This is a GREAT forum!
Randy
14,930
Posted By reno4me
Output - 12345:smith johnson...
Output -
12345:smith johnson jones:bubba:12345:20120215:4:0:pdf::

Which looks really close. Expected output would be -
12345_smith johnson jones_bubba_12345_20120215_4_0.pdf

I'll use...
14,930
Posted By reno4me
I set the FS in the BEGIN block: BEGIN { ...
I set the FS in the BEGIN block:
BEGIN {
RS="\n" # new_line record separator

FS="[\. _]+"
OFS="_"

Then in the main body of the script I do a print to an output file:
...
14,930
Posted By reno4me
Bartus - That was the first thing I tried and...
Bartus - That was the first thing I tried and still got the same result.

ctsgnb - The script's purpose is to create an "index" file used by an application to import PDF's for viewing. The...
14,930
Posted By reno4me
AWK - Ignoring White Space with FS
I have an AWK script that uses multiple delimiters in the FS variable.
FS="[\. _]+"

My awk script takes a file name such as this:
12345_smith_bubba_12345_20120215_4_0.pdf and parses it out...
Showing results 1 to 5 of 5

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