2010年10月17日日曜日

use web camera in ubuntu 10.10

try guvcview -d /dev/videoX change X to 0 1 2 and test


original page is this one:
https://help.ubuntu.com/community/UVC

2010年10月8日金曜日

複数ファイルに処理をかけるシェル

すべてのファイルの最後一行にend of lineを追加するシェル

#!/bin/sh

FILES=`find . -name '*.txt'`

for file in ${FILES}; do
echo -n $file: replacing...
cp -p $file $file.bak
echo "end of file" >> $file
echo done
done