| Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free! |
shell script to extract information
|
Original Message
|
Name: Tonto22
Date: May 24, 2004 at 15:53:33 Pacific
Subject: shell script to extract information OS: unix CPU/Ram: s
|
Comment: I have a directorey with some .xls files in it. I want to extract some information from these files (I'll be doing that with a php program). I need a shell script that will invoke this program repetitively for each of the files in the directory. Any help would be highly appreciated. thanks.
Report Offensive Message For Removal
|
|
Response Number 1
|
Name: R_ajes_h
Date: May 24, 2004 at 16:15:32 Pacific
|
Reply: (edit)Try this: #!/bin/sh DIRECTORY=/excels/ ls $DIRECTORY |grep xls | while read FILE do <Program Name> $FILE done
Report Offensive Follow Up For Removal
|

Post Locked
This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
Go to Unix Forum Home