Profile
Dave Taylor
Dave Taylor has been involved with UNIX since he first logged in to the on-line network in 1980. That means that, yes, he's coming up to the 30-year mark now. You can find him just about everywhere on-line, but start here: www.DaveTaylorOnline.com. In addition to all his other projects, Dave is a film critic for a number of local publications. You can read his reviews at www.DaveOnFilm.com.
Dave Taylor's Articles
Favorites
No favorites yet. Check out what's popular today.
Guestbook

Hello Dave,
For my profession I need to look at logfiles to troubleshoot customers problems and but the problem is they do not have a standardized format. So no XML tags, CSV or any other neat and nice way to quickly dump this into a readable format.
I know there are some ways around that like searching with REGEX and the like and AWKing them into variables but one this that bothers me is that I haven't been able to find the functionality to search for a particular string, start reading from there until I reach another string and whack this into another file or variable.
Example:
XXXXX
string1
YYYYY
XXXXX
ZZZZZ
string2
LLLLL
PPPPP
What I want is to search for "string1" read lines until I hit "string2" and proceed with the rest of the script to either manipulate or store these 3 lines somewhere.
Any idea??
I've searched my * off with sed,grep,tr and all the other regex tools you can think of but I must be overlooking something really simple.
Thanks in advance.
hello dave am new can u please explain in detail about work the shell
I do enjoy your articles.
Recently I came across an old article about calculating the distance between two latitude/longitude points where you state that you gave up on bc because it lacked atan2() function. I think you forgot about sc (spreadsheet calculator), as a command tool alternative to perform calculations. It can be used in scripts and fulfill a lot of important functions.
A nice series of articles covering how sys admins can use sc to work with tabulated data garnered from everyday work would be nice.
Badiane.
Friends
Dave Taylor's tweets
No tweets. You may edit your profile to display your tweets.

