rigadicomando.org

Whatever you can cat

Random Quote

Richness is the quality of Being.

• Osho

Secondary links

  • About
  • Contacts
  • Disclaimer

Home

perl

up & lower case

Submitted by fabio on Wed, 2006-01-04 16:58.
  • bash
  • perl

Pipe che restituisce caratteri maiuscoli da minuscoli

echo ciao |perl -e 'while (<>) { print uc }'

Muovi tutti i file presenti in una dir da maiuscoli a minuscoli o viceversa ..

for i in `ls` ; do mv $i `echo $i |perl -e 'while(<>) { print lc ;}'` ; done

Muovi tutti i file presenti in una dir da maiuscoli a minuscoli o viceversaanche se contengono degli spazi (Thanks Nando) ..
for i in * ; do mv "$i" "`echo $i | perl -e 'while(<>) { print lc ;}'`" ; done

  • fabio's blog

little perl search engine

Submitted by fabio on Wed, 2006-01-04 16:57.
  • bash
  • perl

Motore di ricerca per piccoli alberi html ;-)

grep -ir 'pattern' path_dove_cercare/*html|awk --field-separator=":" {'print $1;'}|perl-e '$old=""; while() { if ($_ ne $old) {print "$_"} $old=$_;}'

  • fabio's blog

html strip tags

Submitted by fabio on Wed, 2006-01-04 16:54.
  • bash
  • perl

Legge tutti i files html contenuti in una directory [non scende
ricursivamente nelle sottodirectory] eliminandone i tag e li concatena in un
unico file ASCII conservando i commenti HTML.

cat *.htm |perl -e {'while () { s/<.*>//s; print }'} > output_text_file

Idem come sopra ma ricursivo ;-)

find . -iname "*.htm*" |perl -e {'while () { s/<.*>//s; print }'} > output_text_file

  • fabio's blog

LinkShare  Referral  Prg

CheapOair.com

tags in Arguments

administrivia bash Debian GNU/Linux OS emacs howto perl scripts web
more tags

Navigation

  • Feedback
  • News aggregator

ICT users' rights

  • FSF and Stephen Fry celebrate the GNU Project 25th anniversary
  • Spring 2008 Bulletin available online
  • Submit your nominations for the 2008 Free Software Awards
  • FSF demonstrates iPhone's incompatibility with free software and GPLv3
  • Atheros releases free software wireless driver; no binary blobs
more

High Scalability Architecture

  • Latency is Everywhere and it Costs You Sales - How to Crush it
  • MapReduce framework Disco
  • What CDN would you recommend?
  • SMACKDOWN :: Who are the Open Source Content Management System (CMS) market leaders in 2008?
  • 37signals Architecture
more

Debian Security

  • DSA-1634 wordnet
  • DSA-1633 slash
  • DSA-1632 tiff
  • DSA-1631 libxml2
  • DSA-1630 linux-2.6
more

Drupal Security

  • SA-2008-048 - CCK - Cross site scripting
  • SA-2008-047 - Drupal core - Multiple vulnerabilities
  • SA-2008-046 - Drupal core - Session fixation
  • SA-2008-045 - OpenID - Multiple vulnerabilities
  • SA-2008-044 - Drupal core - Multiple vulnerabilities
more

EFF

  • FBI Withdraws Unconstitutional National Security Letter After ACLU and EFF Challenge
  • EFF and Sheppard Mullin Defend Wikipedia in Defamation Case
  • Congress Must Investigate Electronic Searches at U.S. Borders
  • Betrayed MSN Music Customers Deserve More from Microsoft
  • EFF Report: FBI Slowed Terror Investigation with Improper NSL Request
more

Invent Geek

  • the ion cooler 2.0
  • the ultimate dance pad v1.0
  • thermaltake sponsors inventgeek
  • The Thermaltake MiniFridge Case Mod
  • Inventgeek gets a facelift and a butt tuck
more

 Privacy | Disclaimer | Drupal | Creative Commons

All content on this site is ditributed under Creative Commons License, each individual author is responsible for its own posts.

RoopleTheme