WWW.GENTOO-SRBIJA.ORG
Serving freedom and socialism since 1985. Četvrtak, 08 Januar/2009  
 » SADRŽAJ
 › Uvod
 › Performanse
 › Mirori
 › Linkovi
 › Download
 › Mailing lista
 › Kontakt
 » PROFIL
» šifra
zapamti me
  Registracija
 » PRETRAGA
 » NOVI PAKETI
mail-filter/MailScanner-4.70.7.1: Free Anti-Virus and Anti-Spam Filter
dev-util/tmake-2.12: A Cross platform Makefile tool
dev-perl/Filesys-Df-0.92: Disk free based on Filesys::Statvfs
app-shells/bash-completion-20060301: Programmable Completion for bash
app-portage/gentoolkit-0.2.4.2-r1: Collection of administration scripts for Gentoo
app-crypt/pgpdump-0.26: A PGP packet visualizer
app-admin/bcfg2-0.9.6: Bcfg2 is a configuration management tool.
net-misc/dhcpcd-4.0.7: A fully featured, yet light weight RFC2131 compliant DHCP client
net-misc/dhcpcd-4.99.6: A fully featured, yet light weight RFC2131 compliant DHCP client
net-misc/dhcpcd-4.0.6: A fully featured, yet light weight RFC2131 compliant DHCP client
 » WEBMAIL
 » GENTOO-PORTAGE
And we're back
Forum index ›› Administracija › Sklonite komentare!  
  AUTOR   PORUKA

Site Admin
Učlanjen: 27 Oct 04
Lokacija: privileged mode
Poruke: 913
profil¬ poruka¬
 Oglašeno: 29 Jun 05  11:05  

Evo zanimljive skripte koja se ponaša kao naredba cat samo što kao standardni output svlači sve komentare i prazan prostor i prikazuje samo "sirovi" tekst. Možete je koristiti kad šaljete svoje konfiguracione fajlove na forum kako bi pregled istih bio jasniji.

Kod: download
#!/bin/bash
# Code to cat a config file removing all comments and blank lines.
sed -e 's/#.*//;/^s*$/d' "$@"