Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a bash script that produces a catalog of all functions in a set of Python source files named on the command line. The output

Create a bash script that produces a catalog of all functions in a set of Python source files named on the command line.

The output will be a sequence of lines of the form:

function_name file_name:line_number

Suppose for example that the file example.py had on line 7:

def foo(l):

Then for that line, the output of your script would say:

foo filename.py:7

The output should be sorted by the function name.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Principles Programming And Performance

Authors: Patrick O'Neil, Elizabeth O'Neil

2nd Edition

1558605800, 978-1558605800

More Books

Students also viewed these Databases questions

Question

My opinions/suggestions are valued.

Answered: 1 week ago