LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-29-2017, 10:14 PM   #1
anasjk
LQ Newbie
 
Registered: Dec 2017
Posts: 3

Rep: Reputation: Disabled
Unhappy Please i want solution for these linux script


Please i want solution for these linux script

script1 : a script that takes the user name and displays the contents of his personal folder

script2: a script that takes the name of a group and displays the number of files belonging to this group

script3 : a script that takes the path of a folder as a parameter and recursively transforms the sub files in uppercase

script 4 : a script that takes the path of a folder and returns the number of files in read mode
 
Old 12-29-2017, 10:25 PM   #2
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: Devuan
Posts: 554

Rep: Reputation: 155Reputation: 155
What have you tried so far and where are you stuck?
 
Old 12-29-2017, 10:34 PM   #3
anasjk
LQ Newbie
 
Registered: Dec 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
Unhappy

Quote:
Originally Posted by TheEzekielProject View Post
What have you tried so far and where are you stuck?
I do not know anything about Linux and the professor asked us to bring these scripts tomorrow
 
Old 12-29-2017, 10:49 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,983
Blog Entries: 18

Rep: Reputation: 3388Reputation: 3388Reputation: 3388Reputation: 3388Reputation: 3388Reputation: 3388Reputation: 3388Reputation: 3388Reputation: 3388Reputation: 3388Reputation: 3388
LQers will be happy to help you with your homework, but they will not do it for you. If you are in a class about Linux, the coursework should give you some hints as to how to get started.

If you post what you have tried, we will be glad to help. But you need to take the first steps.
 
Old 12-29-2017, 10:56 PM   #5
anasjk
LQ Newbie
 
Registered: Dec 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
LQers will be happy to help you with your homework, but they will not do it for you. If you are in a class about Linux, the coursework should give you some hints as to how to get started.

If you post what you have tried, we will be glad to help. But you need to take the first steps.
Thank you, But in this case I have no other choice
 
Old 12-29-2017, 11:01 PM   #6
Mill J
Member
 
Registered: Feb 2017
Location: 127.0.0.1 Sweet 127.0.0.1
Distribution: Void, LFS,Tahrpup, Quirky on Rpi and many others
Posts: 358

Rep: Reputation: 88
Basically if we wrote these scripts for you, You would learn nothing, since you still wouldn't know how to do it/what's going on in the scripts.

LQ is here to help you learn, not CHEAT.
 
2 members found this post helpful.
Old 12-29-2017, 11:34 PM   #7
fido_dogstoyevsky
Member
 
Registered: Feb 2015
Location: Victoria, Australia
Distribution: Slackware 14.2
Posts: 160
Blog Entries: 1

Rep: Reputation: 121Reputation: 121
I'm assuming that you've just been given this homework at short or no notice near the start of a course.

A duckduckgo search on script1 will give you many hints on getting started. Try writing and running some scripts based on some of those examples and record what happens. Do the same for at least one other script. If you still have trouble come back here with your results.

And even if you don't succeed you'll still have something useful to show your professor.
 
1 members found this post helpful.
Old 12-30-2017, 02:44 AM   #8
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: Debian, Crux, LFS, AntiX, NuTyX
Posts: 1,594
Blog Entries: 3

Rep: Reputation: 686Reputation: 686Reputation: 686Reputation: 686Reputation: 686Reputation: 686
I can't imagine that your teacher would have given you this assignment if he didn't think he had taught you enough to enable you to carry it out. There would be no point in that. So if you still don't know anything about Linux, either you haven't been listening in class or your teacher hasn't explained things sufficiently. You need to tell him what has happened so that it can be put right. If you simply cheat and get someone else to do your homework for you, you will have missed an important opportunity.
 
3 members found this post helpful.
Old 12-30-2017, 04:59 AM   #9
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 7,302
Blog Entries: 4

Rep: Reputation: 1767Reputation: 1767Reputation: 1767Reputation: 1767Reputation: 1767Reputation: 1767Reputation: 1767Reputation: 1767Reputation: 1767Reputation: 1767Reputation: 1767
Quote:
Originally Posted by anasjk View Post
Thank you, But in this case I have no other choice
you wrote this 40min after your initial post.

40 minutes is plenty of time to do some web searches and try to cobble together something - which we then could've helped you with - and you would have learned something in the process.

but asking us to do your homework for you - no.
 
Old 12-30-2017, 08:37 AM   #10
fatmac
Senior Member
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: AntiX
Posts: 2,052

Rep: Reputation: Disabled
...& still no attempt from the OP......
 
Old 12-30-2017, 08:50 AM   #11
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: Debian, Crux, LFS, AntiX, NuTyX
Posts: 1,594
Blog Entries: 3

Rep: Reputation: 686Reputation: 686Reputation: 686Reputation: 686Reputation: 686Reputation: 686
Quote:
Originally Posted by fatmac View Post
...& still no attempt from the OP......
I'm not surprised after the answers he's received!
 
Old 12-30-2017, 09:16 AM   #12
Mill J
Member
 
Registered: Feb 2017
Location: 127.0.0.1 Sweet 127.0.0.1
Distribution: Void, LFS,Tahrpup, Quirky on Rpi and many others
Posts: 358

Rep: Reputation: 88
You know as well as I do, you have to agree to the rules of this forum in order to join....What are the rules on posting homework.......?
 
Old 12-30-2017, 09:48 AM   #13
Habitual
LQ 5k Club
 
Registered: Jan 2011
Location: Nowhere near you, thank God.
Distribution: High Sierra
Posts: 8,664
Blog Entries: 17

Rep: Reputation: Disabled
Teachers hang out here too, ya know!

a script that takes the user name and displays the contents of his personal folder

a script that takes the name of a group and displays the number of files belonging to this group Section 4.2 / Page 7
a script that takes the path of a folder as a parameter and recursively transforms the sub files in uppercase

script 4 : a script that takes the path of a folder and returns the number of files in read mode.
I leave ^^this^^ web search to you.
I literally goggled each of the questions, and the results suggest python mostly, some bash, others.
I gave you bash shell entries.

What kind of "Linux script" exactly?
bash, sh, python, or perl are the usual "linux scripts"..?

Are you or have you studied python?
 
Old 12-30-2017, 10:54 AM   #14
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: Debian, Crux, LFS, AntiX, NuTyX
Posts: 1,594
Blog Entries: 3

Rep: Reputation: 686Reputation: 686Reputation: 686Reputation: 686Reputation: 686Reputation: 686
Quote:
Originally Posted by Habitual View Post
What kind of "Linux script" exactly?
bash, sh, python, or perl are the usual "linux scripts"..?

Are you or have you studied python?
No way! Anyone savvy enough to have any kind of programming language under his belt would not have asked a question like that or made those responses. We have to be dealing with simple shell scripts here, mostly using find (though you wouldn't even need that for the first one)
 
Old 12-30-2017, 11:31 AM   #15
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 5,657

Rep: Reputation: 499Reputation: 499Reputation: 499Reputation: 499Reputation: 499
When TBOne's away, the noobs will play...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Monitoring solution + bash script Hopsahejsa Linux - Software 2 09-01-2014 06:59 AM
A new snag with my update_slackware.sh script ... and a solution! Lufbery Slackware 4 04-21-2010 09:33 PM
Script/Solution to problem?!?! PLEASE HELP xberetta21 Linux - Newbie 9 01-28-2008 10:56 AM
Need a Document.all solution which transform any ma js script. nadavvin Linux - Software 1 11-10-2006 12:55 PM
Script as a backup Solution shawnbishop Linux - Software 3 04-14-2006 09:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration