Principle: awk command, split formatted TXT (TXT file format with "|") divided) into groups, then spliced into HTML format (html-head-title-body-table)
Shell Source
#!/bin/sh file_input= ' txt.log ' file_output= ' txt2html.html ' td_str= '
If you manage more sites and servers, every time you modify a configuration file, it's pretty painful. The idea is to use a shell script to generate bulk configuration files and configuration data. The following script is a shell script for batch
Recently, the Linux batch execution of the script is very interested in looking around the Internet for expect batch execution script, today to share a batch password modification script.
Script content:
Copy Code code as follows:
#!/
#/usr/bin/env Bash
# Name:get_network_info.sh
# author:purple_grape # This was
a script to gather network inf Ormation of your Linux system.
# Test under Ubuntu 10.04 only.
#----------------------------
nic=eth0
mac= ' lang=c ifconfig $NIC | awk '/
BASH shell set font and background color
Echo-e "\e[31mtest\e[41m"
\e[30m change the display color of a character to black
\e[31m change the display color of a character to red
\e[32m change the display color of a character to green
\e[33m change
Many people use shell scripts to accomplish simple tasks and become part of their lives. Unfortunately, shell scripts can have a very large impact when they run an exception. It is necessary to minimize this type of problem when writing scripts. In
The Linux shell is much more powerful in programming than in Windows batching, whether in cycles or operations.
Bash supports one-dimensional arrays (multidimensional arrays are not supported) and does not qualify the size of the array. Similar to
window, after the ADB shell, for example, if your sdcard save the file name of Chinese characters, then in the cmd display is some irregular Chinese and mixed with garbled.
This situation occurs because:
Android uses the UTF-8 character, and the
In this article I introduce a few very useful and network-related commands
I. Ifconfig
This command is "translated to ipconfig" under windows and is used to display details such as network interfaces, subnet masks, and so on.
Note: In each system,
Write automated, fully-prepared shell scripts based on mysqldumpOn-line MySQL database backup is divided into full standby and add-on, while Xtrabackup backup already supports incremental backup, but mysqldump does not support incremental backup, so
Shell Advanced StepConditional Select if statement to achieve conditional judgmentIf syntax: if Commands;then commands (if the command is true, the subsequent command will be executed, fi ends;)Elif Commands;then Commands (if the previous if is not
First, let's start by saying what the shell timestamp is:The number of seconds since January 1, 1970 (00:00:00 utc/gmt). It is also known as the Unix timestamp (Unix timestam, Unix epoch, POSIX time, Unix timestamp) is the number of seconds that
When it comes to programming, we are all not unfamiliar, but in Linux, we mainly do script writing. Of course, in order to understand the scripting of Linux, we have to first say the logical relationship of multi-command execution.1. Command
I. File, directory Operation command1. ls commandFeatures: Displays information about files and directoriesLS Displays the list of current directory files by defaultLs-a Show all files including hidden filesLs-l display file attributes, including
In this chapter we is going to look at some of the ' magic ' that occurs on the command line when you press the Enter KEY.W Hile we'll examine several interesting and complex features of the shell,we would do it with just one new command:
Vulnerability overviewApache struts is an open source project maintained by the Pachitea (Apache) Software Foundation, an open-source MVC framework for creating enterprise-class Java Web applications. An arbitrary code execution vulnerability exists
1, the syntax of the script structure:Shell script is a "program" written using the function of the shell, which uses a plain text file (the file suffix is preferably sh file, which is convenient for us to manage), and writes some shell syntax and
Features of bash in the shellFeatures of bash in the shellOne of the bash features: command line expansion The mechanism of automatically replacing a given special symbol of a command line with another stringDirectory: Command: CD "Built-in
Today we summarize the basic concepts of bash color, configuration files, variables, arrays and related shell scripting.One. Bash's color display rulesYes, it's a color display, which is the ASCLL code for the color of the call settings, but in the
When you need a simple calculation, you do not want to use the GUI calculator, can be directly calculated under the shell is the bestChecked, there is a thing called BC, the specific use will not repeat, you can run BC, and then go into the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.