Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
このコマンドラインを変数に挿入するにはどうすればよいですか? :
echo "abc:def" | awk -F':' '{print "field1: "$1 "\nfield2: "$2}'
前もって感謝します
これを試してください
testVar=`echo "abc:def" | awk -F':' '{print "field1: "$1 "\nfield2: "$2}'` echo $testVar