perl -ne 'print $1 if /^UID:\s*(\w+)/' fileRead > fileWrite [download]
In reply to Re: Extracting text from a line by suhailck in thread Extracting text from a line by kirkbrown