Pario TechnoBlob

  • Home
  • About
  • Archives
Skip to content

Pario TechnoBlob

A chronological documentation test project, nothing serious, really!

  • Home
  • About
  • Archives
Scripting

Diff two files, display the results in two clever colums

diff -y index.php index2.php

Read More
Linux

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
Linux

Deletes all trailing spaces from each line

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

Read More
Linux

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

Posts pagination

Previous 1 … 90 91 92 … 101 Next
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