Google Answers Logo
View Question
Q: Unix script assignment- Bash ( Answered,   0 Comments )
Subject: Unix script assignment- Bash
Category: Computers > Programming
Asked by: dubbs123-ga
List Price: $50.00
Posted: 27 Apr 2003 17:11 PDT
Expires: 27 May 2003 17:11 PDT
Question ID: 196286
I am basically in a bad postions I have to write a script for these
unix commands to work on a windows machine by tues. To me this will be
very difficult to do. Could I get the help of one of your experienced
bash scripters?

cat	join or display files
comm	compare sorted files
diff	display the differences between two files
grep	search for a pattern in files
head	display the beginning of a file
mv	move (rename) a file

here are the options that I have to give them:
cat	-b -n -s
comm	-1 -2 -3
diff	-c[n] -e
grep	-c -i -l -n -v
head	[-number] [file-list] 
mv	-f -i -

Clarification of Question by dubbs123-ga on 27 Apr 2003 17:14 PDT

I actually meant to post this as a perl question. Sorry
Subject: Re: Unix script assignment- Bash
Answered By: dogbite-ga on 27 Apr 2003 18:48 PDT
Hello dubbs123-ga,

  I have written a Perl script for each
  bash function and tested them all on
  my Windows box.  A ZIP file containing
  all of the functions is here:

  Let me know how they work for you.

  Good luck.


Request for Answer Clarification by dubbs123-ga on 27 Apr 2003 19:03 PDT
The link does not work dogbite.

Request for Answer Clarification by dubbs123-ga on 27 Apr 2003 19:04 PDT
it tells me that I dont have permissions

Clarification of Answer by dogbite-ga on 28 Apr 2003 08:35 PDT
Oh no!  I'm very sorry for the broken
  link.  I accidentally placed the files
  in  The files are now in

  and I have checked (and double checked)
  the link to make sure it works.

  Again, I'm very sorry for the broken link
  and for the delay in getting back to you.

There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  

Google Home - Answers FAQ - Terms of Service - Privacy Policy