Common text processing tools

Blog Outline:1) grep command2) cut command3) sort command4) uniq commands5) tee command6) diff command7) paste command8) tr command Note: Neither of the following tools will modify the source file, only output the results! 1) grep command grep is a powerful text search tool that uses regular expressions to search for text and print matching ...

Posted by quark76 on Tue, 18 Feb 2020 08:32:01 -0800

red hat Linux builds LAMP platform

Linux system, Apache, Mysql, PHP Ensure the existing development environment package before installing the configuration [root@localhost ~]# yum -y install pcre-devel zlib-devel links Turn off selinux and iptables [root@localhost ~]# vi /etc/selinux/config # Modify the configuration file and turn ...

Posted by falcon1 on Mon, 17 Feb 2020 22:51:48 -0800

How to get password from shell script without echo

I have a script that automates processes that need access to password protected systems. Access the system through a command-line program that accepts the user password as a parameter. I want to prompt the user to type their password, assign it to a shell variable, and then use that variable to build the command line of the accessor (which, ...

Posted by trampolinejoe on Mon, 17 Feb 2020 03:23:02 -0800

How to deal with the serious waiting of shared pool in oracle database under linux environment

Recently, many LINUX environment databases of multiple customers have serious wait related to shared pool during peak business hours, including the library cache lock /latch: shared pool wait event, which leads to slow feedback from business users and failure to establish new business connections. &n ...

Posted by Loryman on Sun, 16 Feb 2020 20:52:03 -0800

MyCat for MySQL Middleware

I. MyCat Basic Concepts 1. What is MyCat A thoroughly open source, large database cluster for enterprise application developmentTransaction enabled, ACID enabled, enhanced database that can replace MySQLAn enterprise database that can be considered a MySQL cluster to replace the expensive Oracle clusterA new type of SQL Server which combines ...

Posted by mike1313 on Sun, 16 Feb 2020 15:40:39 -0800

md5sum and random number creation in shell programming

1. What is md5sum MD5 full name is message digest algorithm. This algorithm calculates information of any length bit by bit, and generates a "fingerprint" (or "message digest") with a binary length of 128 bits (hex length is 32 bits). The possibility of different files generating t ...

Posted by damo87 on Sat, 15 Feb 2020 21:09:27 -0800

Introduction to yum package management

rpm can realize fast and simple installation of programs (compared with compilation and installation), but rpm can't solve dependency by itself, so many tools come into being to solve dependency automatically, among which yum is one of them. yum solution to dependency: There must be a file server where all the rpm packages and the package rel ...

Posted by jiggens on Sat, 15 Feb 2020 18:47:48 -0800

Creating and configuring replica cluster of MongoDB cluster under Linux

Case demonstration: 1, In the linux environment, create three nodes on one machine, and create a replica set for the purpose of testing 1. First create three different data storage folders [root@wugenqiang db]# cd /usr/local/mongodb/data/db [root@wugenqiang db]# mkdir rs0-0 [root@wugenqiang db]# mkdir rs0-1 [root@wugenqiang db] ...

Posted by harristweed on Sat, 15 Feb 2020 07:53:45 -0800

How to use Google's cloud computing resources (Google Colab) to train their own neural network and the application of model preservation and transplantation

The rise of deep learning has brought us new efforts and trial directions, and also brought higher requirements for the computing power of machines. GPU acceleration is the key to improve computing speed, but for most people, buying a good video card is too expensive. If you are not a local tyrant, i ...

Posted by blurredvision on Fri, 14 Feb 2020 05:35:54 -0800

Using fast and slow pointer to access the data of middle node of (bidirectional) linked list (bidirectional linked list with head node)

This paper mainly introduces the method of using fast and slow pointers to access the intermediate nodes. As for other operations of the linked list, it has been written before, which will not be introduced here #include<stdio.h> #include<stdlib.h> typedef struct student{ int score; char name[50]; }student_ ...

Posted by T_Hayden on Thu, 13 Feb 2020 13:59:53 -0800