UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
  #1  
Old April 18th, 2004, 03:36 AM
ChrisJones ChrisJones is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 3 ChrisJones User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy Adapt Bash script to sh script

Hi all!

I just finished writing a script to be run on Solaris 5.8. The script compares 2 files to check for similarities.

It works very well, but it took me forever to write it since i am a beginner.

I used bash for it. The deadline is in 2 days and I just realise today that actually I am not supposed to use bash (#!/bin/bash) but only sh (#!/bin/sh).

Obviously i just tried to run it as sh but since bash has more advanced functions, I got error messages such as arrays.....

Coud anyone please help me to modify my script, I am getting so desperate.... PLEASE, any help is welcome, I would be so so so grateful!

please find a zip file attached with the script and 2 little text file to run the script. Script to be run as : script.sh file1.txt file2.txt

Thank you so much!

Chris Jones
Attached Files
File Type: zip dupscript.zip (1.4 KB, 162 views)

Reply With Quote
  #2  
Old April 18th, 2004, 04:56 PM
megaspaz's Avatar
megaspaz megaspaz is offline
Angst-ridden C.S. graduate
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Location: Silly Con Valley
Posts: 276 megaspaz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 51 m 41 sec
Reputation Power: 5
Send a message via ICQ to megaspaz Send a message via AIM to megaspaz Send a message via MSN to megaspaz Send a message via Yahoo to megaspaz
Google

google has a boatload of bourne shell tuts. read them. this, being a homework assignment, is as far as i'm going to help in this matter.


http://www.google.com/search?hl=en&...ing&btnG=Search
__________________
"Never hold your farts in. They travel up your spine, into your brain, and that's where you get crappy ideas from..." - Woyaya - January 10, 2004

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > Adapt Bash script to sh script


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This 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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway