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.
配列全体をtcshで出力したいのですが、それをuniqにパイプしたいので、tcshでそれを行う方法はありますか。
私が持っていたset array
set array
そしてそれを印刷していました:
echo "$array"
しかし、それはエラーで終わった: Word too long, it works for small array,
それを行う簡単な方法はありますか?
この問題の通常の解決策は、変数の代わりにファイルを操作することです。
cat > file <<EOF YOUR ARRAY TEXT HERE..... EOF uniq file