Pario TechnoBlob

  • Home
  • About
  • Archives
Skip to content

Pario TechnoBlob

A chronological documentation test project, nothing serious, really!

  • Home
  • About
  • Archives

Category: Scripting

Scripting

Delete all blank lines and save into the file itself

In all files called *.html, delete all blank lines and save into the file itself (-i option): for f in *.html; do sed -i ‘/^ *$/d’ $f; done

Read More
Scripting

Deletes all trailing spaces from each line

sed ‘s/[ ]*$//’ filename

Read More
Scripting

Strip HTML tags from file

sed -e ‘s#< [^>]*>##g’ < index.php > index.txt Another way of doing it: sed ‘s/< [^>]*>//g’ < index.php > index.txt

Read More
Linux

Delete all newlines from a file

tr -d ‘\n’ < file

Read More
Linux

Translate uppercase characters to their corresponding lowercases

cat file| tr ‘A-Z’ ‘a-z’

Read More

Posts navigation

Older posts
Newer posts
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy

Search

Apache apt-get awk backup basename bash CentOS convert csv Database dd Debian esxi5 Etch EXIF Fedora find Gentoo grep howto html imagemagick iptables iso jhead JPG mount MySQL Nikon nmap perl PHP Postfix RedHat rename rhel5 sed sftp SMTP sort ssh Ubuntu VMware Wordpress Zimbra

  • Backup
  • Linux
  • Misc
  • Network
  • Photo etc
  • Scripting
  • Security
  • Virtualization
  • Web
  • Windows

Categories

  • Backup
  • Linux
  • Misc
  • Network
  • Photo etc
  • Scripting
  • Security
  • Virtualization
  • Web
  • Windows

Tags

Apache apt-get awk backup basename bash CentOS convert csv Database dd Debian esxi5 Etch EXIF Fedora find Gentoo grep howto html imagemagick iptables iso jhead JPG mount MySQL Nikon nmap perl PHP Postfix RedHat rename rhel5 sed sftp SMTP sort ssh Ubuntu VMware Wordpress Zimbra
Resume X WordPress Theme by Wp Theme Space