Author Topic: Unix scripting korisni linkovi  (Read 5197 times)

Oko

  • Administrator
  • Hero Member
  • *****
  • Posts: 990
Unix scripting korisni linkovi
« on: December 25, 2009, 08:44:14 am »
Otvaram ovaj thread da dokumentujem linkove do par fantasticnih web-stranica sa morem dokumentacije o
klasicnim Unix scripting jezicima i alatima

http://www.shelldorado.com/links/
http://www.grymoire.com/Unix/
http://www.softpanorama.org/Scripting/shells.shtml
http://www.ugu.com/sui/ugu/warp.ugu
http://sed.sourceforge.net/grabbag/tutorials/

uporna_neznalica

  • Sr. Member
  • ****
  • Posts: 447
Unix scripting korisni linkovi
« Reply #1 on: December 26, 2009, 09:38:48 am »
Quote from: Oko
... par fantasticnih web-stranica ...

Fantasticnih, u nedostatku boljeg termina, jer bolji termin ne postoji. Ja sam bio odusevljen citajuci sta sve tamo ima.

Predlazem da se ubaci u dokumentaciju, kao linkovi do fenomenalnih unix scripting tutoriala i ostalih fantasticnih tips & tricks.

Oko, hvala! :)

soxxx

  • Administrator
  • Hero Member
  • *****
  • Posts: 1438
Unix scripting korisni linkovi
« Reply #2 on: December 30, 2009, 10:39:14 am »
Evo i nekoliko dodatnih linkova za sed i awk:

SED:

http://sed.sourceforge.net/            Dokumentacija, skripte, linkovi i ostalo (web stranica generisana  sed skriptom!)
http://www.grymoire.com/Unix/Sed.html         Sed - An Introduction and Tutorial
http://www.tty1.net/sed-intro_en.html         sed introduction
http://main.rtfiber.com.tw/~changyj/sed/      Sed and Regular Expresion
http://www.ptug.org/sed/sedfaq.htm         THE SED FAQ Last-modified: 1999/07/18
http://legolas.mdh.se/~dat95abs/sed_tutorial.txt   Do it with Sed

Famous Sed Oneliners Explained:

http://www.catonmat.net/blog/sed-one-liners-explained-part-one/      Part I: File Spacing, Numbering and Text Conversion and Substitution
http://www.catonmat.net/blog/sed-one-liners-explained-part-two/      Part II: Selective Printing of Certain Lines
http://www.catonmat.net/?s=sed+oneliners            Part III: Selective Deletion of Certain Lines and Special Applications


AWK:

http://awk.info/               Awk Community Portal
http://awk.freeshell.org/            Awk Channel Wiki
http://en.wikipedia.org/wiki/AWK         Awk Wikipedia
http://www.grymoire.com/Unix/Awk.html         Awk (Introduction to)
http://www.faqs.org/faqs/computer-lang/awk/faq/      comp.lang.awk FAQ
http://www.vectorsite.net/tsawk.html         An Awk Primer (A Guided Tour Of Awk)
http://www.gnu.org/software/gawk/         Gawk webpage
http://www.gnu.org/software/gawk/manual/gawk.html   The GNU Awk User's Guide (Effective AWK Programming)
http://www.tek-tips.com/threadminder.cfm?pid=271   Awk forum on tek-tips.com
http://jackparke.googlepages.com/awkgui         Awk HTA Gui (for Windows)

Famous Awk Oneliners Explained:

http://www.catonmat.net/blog/awk-one-liners-explained-part-one/      Part I: File spacing, Numbering and Calculations
http://www.catonmat.net/blog/awk-one-liners-explained-part-two/      Part II: Text Conversion and Substitutions
http://www.catonmat.net/blog/awk-one-liners-explained-part-three/   Part III: Selective Printing and Deleting of Certain Lines
http://www.catonmat.net/?s=oneliners+explained            Oneliners Update: String and Array Creation


Knjige za sed i awk:

Sed & Awk, 2nd ed.    by Dougherty, Dale and Robbins, Arnold
Sed & Awk Pocket Reference    by Robbins, Arnold
Mastering Regular Expressions, 2nd ed.    by Jeffrey E. F. Friedl
The AWK Programming Language    by Aho, Alfred V., Kernighan, Brian W., Weinberger, Peter J.
Effective Awk Programming: A User's Guide for Gnu Awk    by Robbins, Arnold
Unix Awk and Sed Programmer's Interactive Workbook    by Patsis, Peter



I za kraj jedan od velikih izvora odgovora vezano za skripting jezike:

http://www.unix.com/shell-programming-scripting/


Prvi link za sed, i prva dva linka za awk, kao i objasnjenja sed i awk 'oneliner'-a su moja preporuka - odlicne informacije na jednom mestu.
The best way to learn UNIX is to play with it, and the harder you play, the more you learn.
If you play hard enough, you'll break something for sure, and having to fix a badly broken system is arguably the fastest way of all to learn. -Michael Lucas, AbsoluteBSD

Oko

  • Administrator
  • Hero Member
  • *****
  • Posts: 990
Unix scripting korisni linkovi
« Reply #3 on: December 30, 2009, 03:55:01 pm »
sed & AWK, 2nd ed. je losija od prvog izdanja posebno u delu o sed-u. Koliko se secam Dale je umro pa je Arnold preuzeo knjigu.
Sto se AWK-a tice u onim gore linkovima moze da se nadje txt verzija Ahove knjige. To je jedna od najbolje napisanih knjiga o porgramiranju.
Toplo preporucujem.

uporna_neznalica

  • Sr. Member
  • ****
  • Posts: 447
Unix scripting korisni linkovi
« Reply #4 on: December 30, 2009, 08:14:25 pm »
Mis'im s'a reeci.

Jedino:

Veliko hvala, ljudi.

Voda mi curi na usta od linkova, doslovce.

Sta da ocekujem sledeci put kad otvorim stranicu? Mozda da me zagrli dvanaest Tahicanki? :D

Oko

  • Administrator
  • Hero Member
  • *****
  • Posts: 990
Unix scripting korisni linkovi
« Reply #5 on: December 31, 2009, 05:24:33 am »
Evo da ja dopunim gornju listu knjigama o Shell-u i Makefile-u :) Da budem iskren nisam jos cuo da je neko napisao celu knjigu posvecenu samo Unix filter programima,
regularnim izrazima ili pipes ali bi trebalo napisati. Pipes je sigurno jedan od najvecih ideja koja je izasla iz Unix kuhinje.  

Moja omiljena knjiga koja pokriva sve gore navedene teme je Unix Programming Environment by Brian W. Kernighan and Rob Pike

Knjige o Shell script-u
An Introduction to the UNIX shell by Stephen Bourne
Unix Shell Programming, Third Edition by Stephen G. Kochan, Patrick Wood
Classic Shell Scripting by Nelson H.F. Beebe, Arnold Robbins
Learning the Korn Shell, First Edition by Bill Rosenblatt (Drugo izdanje ove knjige je revidirano posle Bill-ove smrti. Obavezno citati prvo izdanje.
New KornShell Command And Programming Language, The (2nd Edition) by David Korn



Knjige o Make
Make -- A Program for Maintaining Computer Programs by S.I. Feldman from AT&T Laboratories
Managing Projects with make by Andrew Oram and Steve Talbott (Nemoj slucajno da se prevarite da kupite Managing Projectes with GNU make! GNU make
je broken i sto je najtuznije razlikuje se od klasicne Unix Make utility koja je opisana u navedenoj knjizi.



Jos da dodam da je vise od pola ovih knjiga javno dostupno po gore navedenim linkovima u txt format-u. Naravno ako se nelibite piraterije vise manje sve knjige
su dostupne.

soxxx

  • Administrator
  • Hero Member
  • *****
  • Posts: 1438
Unix scripting korisni linkovi
« Reply #6 on: January 04, 2010, 02:52:31 pm »
Quote from: Oko
sed & AWK, 2nd ed. je losija od prvog izdanja posebno u delu o sed-u.
Ne bih znao, imam samo drugo izdanje, i mislim da je knjiga veoma dobra.

Quote from: Oko
Da budem iskren nisam jos cuo da je neko napisao celu knjigu posvecenu samo Unix filter programima, regularnim izrazima ili pipes ali bi trebalo napisati.
Mastering Regular Expressions moze da bude jedna od njih, nevo sam gore link. ;)


Iako ne koristim bash cesto, ovo je jedan od tutoriala iz kojeg sam poceo ucenje o shell programiranju:

Bash Guide for Beginners - http://tldp.org/LDP/Bash-Beginners-Guide/html/index.html

Pa onda:

Advanced Bash-Scripting Guide - http://tldp.org/LDP/abs/html/

A moze i recimo:

BASH Programming - Introduction HOW-TO - http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html
Bourne Shell Programming - http://www.ooblick.com/text/sh/
Bourne Shell Tutorial - http://www.grymoire.com/Unix/Sh.html
The best way to learn UNIX is to play with it, and the harder you play, the more you learn.
If you play hard enough, you'll break something for sure, and having to fix a badly broken system is arguably the fastest way of all to learn. -Michael Lucas, AbsoluteBSD

Dule Mars

  • Hero Member
  • *****
  • Posts: 664
Unix scripting korisni linkovi
« Reply #7 on: January 04, 2010, 03:23:41 pm »
Quote from: Oko
...GNU make je broken...

Spominjes ovo vec mnogo puta, u kom smislu "broken"??? Ocigledno funkcionise zadovoljavajuce posto ga Linux momci neprestano koriste. Security, mozda???
Ja moram da jedem krstove! Ja sam nešto drugo, a ne pop!

uporna_neznalica

  • Sr. Member
  • ****
  • Posts: 447
Odg: Unix scripting korisni linkovi
« Reply #8 on: February 07, 2016, 11:55:11 am »
Meni je, kao apsolutnom pocetniku, sledece bilo od velike koristi:
http://www.freeos.com/guides/lsst/index.html (Bash tutorijal, stara verzija, ali odlicna; nedostaje joj until petlja)
https://bash.cyberciti.biz/guide/Until_loop (until loop iz novog tutorijala - Bash)

Korn shell
http://www.ibm.com/developerworks/aix/library/au-kornshellscripting/index.html
http://www.ibm.com/developerworks/aix/library/au-usingtraps/index.html

Kao i The Korn Shell User and Programming Manual

Inace, iz soxxx-ovih linkova, one sa grymoire.com trebalo bi da budu nezaobilazno stivo, IMHO.