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.
C プログラムとファイルを含むフォルダーがあり、その C プログラムを実行し、コマンド ラインによって読み取られる引数として (1 つずつ) ファイル名を受け取るシェル スクリプトを作成する必要があります。これどうやってするの?
次のシェル コードを試すことができます。
#!/bin/sh cd /PATH/TO/DIR for i in *; do./C_APP "$i"; done