1
2
#!/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
1
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
1
2
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" ...

B8d457d2c39911ea4c74ba7d66b9c3f7 Talk
1
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
1
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
1
killall nginx

Bash On kill nginx master proces

by Kamil Kisiel, June 27, 2008 19:47

I prefer to just use killall

55fd56dfef815d7aa543be09ad3ed3e9 Talk
1
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
1
2
3
4
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...

Avatar Talk
1
2
3
4
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 ...

Avatar Talk
1
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
1
2
3
4
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...

Avatar Talk
1
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
1
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
1
2
3
tab()
...

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

by Marco Valtas, October 10, 2007 05:00

Macournoyer, I tried your f...

B8d457d2c39911ea4c74ba7d66b9c3f7 Talk