LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Closed Thread
  Search this Thread
Old 04-16-2007, 07:48 PM   #1
skyhigh697
LQ Newbie
 
Registered: Apr 2007
Posts: 3

Rep: Reputation: Disabled
Help Please


Hello im sorry im new to Linux and am having a hard time with a couple things my teacher has asked of me to do

(A) *Write a shell script that prints the username and PATH for the current user (use environment variables).
*Write a script that takes a file name as its argument, check if this files does exist, and if it does then set the file to be executable by everybody.
*You may have to use man test to find what you need to make the if statement work for 2.

( Write a script that asks the user for two arguments
source directory
a file extension (like jpg, txt, doc, etc.)
and then delete all files of that extension in the directory

(C) Write a script that asks the user for two arguments
a user name
a password
and then create a user account with the above information.

If anyone can help me out that would be awesome... with one or all any help right now will be much help
thank you guyz
 
Old 04-16-2007, 08:02 PM   #2
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
Double posting is juvenile and unhelpful
 
Old 04-16-2007, 08:15 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.


And asking others to do your work is lame, too ... re-read the rules:

NO HOMEWORK QUESTIONS
 
  


Closed Thread



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 Off
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:49 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
Open Source Consulting | Domain Registration