Visualizzazione post con etichetta linux. Mostra tutti i post
Visualizzazione post con etichetta linux. Mostra tutti i post

domenica 24 agosto 2014

Dircmp in Linux

Hi all

For who as me came from unix world, dircmp is a very powerful command.
In Linux, in later versions, there is a form to compare recursively directories using command diff,
in this way :

diff -q -r ./dir1 ./dir2

Using this two options of diff command :


       -q  --brief
              Output only whether files differ.

       -r  --recursive
              Recursively compare any subdirectories found.


The result is similar at dircmp in unix.

Stay tuned.

sabato 10 agosto 2013

Vim : An Indentation Problem

Hi all

Today a little big problem.
Every time that i copy and past every thing on vim session i have an indentation problem, for example :

1) I want copy this :

Pippo
Pluto
Paperino
Topolino

2) After a copy result is this :

Pippo
         Pluto
                Paperino
                         Topolino                 

Solution ?????
A simple "set paste" can resolve this hateful problem.

Stay tuned.


mercoledì 29 febbraio 2012

Substring variable length record with awk.

The daily problem is this : I must print from third field to end of all records in a file where fields are separated from Tab character.

To resolve this problem i use awk in this way :

cat | awk -F" " '{ printf "%s\n",substr($0,index($0,$3)) }'

Where in -F awk option I specify tab character, and I use substr with index function of third field in each record read.

Stay tuned.





Check Mid Year Objectives

Hi all Today middle year check of my 2026's goals. 1. ENGLISH Improve listening comprehension (So and So)   See at least one or two film...