[rlug] sort :: sdaa dupa sdz

Tudor Marian Pristavu tudor.pristavu at gmail.com
Sun May 10 19:45:12 EEST 2020


O posibila varianta:

echo -e "sda\nsdca\nsdb\nsdad\nsdd" | sed "s/\([a-z]\{4\}\)/Z\1/" | sort |
sed "s/Z\([a-z]\{4\}\)/\1/"

On Sun, May 10, 2020 at 6:56 PM Adrian Sevcenco <Adrian.Sevcenco at cern.ch>
wrote:

> Salutare! Are cineva idee cum pot sa fac sort-ul sa imi puna sdaa sdab
> dupa sdz?
> momentan imi tot da:
> sda
> sdab
> un numare de deviceuri cu 4 litere
> tot restul deviceurilor cu 3 litere
> sdz
>
> Multumesc!
> Adrian
>
> _______________________________________________
> RLUG mailing list
> RLUG at lists.lug.ro
> http://lists.lug.ro/mailman/listinfo/rlug_lists.lug.ro
>


More information about the RLUG mailing list