Archive for April, 2007
Important Linux Commands/Scripts
To run touch all the files from the current directory
while read line; do touch “${line}”; done < <(cat file_name)
To remove all the messageQs from the Linux System using ipcrm
#!/bin/bash
list=$(ipcs -q | grep “$USER” | cut -d’ ‘ -f2)
count=0
for msg in $list
do
ipcrm msg $msg
((count=count+1))
done
echo “$count messageQs for $USER has been removed from the system!”
Back to Shanghai . . .
Tomorrow night, me again flying to Shanghai. Will be reaching there on Sunday evening. This time, no supreme tower instead planning to stay in different hotel (http://www.newharbour.com.cn). It is very near to Peoples’ square and also near to our office.
You are currently browsing the pande.info blog archives for April, 2007.