Đã Đóng

create a command line tool that takes in a directory, and prints all of its subdirectories in a formatted fashion

In many command line interfaces, there is a command called tree that either already exists of you can download via a package manager. Delmar doesn't let us do that, unfortunately, so we'll have to build our own.

For this project, your goal is to create a command line tool that takes in a directory, and prints all of its subdirectories in a formatted fashion. For example, suppose I pass in a directory with its own subdirectories for a project:

example-app

|-- [login to view URL]

|-- src

| |-- main

| | `-- java

| | `-- main

| | |-- [login to view URL]

| | `-- [login to view URL]

| `-- test

| `-- java

| `-- main

| |-- [login to view URL]

| `-- [login to view URL]

`-- target

|-- classes

| |-- [login to view URL]

| `-- main

| `-- [login to view URL]

|-- generated-sources

| `-- annotations

|-- generated-test-sources

| `-- test-annotations

|-- maven-status

| `-- maven-compiler-plugin

| |-- compile

| | `-- default-compile

| | |-- [login to view URL]

| | `-- [login to view URL]

| `-- testCompile

| `-- default-testCompile

| |-- [login to view URL]

| `-- [login to view URL]

|-- surefire-reports

| |-- [login to view URL]

| |-- [login to view URL]

| |-- [login to view URL]

| `-- [login to view URL]

`-- test-classes

|-- [login to view URL]

`-- main

`-- [login to view URL]

Submit a copy of your bash script's code via canvas. For now, just copy paste the code directly out of vim or nano (or use cat and print the code to the command line).

How to Submit

Try doing the program in chunks. Don't attempt to do everything in one sitting.

Start by drawing out what it is you think that the program should do.

In our notes, we've created a number of applications that extract information from grep and sed, split strings to act as arrays, and deal with file inputs.

Where to start:

Bonus points: Colorize your output to distinguish between ordinary files and directories.

Determine the filetype of what is passed in, and throw an error / exit if not a directory.

Print a tree of the file hierarchy of the supplied directory's subdirectories and files.

Your application should be able to:

Kĩ năng: UNIX, Shell Script, Bash Scripting

Xem nhiều hơn: prettier ci, code style issues found in the above file(s). forgot to run prettier?, eslint, executing which command will display the number of files in the current directory?, which command will always change the working directory up two levels from the current location?, write a command that lists in long format all .md files in the current directory, how to make a directory in linux, prettier cli, linux create command line application, id3 tag command line tool linux, create command line program vb6, software inventory command line tool csv, command line tool gui, weblogic command line tool, jpg combine command line tool pdf, making gui command line tool, java create command line menu, cross platform command line tool wrapper, linux command line tool id3 tags, command line tool windowss inventroy

Về Bên Thuê:
( 0 nhận xét ) St Louis, United States

ID dự án: #27426349

6 freelancer chào giá trung bình$36 cho công việc này

aruaswin

Hi There!! I have 6+ Years of experience in Shell scripting in various flavours of Linux. I should be able to do this for you. Ping me we can talk and take this forward.

$20 USD trong 1 ngày
(15 Nhận xét)
3.7
unixjon

Hello, I am an expert Linux administrator with a lot Shell scripting experience, I am sure that I can develop this tree view without problem

$111 USD trong 3 ngày
(0 Nhận xét)
0.0
michalj97

Hi. I have 2 years of professional experience in bash scripting and using Unix based os. I created similar scripts already. Best regards. Michał

$20 USD trong 5 ngày
(0 Nhận xét)
0.0
puneetchugh26

Hey, I am having Expert level knowledge in Shell Scripting and created various scripts for different clients to automate manual tasks and reduced huge [login to view URL] of example scripts are : 1. Fixing CA Certificate dow Thêm

$15 USD trong 2 ngày
(0 Nhận xét)
0.0
tHappy

Mate, Do you want something like this? [login to view URL] I can deliver in 2 days Thanks R

$30 USD trong 7 ngày
(0 Nhận xét)
0.0
adeiepaytm

Hi there, I have already developed a script for you which mimics the `tree` command. Have a look for yourself. If you find it as per your requirement, please let me know and we can discuss about the additional require Thêm

$20 USD trong 1 ngày
(0 Nhận xét)
0.0