Selesai

Shell scripting

I'm doing a project based on shell scripting where I have several questions that I need to write a script that would execute itself on bash. There's five questions (some questions are split up into sections).

1.

A) Write a shell script called [login to view URL] that displays a message like the one shown here:

$ ./[login to view URL]

Hello! This is module CO2017.

The current directory is /the/current/directory.

Please note: Except that "/the/current/directory" should be replaced with the path of the actual directory where the script is executed.

B) Write a shell script called [login to view URL] that displays a message saying whether or not the working directory is your home directory (by referring to the environment variable $HOME).

$ ./[login to view URL]

Not in HOME directory

$ cd $HOME

$ /path/to/CO2017/scripts/[login to view URL]

In HOME directory

2.

A) Write a shell script called [login to view URL] that takes a list of file names as command-line arguments and searches all of them when it is invoked for the username of the current user. As output it should display the line of each occurence plus the one line before and after. For example, invoked by user gtl1 would produce something like this:

$ ~/CO2017/[login to view URL] test1 test2

test1-On the other hand, we denounce with righteous indignation and dislike

test1:gtl1 who are so beguiled and demoralized by the charms of pleasure of

test1-the moment, so blinded by desire, that they cannot foresee the pain

--

test1-saying through shrinking from toil and pain. These cases are perfectly

test1:simple and easy to distinguish. In a free hour, when gtl1's power of

test1-choice is untrammelled and when nothing prevents our being able to do

--

test1-have to be repudiated and annoyances accepted. The wise man therefore

test1:always holds in these matters to this principle of selection: gtl1

test1-rejects pleasures to secure other greater pleasures, or else he

--

test2-Far far away, behind the word mountains, far from the countries

test2:Vokalia and Consonantia, there live the gtl1. Separated they

test2-live in Bookmarksgrove right at the coast of the Semantics, a large

test2:language ocean. A small river named gtl1 flows by their place and

test2-supplies it with the necessary regelialia. It is a paradisematic

--

test2-text by the name of Lorem Ipsum decided to leave for the far World of

test2:Grammar. gtl1 advised her not to do so, because there were

test2-thousands of bad Commas, wild Question Marks and devious Semikoli, but

B) Write a shell script called [login to view URL] that takes a directory path as a command line argument and displays the following for the contents of that directory:

the plain files in the specified directory (one level only, do NOT descend into sub-directories) which were most recently modified more than 72 hours before the script is run;

the directories (not plain files) in sub-directories of the specified directory where the directory name begins with the string "dir" (not including quote marks).

$ ./[login to view URL] /s_home/gtl1/CO2017

Plain files modified more than 72 hours ago in /s_home/gtl1/CO2017:

/s_home/gtl1/CO2017/[login to view URL]

/s_home/gtl1/CO2017/[login to view URL]

Directories in sub-directories of /s_home/gtl1/CO2017 starting with "dir":

/s_home/gtl1/CO2017/abc/dir1

/s_home/gtl1/CO2017/xyz/dir6

Please note that there are more questions so if you are interested in this I will be giving you more questions.

Keahlian: Bash Scripting, Linux, Shell Script

Lihat lebih lanjut: shell scripting tutorial point, shell scripting examples, shell scripting pdf, bash shell scripting, shell scripting basic commands, unix shell scripting examples programs, shell scripting programs, -z option in shell script, remove single line file shell scripting, unix shell scripting institute hyderabad, shell scripting add lines file, freelancing shell scripting, dash shell scripting, linux shell scripting freelancing, unix shell scripting projects bid, porjects shell scripting, oracle shell scripting, freelance unix shell scripting programming, telecom shell scripting, freelancer shell scripting

Tentang Pemberi kerja:
( 0 ulasan ) Birmingham, United Kingdom

ID Proyek: #18650637

Diberikan kepada:

VarunUnix

Hello Looks like this is an assignment.. I can help you to write this. You can review my profile and if interested please contact me. As today is late for me, i can do this for tomorrrow. Thank You

£21 GBP dalam 1 hari
(25 Ulasan)
4.8

8 freelancer menawar dengan rata-rata £25 untuk pekerjaan ini

urstealth

Hi, I have lots of shell scripting experience. I can do all of these and more questions. Let's discuss

£20 GBP dalam 1 hari
(29 Ulasan)
4.6
AhmadSameer

Hey there I'm a System Engineer with coding skills. I had developed tons of Shell scripts I can help. Regards.

£20 GBP dalam 1 hari
(32 Ulasan)
4.8
monsune

Hello. Lots of sysadmin experience here. I would love to work on those scripts for you. I'm ready to proceed right away. How many questions are there in total and can you please list all of them at once so I can estima Lebih banyak

£20 GBP dalam 0 hari
(42 Ulasan)
4.9
sambestsolutions

Hi I am an devops engineer experienced with linux systems for more than 4 years. I am well experienced in using shell scripting , bash scripting and other scripting like python to linux monitoring and task automation. Lebih banyak

£33 GBP dalam 4 hari
(11 Ulasan)
3.7
DataSoolutions

Hi...Going through the requirements to be completed for all of the shell questions, I think I can get it done within 2 days. please ping me to discuss further. thanks and regards, data soolutions

£35 GBP dalam 2 hari
(0 Ulasan)
0.0
khanrahaman76

Good at Shell scripting and can give you the scripts in a day , will help in installing and resolving issues withh scripts.

£23 GBP dalam 2 hari
(0 Ulasan)
0.0
acarmona1104

Hello, I have over 8 years of experience working with linux systems, bash scripts for various institutions, the work would be done in less than a day.

£28 GBP dalam 1 hari
(0 Ulasan)
0.0