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...
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...
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...
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...
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...
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 >...
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...
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...
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...
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...
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...
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.