ファイルの最初の列にある大文字の単語を印刷します。

ファイルの最初の列にある大文字の単語を印刷します。

私の出力が欲しいです。

VDD.
GND
AGNDSUB 
VMEASPOS.
VMEASNEG
VREFEXT 

File1には次の情報があります。

Power and signal 
VDD Digital Power This pin provides power supply connection for the digital
blocks.
GND Digital Ground This pin provides ground connection for the digital blocks.
AGNDSUB Ground This pin provides substrate connection.
VMEASPOS Digital Power Voltage to be measured.
VMEASNEG Ground Ground for the voltage to be measured.
VREFEXT Digital Power Reference voltage input of 1.024V %for VSENS calibration.
operating voltage

ベストアンサー1

そしてGnu grep

grep -Eow '^[[:upper:]]+' file

おすすめ記事