homepage Welcome to WebmasterWorld Guest from 54.205.254.108
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
shell tips and tricks
littleman




msg:913324
 5:40 am on Oct 22, 2001 (gmt 0)

If you either a) have a shell tip or a trick you'd like to share, or b) know of a good online resource for shell tips and tricks, please post away.

 

Brett_Tabke




msg:913325
 7:02 am on Oct 23, 2001 (gmt 0)

Best one I've seen: (almost a book):
[nl.ijs.si...]

sugarkane




msg:913326
 5:42 pm on Oct 23, 2001 (gmt 0)

My current favourite is doing quick and dirty log analysis using a combination of grep, pipes and wc - eg

grep -i googlebot access.log grep -i "23/oct" wc -l

to show how many times googlebot has been around today, or

grep -i google.com access.log grep -iv googlebot wc -l

for how many referrals from google... etc.

Not exactly deep, detailed data, but useful for a quick buzz through to see if anything warrants a closer look.

richcasto




msg:913327
 8:51 pm on Oct 30, 2001 (gmt 0)

More quick and dirty log analysis: see what IP addresses are hitting the URL containing string the most:

awk '/string/ {print $1}' logfile sort uniq -c sort -nr

I love awk, sort and uniq!

richcasto




msg:913328
 8:55 pm on Oct 30, 2001 (gmt 0)

sugarkane: instead of doing this:

grep -i "23/oct" wc -l

you can simplify it:

grep -ic "23/oct"

since c is the option to grep for count.

littleman




msg:913329
 1:35 am on Nov 8, 2001 (gmt 0)

Here's a basic one:
grep '200 - "http://' *.log ¦ grep -c '200 - "http://'

Its a quick and dirty total referrer check.

littleman




msg:913330
 10:12 pm on Nov 8, 2001 (gmt 0)

I just realized that this exact grep would be useless to most of you, because it does not take into account local referrer. It works great for doorway domains though. ;)

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved