236 reputation
13
bio website ucarenya.com
location Shanghai, China
age
visits member for 3 years
seen Jun 27 '13 at 8:31

POWER SAN tester in IBM


Sep
24
awarded  Autobiographer
May
1
awarded  Yearling
Mar
1
comment changing pattern by removing spaces?
'$1=$1' is a refreshing, that tells awk to refresh the data it reads from input, after that $0 is changed, and output is re-structured with OFS(the out put seperater)
Mar
1
revised changing pattern by removing spaces?
a side effect
Mar
1
answered changing pattern by removing spaces?
Dec
20
revised Replacing lines in files with file contents
Escape the quotation on the 1st matching
Dec
20
comment Replacing lines in files with file contents
My Bad. I forgot to escape the "?" in regex, which is not needed in gawk but needed on proper AWK like mawk and others. Corrected.
Dec
19
answered Replacing lines in files with file contents
Dec
19
answered How can I call bc from within awk in this case?
Nov
15
comment How to get which version of cron daemon is running
search for a binary named crond, get the 2nd column of the output(the binary), then pass to rpm to look for it's belonging package. Note that in RHEL/CentOS cron daemon is named crond but not in some other OS. So I edited and use "crontab" instead which is more general. You can even filter from ps to figure out what binary is running
Nov
15
revised How to get which version of cron daemon is running
The binary "crontab" is more general than crond.
Nov
14
answered How to get which version of cron daemon is running
Oct
31
awarded  Editor
Oct
31
comment How can I synchronize all PDFs from one directory with Dropbox?
As update, you can rsync a single file one by one
Oct
31
revised How can I synchronize all PDFs from one directory with Dropbox?
Per op's request
Oct
29
answered How can I synchronize all PDFs from one directory with Dropbox?
Oct
29
answered Can't compile kernel in gentoo
Oct
19
answered What's the right way to sort a associated array in bash or zsh?
Sep
26
awarded  Teacher
Sep
26
answered The most universal scripting language for Linux is?