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.
sed -n '5,10 p' < /proc/cpuinfo
ファイル /proc/cpuinfo の 5 ~ 10 行を出力します。
のようなものを使いたい
start=5 end=10 sed -n '$start,$end p' < /proc/cpuinfo
start と end の値をスクリプトから変更できるようにします。