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 ...
- 01-08-2008 #1
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.
- 01-08-2008 #2Linux User
- Join Date
- Aug 2006
- Posts
- 458
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
See my sig for some reference to shell scripting.Code:for files in * do grep "search_string" $file > /dev/null if [ "$?" -eq 0 ]; then cp <file> <destination> fi doneLast edited by devils casper; 01-08-2008 at 10:44 AM. Reason: removed color tag.
- 01-08-2008 #3
- 01-25-2008 #4
Thanks you very much "ghostdog74" , you made my job easier ........
- 01-25-2008 #5Linux Engineer
- 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, drlWelcome - 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 )
- 01-25-2008 #6
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:
Now grep is dealing with plain text.Code:if pdftotext "$pdf_file" - | grep -q "$keyword"; then ... fiDISTRO=Arch
Registered Linux User #388732


Reply With Quote
