2010-03-09から1日間の記事一覧
#!/bin/sh #abspath2rel.sh if [ -z "$1" ]; then echo "Usage: abspath2rel.sh abs_path" exit 1 fi if [ `expr x"$1" : x'/'` -eq 0 ]; then echo "$1: not an absolute path" exit 1 fi org=`expr x"$PWD" : x'/\(.*\)'` abs=`expr x"$1" : x'/\(.*\)'` r…