AWK in Linux

awk Linux Commands

What is Linux awk Command?

Explanation

awk COMMAND:
awk command is used to manipulate the text.This command checks each line of a file, looking for patterns that match those given on the command line.

SYNTAX:
The Syntax is
awk ‘{pattern + action}’ {filenames}

OPTIONS:

-W version Display version information and exit.

-F Print help message and exit.

EXAMPLE:
Lets create a file file1.txt and let it have the following data:

Data in file1.txt
141516
151511
5566
5251

To print the second column data in file1.txt

awk ‘{print $2}’ file1.txt

This command will manipulate and print second column of text file (file1.txt). The output will look like

15155625
To multiply the column-1 and column-2 and redirect the output to file2.txt:

awk ‘{print $1,$2,$1*$2}’ file1.txt > file2.txt

Command Explanation:
$1: Prints 1st column
$2: Prints 2ndcolumn
$1*$2: Prints Result of $1 x $2
file1.txt: input file
symbolfile2.txt: output file

The above command will redirect the output to file2.txt and it will look like,
14 15 21015 15 2255 56 2805 25 125

Enjoy !

Dangerous Crypto Trojan is spreading very fast

Bildschirmfoto 2016-02-29 um 22.50.38

The dangerous crypto Trojan Locky infects an average of 5,000 installations per hour in Germany !!

The Trojan encrypts drives after infection, but not only local drives but also encrypts all available network shares and all accessible cloud storage too. Details for the dissemination and the  damages caused, can be found here:

http://www.heise.de/security/meldung/Krypto-Trojaner-Locky-wuetet-in-Deutschland-Ueber-5000-Infektionen-pro-Stunde-3111774.html

How to boost Performance of your WordPress- Site

Looking for a helpful guide on how to optimize the Response Time of the WordPress installation I found the following instructions (sorry, only German Language available):

WordPress optimieren für besseren PageSpeed

Very clear and well it is described which plugin makes sense and how the configuration must be done here on the necessary steps.

No Internet due to virus-alerts

image

This morning i was surprised by this email of our IT manager. Given the ever-increasing spread of malware on the Internet and the resulting enormous damage, needs to seriously ask the question whether we are not too dependent on making us too dependent of everything is IT-driven. In many cases no meaningful work is possible without a functioning IT infrastructure.
Now they are even seriously considering to get rid of cash payments in Germany or even in Europe. That may see each as he wants, I’m glad that there are still areas of life that are still available in the worst case even without a functioning lT. With cash, important things can be bought even when fully-failure of critical IT networks becomes reality !
We cannot be sure that everything always works and is available, as the example described in the introduction clearly shows.
Enjoy !

WordPress App- first Attempts

Recently downloaded and installed the WordPress- App for Android from Google Play Store. This Post was created using this app. It seems to work at first sight.. Below is a picture that I created on my smartphone and uploaded to my blog using this app:

image