Find the answer to your Linux question:
Results 1 to 6 of 6
Hi, Can anyone help me in writing a script which does screening thousands of resumes based on few criteria. Script should be able to open a file , search for ...
  1. #1
    Just Joined! vijay_kernel's Avatar
    Join Date
    Apr 2007
    Posts
    77

    Script to screen bulk resumes

    Hi,

    Can anyone help me in writing a script which does screening thousands of resumes based on few criteria.

    Script should be able to open a file , search for some keywords in the file , if found copy the file to a specified path.

    Any help would be highly appreciated.

    THANKS in advance......
    Last edited by devils casper; 01-08-2008 at 10:44 AM. Reason: Removed color tag.

  2. #2
    Linux User
    Join Date
    Aug 2006
    Posts
    458
    Quote Originally Posted by vijay_kernel View Post
    Hi,

    Can anyone help me in writing a script which does screening thousands of resumes based on few criteria.

    Script should be able to open a file , search for some keywords in the file , if found copy the file to a specified path.

    Any help would be highly appreciated.

    THANKS in advance......
    many tools are available in *nix that can open files and do things to them. sed/awk/grep/perl/python etc..
    To get you started
    Code:
    for files in *
    do
      grep "search_string" $file > /dev/null
      if [ "$?" -eq 0 ]; then
        cp <file> <destination>
      fi 
    done
    See my sig for some reference to shell scripting.
    Last edited by devils casper; 01-08-2008 at 10:44 AM. Reason: removed color tag.

  3. #3
    Just Joined! vijay_kernel's Avatar
    Join Date
    Apr 2007
    Posts
    77
    Thanks for you help

  4. #4
    Just Joined! vijay_kernel's Avatar
    Join Date
    Apr 2007
    Posts
    77
    Thanks you very much "ghostdog74" , you made my job easier ........

  5. #5
    drl
    drl is online now
    Linux Engineer drl's Avatar
    Join Date
    Apr 2006
    Location
    Saint Paul, MN, USA / CentOS, Debian, Solaris, SuSE
    Posts
    1,117
    Hi.

    Are your resume files in plain text or in a word-processor format? ... cheers, drl
    Welcome - get the most out of the forum by reading forum basics and guidelines: click here.
    90% of questions can be answered by using man pages, Quick Search, Advanced Search, Google search, Wikipedia.
    We look forward to helping you with the challenge of the other 10%.
    ( Mn, 2.6.n, AMD-64 3000+, ASUS A8V Deluxe, 1 GB, SATA + IDE, Matrox G400 AGP )

  6. #6
    Trusted Penguin Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,230
    That was my first thought. If your files are in plaintext, then everything is happy.

    However, since you're dealing with resumes, I imagine that most are in PDF or some such format, in which case life gets a bit different. Grep et al. only deal with plain text. You need to somehow convert the formatted text into plain text.

    For instance, there is a utility called pdftotext. To use it, you might do:
    Code:
    if pdftotext "$pdf_file" - | grep -q "$keyword"; then
        ...
    fi
    Now grep is dealing with plain text.
    DISTRO=Arch
    Registered Linux User #388732

Posting Permissions

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