7
#!/bin/bash
file=debian.deb
test=basename $file .deb
DP="blah/blah/$test/$test.php"
read -p "[$DP]: " DPREPLY
DPREPLY=${DPREPLY:-$DP}
echo "Blah is set to $DPREPLY"
echo $DPREPLY>>testfile
私がやろうとしているのは、変数testから変数testを設定し、それをファイルtestfileで使用することです。basenameはどのように変数に入れますか?
ありがとうございました! – Intecpsp