tail -1000000 process.log | grep 'PROCESSING N' | cut -d: -f2 | sort | uniq -c

Bash On Groupping with stats

by Elij, November 01, 2008 18:29 Star_fullStar_fullStar_fullStar_fullStar_full

It's straight forward to do...

4d72203c38dd5f3e3d2d446b5888e8a7 Talk
filename    = 'process.log'
ids         = {}
...

Bash On Groupping with stats

by Nick, November 01, 2008 16:57 Star_fullStar_full

I'd write a small script fo...

49de4cd2f26705785cbef2b15a9df7aa Talk

Bash On Memory usage script

by JonM1827, July 31, 2008 04:32

Thanks a lot for the sugges...

Fcd45b7de93cc8fa417fa43426973e06 Talk

Bash On Memory usage script

by Marco Valtas, July 31, 2008 03:24 Star_fullStar_fullStar_fullStar_fullStar_full

I think is a very good scri...

0706636fd5e30fa66019d7ffacdb5b11 Talk
#!/bin/bash
printf '%s\t%s\n' "$(date)" "$*" >> ~/progress/progress.txt

Bash On store string from terminal ...

by Chris Jester-Young, July 08, 2008 11:36 Star_fullStar_fullStar_fullStar_fullStar_full

Here's a one-liner (excludi...

729442eea8d8548842a6e0947e333c7b Talk

Bash On store string from terminal ...

by Eineki, July 08, 2008 06:09 Star_fullStar_fullStar_fullStar_fullStar_full

Why don't you use the comma...

5a00a3a98dcf6f9cd717440fd2b606e5 Talk
kill -HUP $(cat /var/run/nginx.pid)

Bash On kill nginx master proces

by Oscar Carlsson, June 29, 2008 12:15

This is how I restart my ng...

Dceec62d5ed81c8405b72a4978b7b70a Talk
pkill "nginx: master"

Bash On kill nginx master proces

by Marco Valtas, June 28, 2008 04:13 Star_fullStar_fullStar_fullStar_fullStar_full

In Linux check the "pkill" ...

0706636fd5e30fa66019d7ffacdb5b11 Talk
kill $(ps ax | awk '/nginx: master/ {print $1}')

Bash On kill nginx master proces

by mrxinu, June 28, 2008 03:24

Combining Jay and gms8994's...

B5603dc8f1e87c251bf9b1d28f31d38f Talk
ps ax | grep 'nginx: master' | awk '{print $1}' | xargs kill

Bash On kill nginx master proces

by gms8994, June 27, 2008 21:10

There's always the followin...

9d8de42cebeeaf6d223d86bb9130832b Talk

Bash On kill nginx master proces

by Jay R Wren, June 27, 2008 20:16

awk is lighter weight than ...

F200b43dd7a12345e2d46d7256b4cfe6 Talk

Bash On kill nginx master proces

by Jay R Wren, June 27, 2008 20:15

awk is lighter weight than ...

F200b43dd7a12345e2d46d7256b4cfe6 Talk

Bash On kill nginx master proces

by macournoyer, June 27, 2008 19:59

Not sure it's a good idea, ...

Bfec5f7d1a4aaafc5a2451be8c42d26a Talk
killall nginx

Bash On kill nginx master proces

by Kamil Kisiel, June 27, 2008 19:47

I prefer to just use killall

55fd56dfef815d7aa543be09ad3ed3e9 Talk
sudo kill -INT `cat /usr/local/nginx/logs/nginx.pid`

Bash On kill nginx master proces

by macournoyer, June 27, 2008 17:13

Replace /usr/local/nginx/ w...

Bfec5f7d1a4aaafc5a2451be8c42d26a Talk
for ((i=1;i<=17;i+=1))
         do
                option=`more test.txt|awk -F' ' '{ print $'$i'}'`
...

Bash On For Loop using Awk

by roxannspencerolsen.blogspot.com, May 08, 2008 20:50

Solved...

55502f40dc8b7c769880b10874abc9d0 Talk
SCRIPT="gen_${1}.sql"
echo "--gen_${1}.sql" > $SCRIPT

...

Bash On Slow bash for loop.

by grrrreg, February 19, 2008 14:44

I think you should replace ...

D41d8cd98f00b204e9800998ecf8427e Talk
counter=$(expr $(wc -l $SCRIPT | cut -f1 -d\ ) - 1)

Bash On Slow bash for loop.

by Andrew Gilmartin, February 11, 2008 16:34

The only bash change I woul...

E72ac5fa4658d70354cc7024cb515179 Talk
SCRIPT="gen_${1}.sql"
echo "--gen_${1}.sql" > $SCRIPT
typeset -i counter
...

Bash On Slow bash for loop.

by Eineki, February 10, 2008 00:57

Hi, the following code don'...

5a00a3a98dcf6f9cd717440fd2b606e5 Talk

Bash On Slow bash for loop.

by furtive, February 08, 2008 19:49

It didn't make a difference...

55502f40dc8b7c769880b10874abc9d0 Talk
REFNO=$(echo $LINE | cut -d\| -f8)

Bash On Slow bash for loop.

by Eineki, February 08, 2008 10:39

Just a quick thought
Maybe ...

5a00a3a98dcf6f9cd717440fd2b606e5 Talk
LINES=$(grep "^D|4|" $1)

Bash On Slow bash for loop.

by pascal.charest, February 08, 2008 05:23

Not sure you'll get that gr...

Ff0bd1a8c9502aac62868cabf40b2b7d Talk

Bash On Host checker

by Paolo Campegiani, December 14, 2007 09:06

No need to reinvent the whe...

B1dfee65f88365844ae8979a67d7b6f7 Talk

Bash On Open a new tab in current d...

by macournoyer, October 10, 2007 12:25

great idea Marco, indeed it...

Bfec5f7d1a4aaafc5a2451be8c42d26a Talk
tab()
...

Bash On Open a new tab in current d...

by Marco Valtas, October 10, 2007 05:00

Macournoyer, I tried your f...

0706636fd5e30fa66019d7ffacdb5b11 Talk