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

POWER SAN tester in IBM


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)
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.
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
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