dinoviapangea
Technical User
I'm a novice Unix person so please bear with me. I have a text file and I know what line I want to display. Say I've created a variable $line that equal a certain line number. I want to display just the line $line. I've tried the following but kept getting a sed: command garbled:
set file_row = `sed -n '{$line}p;{$line}q' temp.txt |awk '{print $1}' `
It should be a simple command but I can find a simple answer any where. Any help would be appreciated.
Thanks
set file_row = `sed -n '{$line}p;{$line}q' temp.txt |awk '{print $1}' `
It should be a simple command but I can find a simple answer any where. Any help would be appreciated.
Thanks