Username/Email:  Password: 
TwitterFacebookFlickrRSS

Dave Taylor

Dave Taylor's picture

Profile

Dave Taylor

Occupation: 
Work the Shell columnist

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.


Favorites

No favorites yet. Check out what's popular today.

Guestbook

Hello Dave,

I don't know if you remember me. We've talked once or twice before. I'm Kris from http://filmsbykris.com. I currently have over 1,200 Tutorial videos up on Youtube. Many of which are on Shell Scripts.

I've been using Linux now for about 6 or 7 year now, but when I first started I was trying so hard to find a book that would help me learn how to use the shell in Linux because even in my Windows days I used the cmd a lot and was always writing batch files.

Well, the other day I was going through my closet and came across the first book that really helped me get started with shell scripts years ago. It was titled "Wicked Cool Shell Scripts". It was the first book that really helped me make some useful scripts for my machine. But, I didn't realise until the other day that the author of that book had the same name as the guy who writes my favourite Articles in Linux Journal.

So, if you are the same Dave Taylor, I just want to thank you for inspiring me. If you are not the same Dave Taylor, you still inspire me with your articles in LJ.

Thank you.

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.