Pario TechnoBlob

  • Home
  • About
  • Archives
Skip to content

Pario TechnoBlob

A chronological documentation test project, nothing serious, really!

  • Home
  • About
  • Archives

Tag: sed

Scripting

Replace all instances of one word with another in a file

sed -i ‘s/ord1/ord2/g’ filnavn

Read More
Scripting

Remove comments and blank lines from a file

sed -i ‘/.*#/d;/^*$/d’ filnavn

Read More
Security

Utskrift av port, pid og daemon navn v.h.a netstat

netstat -nap| egrep “(0.0.0.0).*(0.0.0.0).*LISTEN” | gawk ‘{print $4 “:” $7}’ | egrep -o “:(.*)” | cut -c 2-|sed ‘s/\//\:/’

Read More
Web

Remove HTML metatags from a file using sed

sed -e ‘s/< [^>]*>//g’ myfile.html

Read More

Posts navigation

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