Regular Expressions for Shell Programming

awk tools In Linux/UNIX system, awk is a powerful editing tool. It reads input text line by line, searches according to the specified matching mode, formats and outputs qualified content or filters it. It can realize quite complex text operation without interaction. It is widely used in Shell scripts to complete various automatic configuration ...

Posted by lostnucleus on Sat, 12 Oct 2019 16:13:07 -0700

Three Swordsmen of Regular Expressions in Shell Programming-awk Tool

Overview of awk In Linux/UNIX system, awk is a powerful editing tool. It reads input text line by line, searches according to the specified matching mode, formats and outputs qualified content or filters it. It can realize quite complex text operation without interaction. It is widely used in Shell scripts to complete various automatic config ...

Posted by quecoder on Thu, 10 Oct 2019 02:14:45 -0700

Java Self-Learning - Date

Java Date Class Date class Note: It's java.util.Date; Instead of java.sql.Date, this class is used for database access Example 1: The concept of time origin All data types, whether integer, Boolean, floating point or string, need to be represented in the form of numbers. Date types are no exception, in other words, a date, such as October 1, 20 ...

Posted by cauri on Thu, 10 Oct 2019 01:51:52 -0700

How to install Liblas Library under ubuntu!

Download the latest version of liblas source code Download address: https://liblas.org/download.html Necessary conditions: CMake 2.8.1+ and C/C++ compilers Three. Compile 1. First of all, you must have installed Boost libraries with versions 1.38.0 and above. Not installed can refer to my blog: ...

Posted by dhimok on Mon, 07 Oct 2019 05:55:48 -0700

Mysql database default encoding

View the encoding used 1. View with status mysql> status -------------- mysql Ver 14.14 Distrib 5.6.44, for Linux (x86_64) using EditLine wrapper Connection id: 22 Current database: Current user: root@localhost SSL: Not in use Current pager: stdout Using outfile: '' Using delimiter: ; Server versi ...

Posted by Xproterg^vi on Thu, 03 Oct 2019 10:09:06 -0700

Formatting Time Output in Golang

Usually we need to format the output of time in the process of program processing, so that users or other programs can recognize time more friendly. This paper records how to format time in the process of using golang language. Usually we can use linux shell to format the time conveniently: sh-4.1$ date 2018 Tuesday, 18 September 2002:49:06 CST ...

Posted by tthmaz on Thu, 03 Oct 2019 02:40:46 -0700

Python Multithread Parallel Learning 2

Last article Speaking of Python multi-threaded multi-processing module in the windows platform and Unix platform system in the underlying implementation methods are different, so the efficiency and memory footprint will be different, this paper continues to record how to achieve multi-threaded parallel ...

Posted by vladNz on Tue, 01 Oct 2019 04:25:11 -0700

Description of main functions of Nginx

I. Providing Web Services Nginx itself is a server of static resources, and other dynamic resources are handed over to other programs by matching. server { listen 80 default_server; listen [::]:80 default_server; # SSL configuration # # listen 443 ssl default_server; # listen [::]:443 ssl default_server; # # Note: You should disable gz ...

Posted by binarylime on Mon, 30 Sep 2019 01:35:25 -0700

New Date Processing Tool for java8 Date/Time API

Get on with the article New features of Java 8 Due to the large size of the previous article, the focus is not clear enough. This article takes out the Date/Time api of java8 to explain separately. The new date and time tools are all in java.time and its subpackages. New Date/Time API Design Principles The Java 8 Period/Time API is JSR-310 The ...

Posted by cody44 on Tue, 24 Sep 2019 05:15:09 -0700

[Redis5 Source Learning] An Analysis of the expire of redis command

Grape Command syntax Command Meaning: Set a lifetime for a given key, and when the key expires (lifetime is 0), it will be automatically deleted.Command format: EXPIRE key secondsCommand actual combat: redis> EXPIRE cache_page 30000 # Update expiration time (integer) 1 Return value: Setting successfully returns 1.When the key does not ex ...

Posted by PGTibs on Sun, 22 Sep 2019 01:15:34 -0700