Παράδειγμα:
athena:~> grep Giorg names Giorgos Tsolakakis Giorgos Kabourakis Giorgos Zaimis Giorgos Margaronis Limperis Giorgos athena:~> tr '[a-z]' '[A-Z]' <names HEALTH INSTITUTE RAFAIL MELAS MANOLIS GERASIMOU ARGIRIOS ALEXOPOULOS ANTONIS ANAGNOSTOU VAGELIS MELETIOU KOSTAS TSESMELIS IOANNIS VERGIS ATHANASIOS PANOUSOS NIKOLAS TZANETIS ... athena:~> fmt names | head Health Institute Rafail Melas Manolis Gerasimou Argirios Alexopoulos Antonis Anagnostou Vagelis Meletiou Kostas Tsesmelis Ioannis Vergis Athanasios Panousos Nikolas Tzanetis Maria Antoniou Nikos Michail Ioannis Xouvardas Giorgos Tsolakakis Kostantina Tzoula Yannis Asikoglou Ioannis Soutos Manolis Pirgiotis Dimitris Karakostas Aristidis Kalafatis Ioannis Diakostamatis Emmanouil Tjogias Aggelos Vouros Stamatis Skoutas Aegean Health Institute Dimitrios Rizakis Aristea Mela Alexandros Stratinakis Vaggelis Xatzikostas Panagiotis Charalampopoulos Efi Vergi Giorgos Kabourakis Giorgos Zaimis Konstantinos Kotis Antonis Margaros ... athena:~> wc names 111 227 2023 names athena:~> rev names | head etutitsnI htlaeH saleM liafaR uomisareG silonaM soluopoxelA soirigrA uotsonganA sinotnA uoiteleM silegaV silemsesT satsoK sigreV sinnaoI sosuonaP soisanahtA sitenazT salokiN ...
Παράδειγμα:
athena:~> grep 'abo' words ... sabotage seaboard taboo thereabouts turnabout vagabond whereabout ... athena:~> grep '^abo' words aboard abode abolish abolition abominable abominate aboriginal athena:~> grep bent words absorbent bent benthic debenture incumbent recumbent athena:~> grep 'bent$' words absorbent bent incumbent recumbent athena:~> grep -v '[AEIOUYaeiouy]' words ... MD MN MPH Mr Mrs Ms m's Mt n NBC ... athena:~> egrep '(.)(.)(.)\3\2\1' words braggart Brenner collocation diffident dissident glossolalia grammar grammarian installation staccato suffuse
Παράδειγμα:
athena:~> ls -l | tee foo total 251 -rw-r--r-- 1 dspin users 2847 Oct 29 16:11 afm -rw-r--r-- 1 dspin users 627 Oct 29 19:10 bar1 drwxr-xr-x 2 dspin users 1024 Feb 26 1997 bin/ -rw------- 1 dspin users 29793 Jun 21 20:57 mbox -rwxr-xr-x 1 dspin users 100 Oct 29 17:42 myspell* -rw-r--r-- 1 dspin users 2023 Oct 29 16:07 names -rw-r--r-- 1 dspin users 2741 Oct 29 16:11 phones -rw-r--r-- 1 dspin users 2741 Oct 29 18:45 phones.sorted -rw-rw-r-- 1 dspin users 995 Mar 12 1997 submit -rw-r--r-- 1 dspin users 272 Oct 29 19:44 t.c -r--r--r-- 1 dspin users 547 Oct 29 19:44 t.c,v -rw-r--r-- 1 dspin users 206662 Oct 22 15:08 words athena:~> head -2 foo total 251 -rw-r--r-- 1 dspin users 2847 Oct 29 16:11 afm athena:~> tail -2 foo -r--r--r-- 1 dspin users 547 Oct 29 19:44 t.c,v -rw-r--r-- 1 dspin users 206662 Oct 22 15:08 words