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.
Today’s modular x86 servers are compute-centric, designed as a least common denominator to support a wide range of IT workloads. Those generic, virtualized IT workloads have much different resource optimization requirements than hyperscale and cloud applications. They have resulted in a “one size fits all” enterprise IT architecture that is not optimized for a specific set of IT workloads, and especially not emerging hyperscale workloads, such as web applications, big data, and object storage. In this report, you will learn how shifting the focus from traditional compute-centric IT architectures to an innovative disaggregated fabric-based architecture can optimize and scale your data center.
Sponsored by AMD
Built-in forensics, incident response, and security with Red Hat Enterprise Linux 6
Every security policy provides guidance and requirements for ensuring adequate protection of information and data, as well as high-level technical and administrative security requirements for a system in a given environment. Traditionally, providing security for a system focuses on the confidentiality of the information on it. However, protecting the data integrity and system and data availability is just as important. For example, when processing United States intelligence information, there are three attributes that require protection: confidentiality, integrity, and availability.
Learn more about catching the bad guy in this free white paper.
Sponsored by DLT Solutions
Enter to Win an Adafruit Prototyping Pi Plate Kit for Raspberry Pi

It's Raspberry Pi month at Linux Journal. Each week in May, Adafruit will be giving away a Pi-related prize to a lucky, randomly drawn LJ reader. Winners will be announced weekly.
Fill out the fields below to enter to win this week's prize-- a Prototyping Pi Plate Kit for Raspberry Pi.
Congratulations to our winners so far:
- 5-8-13, Pi Starter Pack: Jack Davis
- 5-15-13, Pi Model B 512MB RAM: Patrick Dunn
- Next winner announced on 5-21-13!
Developer Poll
Friends
Dave Taylor's tweets
No tweets. You may edit your profile to display your tweets.



