Routing the world

Routing & IT System Administration

Archive for December 2011

Merge two files line by line and strip tabs

leave a comment »

If you want to merge two files line by line you can use the next code:

cat file1 | paste - | paste file2 -

This code will insert a tab between the lines for each file, if you need to strip the tab you can use:

tr -d ' \ 011'

So, the final result will be:

cat file1 | paste - | paste file2 - | tr -d ' \ 011'

Advertisements

Written by Root

December 11, 2011 at 13:43

Posted in Linux

Tagged with

VMWare ESX Diagnosis

leave a comment »

If you want to get Diag Info from VMWare ESX and its storage:

esxcfg-info -s

This gives detailed information about this.

Written by Root

December 11, 2011 at 13:43

Posted in VMWare

Tagged with , ,

Merge two files and strip the tabs

leave a comment »

If you want to merge two files line by line you can use the next code:

cat file1 | paste - | paste file2 -

This code will insert a tab between the lines for each file, if you need to strip the tab you can use:

tr -d '11'

So, the final result will be:

cat file1 | paste - | paste file2 - | tr -d '11'

Written by Root

December 11, 2011 at 13:42

Posted in Linux

Tagged with

%d bloggers like this: