I need to parse the value, after the 100th of a second from output, from an FTP get command.
ftp> 8.591220.98disconnect
With assistance from Stack members I've been using the following to obtain the data:
ut1intput=$(awk 'NR==70{for(i=1;i<=NF;i++)if($i=="ftp>")print $(i+1)} filename.txt)
I'm using sed to strip the word "disconnect" from the output, but am perplexed as to how to print only the 100th of a second output, i.e.: 8.591220.98
Is awk the right tools for this task?
I'd appreciate any advice.
100th of a second output? Do you really want the whole8.591220.98token, or just the portion after the last.? Given that8.591220.98is not a valid number, what exactly does it represent?