RSS Subscription
Linux Howtos & Tutorials

Enter your email:

Delivered by


NOTE:New tutorials are from LinuxCareer.com

Poll

Do you own or wish to have iPhone?
 


Linux eBooks FREE Download
A guide to programming Linux kernel modules
Introduction to Linux - A Hands on Guide
A Newbie's Getting Started Guide to Linux

Linux from Scratch - Create Your Own Linux System - Free eBook

Linux: The Hacking Solution (v.3.0)

SQLite 3 with PHP Essential Training – Free Video Training Tutorials

This guide will introduce you to the world of GNU/Linux

The GNU/Linux Advanced Administration

A Complete Beginner's Manual for Ubuntu 10.04 (Lucid Lynx)

Advanced Bash-Scripting Guide

Set up, maintain, and secure a small office email server

Partner Linux Sites:
How-To.LinuxCareer.com
Jobs.LinuxCareer.com
TuxMachines
Monsterb
LinuxBloggers
AdamsInfo
LinuxScrew
All For Linux

Replace all TAB characters with spaces

TAB can be represented in different ways by different text editors. For example indent of your program code may look different when opened by someone else using different text editor. From this reason it may be useful sometimes to convert / substitute all TAB's into uniform numbers of spaces.

perl -p -e 's/\t/     /g' tab-file.txt > no-tab-file.txt
sed 's/\t/     /g' tab-file.txt > no-tab-file.txt

both commands above depending on the version of sed will replace TAB's with 5x space character.

Share this linux post:

Submit Replace all TAB characters with spaces in Delicious Submit Replace all TAB characters with spaces in Digg Submit Replace all TAB characters with spaces in FaceBook Submit Replace all TAB characters with spaces in Google Bookmarks Submit Replace all TAB characters with spaces in Stumbleupon Submit Replace all TAB characters with spaces in Technorati Submit Replace all TAB characters with spaces in Twitter
 
Comments for this page are closed !!!
Please visit our new Linux Forum for additional help or discussion.


Linux eBooks FREE Download