I have a file in which the values are stored as below.
Assistant Professor at SASTRA University St John's memorial college Paul George Univeristy Department Chair at University of Texas
I am extracting all the characters after the first at using the below command.
grep -o ' at .*$' checkin.txt | cut -c5-
Now, I am trying to get the output as,
SASTRA University St John's memorial college Paul George University University of Texas
This is the script I have.
while read -r line; do echo $line done < <( grep -o ' at .*$' checkin.txt | cut -c5- )
However, the script gives me the below output.
SASTRA University University of Texas
How can I extract all the values?