Results 1 to 3 of 3

Thread: Multiple Search

  1. #1
    Join Date
    Apr 2011
    Beans
    7

    Multiple Search

    hello;
    I have about 555 line list one name and surname per line. and I have second list which is include just 20-25 surnames. My aim is to search surnames from second list via linux code but I need whole line (name - surname) if it finds. Is that possible?

  2. #2
    Join Date
    Dec 2007
    Location
    Behind you!!
    Beans
    978
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Multiple Search

    Quote Originally Posted by hepyack View Post
    hello;
    I have about 555 line list one name and surname per line. and I have second list which is include just 20-25 surnames. My aim is to search surnames from second list via linux code but I need whole line (name - surname) if it finds. Is that possible?
    Of course, very possible. I'm not going to write the code for you, that would defeat the whole purpose. What code do you currently have, what problems are you running into?

    Bodsda
    computer-howto
    Linux is not windows
    Fluxbox & Flux menu how to
    Programming is an art. Learn it, Live it, Love it!


  3. #3
    Join Date
    Apr 2011
    Beans
    7

    Re: Multiple Search

    Quote Originally Posted by Bodsda View Post
    Of course, very possible. I'm not going to write the code for you, that would defeat the whole purpose. What code do you currently have, what problems are you running into?

    Bodsda
    I have
    cat /home/etc/file.txt | sort -u > /home/etc/file1
    grep -w 'word|word1|word2' /home/etc/file

    but i couldn t succeed

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •