Questions tagged [gawk]

gawk (short for GNU awk) is a free implementation of awk with manifold useful extensions.

gawk (short for GNU awk) is a free implementation of awk with manifold useful extensions.

AWK is an interpreted programming language designed for text processing and typically used as a data extraction and reporting tool. It is a standard feature of most Unix-like operating systems.

Source: Wikipedia

See also .

Reference

981 questions
-4
votes
2 answers

bash: insert multiple lines after a line containing a pattern using gawk

I had posted a question on bash: insert a line after a pattern using gawk How do I insert more than one line after a line containing a pattern?
Dr. Debasish Jana
  • 6,980
  • 4
  • 30
  • 69
-4
votes
2 answers

Search, Match & Count from input file: Script

I have an input file like this John completed his graduation John is working for an IT industry Thomas completed his graduation John completed his graduation Thomas is working for an IT industry Thomas is working for an IT industry I want an…
-4
votes
1 answer

AWK report formatting

I have a task that needs to output the result of the diags — whether it is pass "P", fail "F", halted "H". As for the cps_ck that is not found in the example input file, it will give me "X" meaning "not executed". Sample…
-4
votes
1 answer

Removing entries from a file by matching a column with a column from another file

I have two files f1.txt and f2.txt. I want to able to take remove rows within File 1 (f1.txt) if its first column has a matching entry in File2 (f2.txt). f2 has only 1 column per line where as each row of f.txt will have two or more columns. Here is…
user3803714
  • 5,269
  • 10
  • 42
  • 61
-4
votes
2 answers

regular expression to remove string following

http://www.example.com/product/9896341.html?utm_source=google&utm_medium=VRM&utm_campaign=N&cid=vizuryjz&utm_content=&color=red&pid=9896341 in the above url, i need to remove text followed in utm_source=google, suppose if in url utm_source="text" i…
chethi
  • 699
  • 2
  • 7
  • 23
-5
votes
2 answers

How to delete duplicate column using awk script

I have the following 444, 1234, (1234), 3453534, 43534543 I want the output to be 444, (1234), 3453534, 43534543 I know awk would be the best solution. But I am not able to come up with the solution The new line can have the unique column placed…
nirvanastack
  • 455
  • 2
  • 5
  • 13
1 2 3
65
66