Shell script three swordsmen - Grep (advanced version of egrep), Sed, Awk commands

Grep command 1. Examples of Basic Regular Expressions - Finding Specific Characters Here we will take the / etc/passwd file of all the local users as an example. Demo1 [root@localhost ~]# Grep-n "root"/etc/passwd//-n denotes the display line number 1:root:x:0:0:root:/root:/bin/bash 10:operator:x:11:0:operator:/root:/sbin/nologin 2. E ...

Posted by Buddski on Wed, 09 Oct 2019 04:30:29 -0700

Shell Programming Foundation

This article mainly writes some basic knowledge of shell scripts, programming specifications. The first shell script [root@localhost ~]# vim first.sh #!/bin/bash # This is first Shell Script ! cd /boot/ echo "The current path:" pwd echo "with vml File information for the beginning:" ls -lh vml* Execution script source [root@localhost ~]# sour ...

Posted by rossmurphy on Tue, 08 Oct 2019 20:09:34 -0700

LED Operation of Quanzhi A33 Driver Development

LED Operation of Quanzhi A33 Driver Development I. Overall description II. Notes 3. Implementing led driver 1. Source files 2. Makefile file file IV. Application Programs for Implementing Testing Fifth, schematic diagram I. Overall description _The development board used in this time is vstar2 ...

Posted by Space Cowboy on Tue, 08 Oct 2019 09:39:00 -0700

Write a stability test script for homepage refresh using UiAutomator

In the process of Android APP stability test, I need to test the stable operation and performance data collection under the scene of constantly refreshing the content of the home page. UiAutomator + multithreading finally solves this problem. The idea is as follows: First write the running script with UiAutomator, then output the debugging comm ...

Posted by squalls_dreams on Sun, 06 Oct 2019 00:29:21 -0700

Python takes you on a walk-on tour around the world

1. Target scenario Eleven long holidays, I believe that most of your friends will be in the waves around the country or on the road, friends circle will become the place for you to perform. Of course, there is a small friend who chooses to squatting at home. Do you feel bored? Do you want to go out and take part in the Friendship Photo Competi ...

Posted by claypots on Sat, 05 Oct 2019 12:54:28 -0700

I. Django Installation, Configuration and Creation of Basic Functions Projects

Installation of Django 1. Using Pipenv to create an isolated environment First, install Pipenv by command pip install pipenv. Then create a folder as the root directory of the blog project we are going to develop. For example, I create a new directory named blog under my personal working directory C: Users Zerobit SpaceLocal Workspace G_Courses ...

Posted by garrisonian14 on Sat, 05 Oct 2019 02:29:15 -0700

Luogu P1656 Railway Explosion [Tarjan Bridge Formwork Question]

Portal: P1656 Deep fried Railway Problem DescriptionBecause a country is ruled by the brutal high-pressure violence of a red regime. The U.S. sent General uim to take strategic measures against the country to save charred life. There are n cities in the country. These cities are connected by railways. ...

Posted by pratheshshah on Sat, 05 Oct 2019 00:41:07 -0700

Environment variables, predefined variables and location variables of Shell programming for birds

environment variable Environment variables: Variables that can be obtained by opening each Shell. We know that by export ing, we can let the child process read the value of the variable of the parent process, so how can each process read the value of the variable? In this case, the system has some default configuration files, which can be embed ...

Posted by jrottman on Thu, 03 Oct 2019 07:33:44 -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

Common operation of HBase

Article directory I. HBase Shell Operation 1.1 Basic Operations 1.2 Table Operation I. HBase Shell Operation 1.1 Basic Operations Enter HBase Client[kino@hadoop102 hbase]$ bin/hbase shell After entering the client, backspace is the character after deleting the cursor, and ctrl + backspace ...

Posted by janm2009 on Wed, 02 Oct 2019 16:32:58 -0700