Pario TechnoBlob

  • Home
  • About
  • Archives
Skip to content

Pario TechnoBlob

A chronological documentation test project, nothing serious, really!

  • Home
  • About
  • Archives

Tag: sed

Scripting

Fjern kommentarer og blanke linjer fra ei fil

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

Read More
Scripting

Erstatt alle forekomster av “ord1” med “ord2” i ei fil

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

Read More
Scripting

Using sed to replace text with slashes

This is the right way to replace slashes sed -e ‘s,/usr/bin,/home/bin,g’ Usually you replace text this way sed -e ‘s/text1/text2/g’ You can use any character in place of those slashes.

Read More
Scripting

Using sed to delete empty lines

sed ‘/^$/d’ input-file

Read More
Scripting

Rename files with one extension to another

The following command will rename all the files in the folder with the .txt extension to .rtf ls *.txt | sed ‘s/\(.*\)\.txt/ & \1.rtf/’ | xargs -L1 mv

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