Share your knowledge at the LQ Wiki.
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 12-04-2009, 01:58 AM   #1
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)
Customer's Name | Email                 | Phone No.
Mr. A           |        | 01701234567
Mr. B           |        | 01712345678
Mrs. C          |     | 01723456789
Ms. D           |        | 01709876543
Mrs. E		|	| 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)..

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

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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 09:18 AM
Read text file column by column RVF16 Programming 11 05-31-2009 08:16 AM
plz help me to compare reaky Programming 9 05-04-2007 02:01 PM
compare string in SQL hus Programming 9 04-27-2005 11:17 AM
compare string in C++ danxl Programming 3 11-02-2003 03:14 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:16 PM.

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
Open Source Consulting | Domain Registration