read file and analyze position
Trying to write a script;
1. to read a defined file (each line) 2. select a defined position in line (30) and place in temp-variable. 3. scan file for name.$temp-variable. 4. if found generate an email found. 5. if not generate email not found. 1. & 2. has me stumped? any ideas? |
well, it depends on which scripting language (bash, PERL) u want to use..
|
BASH
|
you can use awk to do the same....something like below goes in your shell script
FILENAME="myfile" awk 'BEGIN {POS="30"} { /* your code execouted for each line of file */ }' $FILENAME |
All times are GMT -5. The time now is 06:23 PM. |