The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
compare 2 files.. amon Shell Programming and Scripting 8 06-23-2008 11:34 AM
compare two files charandevu Shell Programming and Scripting 7 03-30-2008 04:20 PM
Compare files kharen11 UNIX for Advanced & Expert Users 25 03-14-2007 05:35 AM
compare files and beyond MizzGail UNIX for Dummies Questions & Answers 2 04-25-2003 02:34 PM
compare files ingunix UNIX for Dummies Questions & Answers 3 05-24-2001 12:44 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 07-07-2003
danielsf danielsf is offline
Registered User
  
 

Join Date: Jun 2003
Location: Venezuela
Posts: 8
Question help! need to compare files

Hi to all,
I'm writing this time looking for some suggestions. I need to elaborate a
script that asks the user to enter two parameters, compare this parameters
and if the conditions are true then execute another script.
The problem is that i need to test the parameters (numbers in this case)
with two text files that contain a list of numbers (1 per row). The idea
is something like this:

read parameter#1
read parameter#2
Does parameter#1 exists in file1? and Does parameter#2 exists in file2?
If yes then execute the other script.
If no show a message that tells the user which parameter were not found if
the files.

Thank's in advance
 

Bookmarks

Tags
perl, perl regex, perl shift, regex, shift, shift perl

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:22 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0