LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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


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:16 PM   #2
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 has been reported for closure.


Plus: NO HOMEWORK QUESTIONS.
 
Old 04-16-2007, 09:24 PM   #3
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Sure, I like to help out:
http://tldp.org/LDP/abs/html/
I wonder why the teacher never gave you something like that?
 
Old 04-17-2007, 12:41 AM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
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.
 
  


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



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

All times are GMT -5. The time now is 06:24 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