I'm beginner in Bash Scripting and I need to assign to a variable a custom command output,not the entire command just a part of it.Is there a way I can do that?
The command:
gtf 1600 720 60
The Output:
# 1600x720 @ 60.00 Hz (GTF) hsync: 44.76 kHz; pclk: 93.10 MHz
Modeline "1600x720_60.00" 93.10 1600 1672 1840 2080 720 721 724 746 -HSync +Vsync
What I want to store:
"1600x720_60.00" 93.10 1600 1672 1840 2080 720 721 724 746 -HSync +Vsync