Linux: Amministrazione sistema, Documentazione, HowTo, Tutorial, Recensioni, Manuale, Programmi, Software
Linux Command Line - nothing it's impossible by command line!
English - English  Italiano - Italian  Español - Spanish  Français - French  Deutsch - German  Česká republika - Czech Republic  Polski - Polish  Па-беларуску - Byelorussian  中国 - Chinese  Русский - Russian  Português - Brazil Portuguese  فارسی - Persian  ελληνικά - Greek  العربية - Arabic  Indonesia - Indonesian  
 Download offline copy of Linux Command Line Download offline copy
 Credits
  Edit / Translate
 ToDO (Help US)
 Terms of Use and License
 About project
 
Follow us on...
Join our Linux Facebook Group
Follow us on twitter!
 
News Letter
Sign-up me to receive the news about this document
 
 
Version
Linux Command Line
version 1.4
Last modified date: 2009-07-03
Created Date: 2008-01-06
 
Home page

Linux Command Line: Text Manipulation

View the commands list divided into arguments
Previous Argument      Next Argument
Command Description
# cat example.txt | awk 'NR%2==1' remove all even lines from example.txt   [man]
# echo a b c | awk '{print $1}' view the first column of a line   [man]
# echo a b c | awk '{print $1,$3}' view the first and third column of a line   [man]
# cat -n file1 number row of a file   [man]
# comm -1 file1 file2 compare contents of two files by deleting only unique lines from 'file1'   [man]
# comm -2 file1 file2 compare contents of two files by deleting only unique lines from 'file2'   [man]
# comm -3 file1 file2 compare contents of two files by deleting only the lines that appear on both files   [man]
# diff file1 file2 find differences between two files   [man]
# grep Aug /var/log/messages look up words "Aug" on file '/var/log/messages'   [man]
# grep ^Aug /var/log/messages look up words that begin with "Aug" on file '/var/log/messages'   [man]
# grep [0-9] /var/log/messages select from file '/var/log/messages' all lines that contain numbers   [man]
# grep Aug -R /var/log/* search string "Aug" at directory '/var/log' and below   [man]
# paste file1 file2 merging contents of two files for columns   [man]
# paste -d '+' file1 file2 merging contents of two files for columns with '+' delimiter on the center   [man]
# sdiff file1 file2 find differences between two files and merge interactively alike "diff"   [man]
# sed 's/string1/string2/g' example.txt replace "string1" with "string2" in example.txt   [man]
# sed '/^$/d' example.txt remove all blank lines from example.txt   [man]
# sed '/ *#/d; /^$/d' example.txt remove comments and blank lines from example.txt   [man]
# sed -e '1d' exampe.txt eliminates the first line from file example.txt   [man]
# sed -n '/string1/p' view only lines that contain the word "string1"   [man]
# sed -e 's/ *$//' example.txt remove empty characters at the end of each row   [man]
# sed -e 's/string1//g' example.txt remove only the word "string1" from text and leave intact all   [man]
# sed -n '1,5p' example.txt print from 1th to 5th row of example.txt   [man]
# sed -n '5p;5q' example.txt print row number 5 of example.txt   [man]
# sed -e 's/00*/0/g' example.txt replace more zeros with a single zero   [man]
# sort file1 file2 sort contents of two files   [man]
# sort file1 file2 | uniq sort contents of two files omitting lines repeated   [man]
# sort file1 file2 | uniq -u sort contents of two files by viewing only unique line   [man]
# sort file1 file2 | uniq -d sort contents of two files by viewing only duplicate line   [man]
# echo 'word' | tr '[:lower:]' '[:upper:]' convert from lower case in upper case   [man]
Previous Argument      Next Argument
Commands by Argument
System information - Shutdown, Restart and Logout of a system - Files and Directory - File search - Mounting a Filesystem - Disk Space - Users and Groups - Permits on Files - Special Attributes on files - Archives and compressed files - RPM Packages ( Fedora, Red Hat and like) - YUM packages tool (Fedora, RedHat and alike) - DEB packages (Debian, Ubuntu and like) - APT packages tool (Debian, Ubuntu and alike) - View file content - Text Manipulation - Character set and Format file conversion - Filesystem Analysis - Format a Filesystem - Filesystem SWAP - Backup - CDROM - Networking (LAN / WiFi) - Microsoft Windows networks (samba) - IPTABLES (firewall) - Monitoring and debugging - Other useful commands - Pacman packages tool (Arch, Frugalware and alike) -

Translated by: LinuxGuide.it team  | 
become translator!
Social Bookmarking
Bookmark to: Folkd Bookmark to: Yigg Bookmark to: Digg Bookmark to: Del.icio.us Bookmark to: Facebook Bookmark to: Reddit Bookmark to: StumbleUpon Bookmark to: Slashdot Bookmark to: Furl Bookmark to: Blinklist Bookmark to: Technorati Bookmark to: Newsvine Bookmark to: Blinkbits Information
 
 
Except where otherwise specified, the contents of LinuxGuide.it are licensed under License Creative Commons 2.5 Attribution
Free Distribution if provided Authors and, Not Commercial purposes and, Not Derivated Works 2.5
LinuxGuide.it | Terms of Use and License | Privacy Policies  Read Creative Commons license to learn how to share LinuxGuide.it contents using this license Our sponsors | Become sponsor
Logos and trademarks used for the link are owned by their legitimate owners