Common commands for text processing tool grep

Grep is a powerful text search tool that searches for text using specific pattern matches, including regular expressions, and outputs matching lines by default.The grep family of Unix includes grep, egrep, and fgrep. Format Usage: grep [Options]...Mode [File]...Search mode in each file or standard input.By default, a pattern is a basic regular ...

Posted by Jeremias on Tue, 18 Feb 2020 08:38:17 -0800

Python 3 standard library: difflib difference calculation tool

1. difflib difference calculation tool This module provides classes and functions for comparing sequences. For example, it can be used to compare files and produce different information in various formats, including HTML and context, as well as differences in uniform formats. For a comparison of directories and files, see the filecmp module. cl ...

Posted by meltingpoint on Mon, 17 Feb 2020 19:51:07 -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

Win32 process communication -- the use of mail slot

Post slot Mail slot is a one-way interprocess communication mechanism provided by Windows operating system, which can be used in single machine or multi machine distributed environment on network. For relatively short low-frequency messages, it is usually easier to use a mail slot than a named pipe o ...

Posted by supergrover1981 on Fri, 14 Feb 2020 05:56:33 -0800

CoolFire lecture series lecture 1

Author: CoolFire [coolfires@hotmail.com] (2001-10-12 15:00:00) CoolHC Volume 1 By CoolFire Author E-Mail: coolfires@hotmail.com Lin Zhenglong, a famous hacker in Taiwan, is the leader of Chinese hackers. Won COG information security Lifetime Achievement Award in 2011Lin Zhenglong Baidu Encycl ...

Posted by random1 on Tue, 11 Feb 2020 22:57:36 -0800

Detailed explanation of how python obtains the executed command parameters through getopt module

This article mainly introduces to you the relevant information about how python obtains the executed command parameters through getopt module. The example code is introduced in detail in this article, which has a certain reference learning value for your study or work. The friends who need it will learn ...

Posted by PHPrev on Tue, 11 Feb 2020 06:37:12 -0800

Linux Network Programming TCP Application Example

Use TCP sockets to develop a program that simulates a user's remote login. (1) Design of server-side programs Server-side concurrency This program uses a multi-threaded approach to achieve the server's response to multiple client connection requests. The main program binds the socket to a self-s ...

Posted by egalp on Sun, 09 Feb 2020 20:37:26 -0800

linux domain socket

Unix domain socket One of the ways of communication between processes in Linux is through network socket. UNIX domain sockets are used to communicate with processes running on the same machine. Although Internet domain sockets can be used for this same purpose, UNIX domain sockets are more efficient. ...

Posted by Birmingham on Tue, 04 Feb 2020 22:55:17 -0800

BT seed structure and coding analysis

1, Data type There are four types of data: string, integer, list and dictionary. Strings (string) Code to: < string len gt h >: < string > For example: 4:test is represented by the string "test" 4: Examples are represented as string "examples" String length in bytes ...

Posted by inkdrop on Sat, 01 Feb 2020 05:03:09 -0800

The application of SMB in Java

Catalog SMB service operations I Introduction to SMB Ⅱ SMB configuration 2.1 Windows SMB Ⅲ add SMB dependency Ⅳ path format Ⅴ operation sharing Ⅵ login verification SMB service operations I Introduction to SMB SMB (full name is Server Message Block) is a ...

Posted by tridean34 on Wed, 29 Jan 2020 02:41:12 -0800