LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Closed Thread
 
Search this Thread
Old 12-04-2009, 12:58 AM   #1
nightmare520
LQ Newbie
 
Registered: Dec 2009
Posts: 2

Rep: Reputation: 0
Question [Help me, plz!!] Compare string in the column in the file...


How can to solve this with Shell Script?
I have a file (data.txt)
Code:
Customer's Name | Email                 | Phone No.
Mr. A           | mr.a@yahoo.com        | 01701234567
Mr. B           | mr.b@gmail.com        | 01712345678
Mrs. C          | mrs.c@hotmail.com     | 01723456789
Ms. D           | ms.d@yahoo.com        | 01709876543
Mrs. E		| mrs.e@gmail.com	| 01724567890
And i want to compare a Phone No. column.
If it was started by 0170 then send them an email with content (content4VIP.txt)..

Code:
You're a VIP member. you are donate 100USD..
else send them an email with content (content4Gold.txt)..
Code:
You're a Gold member. you are donate 50USD..
I have a big problem with the programming languages..
-----------------Thx------------------
-----------------For------------------
-------------->> Help <<--------------
 
Old 12-04-2009, 06:40 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
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


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
Compare $string from PHP script to /etc/shadow file Karas Linux - Newbie 5 11-27-2009 08:18 AM
Read text file column by column RVF16 Programming 11 05-31-2009 07:16 AM
plz help me to compare reaky Programming 9 05-04-2007 01:01 PM
compare string in SQL hus Programming 9 04-27-2005 10:17 AM
compare string in C++ danxl Programming 3 11-02-2003 02:14 PM


All times are GMT -5. The time now is 10:03 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration