Reading a variable line by line with while loop

Loïc Grenié loic.grenie at gmail.com
Tue Dec 1 16:12:16 UTC 2009


2009/12/1 Avi Greenbury <avismailinglistaccount at googlemail.com>:
> Ray Parrish wrote:
>
>> Smoot Carl-Mitchell wrote:
>> Thank you! That worked great! Now I wonder is there is another great
>> sed command that will remove redundancy in the bash history, so no
>> command line is repeated in the final results in the $History
>> variable?
>
> man uniq
>
> which requires you to sort it, too:
>
> man sort

sort -u

   my friend (discovered two weeks ago after years of sort|uniq).

       Loïc




More information about the ubuntu-users mailing list