Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8624527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T07:33:04+00:00 2026-06-12T07:33:04+00:00

there is a file called list.lst which I wrote down its content. I need

  • 0

there is a file called list.lst which I wrote down its content. I need to write an awk script which generates a report with the name, department name and salary of all the directors in the file list.lst.

The script can be executed as: awk –f director.awk list.lst

===========================================================

Create an awk script called marketing.awk which displays the name, the position and the salaries of all the employees in the marketing department.
The script can be executed as:
./marketing.awk list.lst

22233:charles harris     :g.m.    :sales         :12/12/52: 90000.00

29876:bill johnson      :director:production    :03/12/50:130000.00

25678:robert dylan      :d.g.m   :marketing     :04/19/43: 85000.00

22365:john woodcock     :director:personnel     :05/11/47:127000.00

25423:barry wood        :chairman:admin         :08/30/56:160000.00

21006:gordon lightfoot  :director:sales         :09/03/38:140000.00

26213:michael lennon    :g.m.    :accounts      :06/05/62:105000.00

24290:neil o'bryan      :executive:production   :09/07/50: 65000.00

22476:jackie woodhouse  :manager :sales         :05/01/59:110000.00

21265:p.j. wodehouse    :manager :accounts      :02/03/55: 97000.00

26521:derryk o'brien    :d.g.m   :accounts      :12/12/55: 85000.00

22312:bill wilcocks     :director:marketing     :09/26/45:125000.00

23564:ronie trueman     :executive:personnel    :07/06/47: 75000.00

22345:james wilcox      :g.m.    :marketing     :03/12/45:110000.00

20110:julie truman      :g.m.    :marketing     :12/31/40: 95000.00

20117:john trucman      :g.m.    :accounts      :12/25/41:110000.00

20123:frank -adams      :g.m.    :accounts      :09/25/48:110000.00

20129:Robin love        :director:sales         :10/01/08:120000.00
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T07:33:05+00:00Added an answer on June 12, 2026 at 7:33 am

    marketing.awk

    #!/usr/bin/awk -f
    {
    if($4~/marketing/)
    {
    print $2,$3,$6;
    }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

INFORMIX-SQL 4.1 - There's this ASCII UNIX file called passwd in /usr/informix/etc which holds
So, I have a file called 'dummy' which contains the string: There is 100%
There is a class called Parent which in generated from a xsd file and
I need to write a pre-build makefile which is called separately from the main
There is a file called 'format' in the root repository folder. It contains the
Let's say there is a file called myfile.txt with the following contents: one two
There's a header file, esUtil.h, with a definition for a structure called ESContext, and
I have a .dll file and in there, there's a method called A. When
In TextMate there is a feature called Go to file that is used for
In my android app, there is a xml file called mylistview : <?xml version=1.0

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.