Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: learningawk
  • Content: Threads
  • Order by date
  1. learningawk

    Skipping duplicate fields before printing

    I have a coordinate file that contains vector points that draw closed polygons. The first and last data point have the same coordinate location. I am reformatting the file to be used for input into another application. Here's a test data set with the first record a column counter...
  2. learningawk

    How do I ring the terminal bell?

    I want to insert a bell tone into my awk script and ring after the awk script finishes. Thanks for your assistance.
  3. learningawk

    format problem

    I have a data file as: H1 H2 H3 H4 0 0 0 0 1980 480 607006 3030970 0 100 1495 200 1495 300 1495 400 1495 500 1495 600...
  4. learningawk

    Remove whitespace from filenames

    Hi, I have done a search on previous submissions and found some help on this but my example doesn't quite work. I want to replace from all filenames in a directory all commas and 1 or more whitespace with a single underscore. If the file name has a " in it, i want to just remove it...
  5. learningawk

    Replacing data from one file into another

    I have found some similar posts but not quite like my problem. I have a data file 1 that looks like: 00001 0 000 xxxxx yyyy ...numerous records of data 00020 0 000 xxxxx yyyy ...numerous records of data 00033 0 000 xxxxx yyyy ...numerous records of data then I have a file 2 that looks like...
  6. learningawk

    polygon outline

    I have a series of random placed xy coordinates in a file that reflect 2 points for opposite ends of a vector line. The input data files looks similar to this: 1842 1841.5 1 aaa 2338.5 1841.5 2 aaa 1891.5 1922.5 1 ccc 2394.5 1928.5 2 ccc 1798.5...
  7. learningawk

    Read a file and print a few records

    I have a file1: aaa aaaa aa aaaa a bbb bbbb bb bbbb b ccc cccc cc cccc c ddd dddd dd dddd d eee eeee ee eeee e fff ffff ff ffff f ggg gggg gg gggg g hhh hhhh hh hhhh h I have a file2: 999.00000 999.00000 999.00000 2 999.00000 999.00000 999.00000 4 999.00000...
  8. learningawk

    grep from file and rename

    Could anyone give me a hint on how to use AWK to do the following? I have a series of files that I want to grep out comment cards that begin with # and then write the output file name with a concatenated extension. Example: grep -v "#" input_file_name.dat >...
  9. learningawk

    Regular Expression help

    I am having trouble understanding how regular expressions work using AWK. I am trying to match certain characters in a substr field. For example: field 1=123-2N if (match ($1,/^[1][0-9][0-9].?[N])) { print} In my input file I have several different combinations of like data, such as: field...
  10. learningawk

    Multiple line record problem

    I am trying to break down an address file that consists of 3 address's per group and then this group of 3 are separated by 2 blank lines or newline character. I want to print each separate address of 4 lines in a tab or comma delimited output ( one complete address per record) Here's a dummy...
  11. learningawk

    How to remove <nul> characters in a file.

    I have some old files, 1980's vintage data, that has 80 column records with several sets of <null><null><null> etc. between each good record. When I do a DD comand to dump and then a unix fold command to align the records, the output data is not columnized because of the <null> values. I have...
  12. learningawk

    Reformat multiple records into one

    I'm having a slight problem with reformatting a data file. Here's the input: 624 1010 0 4917 50 4921 100 4924 624 1042 0 4917 50 4921 100 4921 150...
  13. learningawk

    Data file reformat

    I have a data file of coordinates that need to be evaluated and reformated. Here's a snippet of data from an input file. >,T4N,R10W,S1,0017 -98.212145, 34.840612 -98.194615, 34.840651 -98.194553, 34.855014 -98.198131, 34.855031 -98.200526, 34.855012 -98.212111, 34.855093 -98.212145...
  14. learningawk

    Help with data lookup table

    Hi, I'm new to awk/programming and is there an easy way to compare 2 files, one being a group of values that another file would look for similiar values and then grab 2 values from that file and store in file 2 for further processing? My first data look up file is in the following format: XXXX...

Part and Inventory Search

Back
Top