Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


Closed Thread
  Search this Thread
Old 11-04-2009, 03:57 PM   #1
LQ Newbie
Registered: Nov 2009
Posts: 1

Rep: Reputation: 0
Need help with tcsh script!!!!

I have to write a script for class and i can't figure it out, please help me!!!

1. write a tcsh script called whatkind, that:
a)prints "not a file or directory", if the first argument is not a regular file or directory.
b)prints "it is a file", if the first argument is a regular file
c) prints "it is a directory", if the first argument is directory

2. create a tcsh script called whatkinds, that builds on the script from the last exercise and is capable of determining the type of as many arguments as it is given
Old 11-04-2009, 04:28 PM   #2
Registered: May 2001
Posts: 29,361
Blog Entries: 55

Rep: Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547
As per the LQ Rules you should do you should do your homework yourself. Asking help with specific questions might be possible but that requires you demonstrate your skill and way of thinking and the effort you already put in. You best do that by posting whatever (pseudo)code you've got already.
Old 11-04-2009, 04:32 PM   #3
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
And our "official" response to homework threads

Per the LQ Rules, please do not post homework assignments verbatim. We're happy to assist if you have specific questions or have hit a stumbling point, however. Let us know what you've already tried and what references you have used (including class notes, books, and Google searches) and we'll do our best to help. Also, keep in mind that your instructor might also be an LQ member.
closing this one---please feel free to start another thread which follows these guidelines--or the ones offered by unSpawn.

Closed Thread

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
tcsh script problem nanxy Programming 4 08-19-2008 01:35 PM
tcsh shell script assignment problem BrianK Programming 4 01-18-2008 11:32 PM
tcsh script, replace word in file true_atlantis Programming 10 02-17-2006 02:24 PM
tcsh script: how to see if an env var is defined? BrianK Programming 1 06-07-2004 11:12 PM
Ping Random IPs using a tcsh script.. zeppelin Programming 7 08-07-2003 12:07 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:27 AM.

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