I wrote about a small automatic vote a year ago.ProgramBecause the website of the other party is limited to one IP address, only 10 votes can be cast per day, so this automatic voting program is mainly used to vote on the proxy server in the initial
Http://southking.javaeye.com/blog/613089
Run the. Sh script in Linux./bin/sh ^ m: Bad Interpreter: no such file or directory is abnormal.
Analysis: This is caused by different system encoding formats: The. Sh file edited in Windows may have
Usage:
#> Moniotr. Sh eth0 1
#! /Bin/bash
# Test network width# The first parameter indicates the Real-Time refresh time after the NIC name. 1 indicates 1 second.
Function usage{Echo "Usage: $0"Echo "e.g. $0 eth0 2"Exit 65}If [$ #-lt 2]
ADB shell top
PID: ID of the process in the system
CPU %-current instantaneous CPU usage
# Thr-ProgramNumber of threads currently used
UID-the user ID that runs the current process
Name-program name Android. process. Media
VSS-virtual set
ZZ: http://doc.linuxpk.com/80440.html
Sed (Stream Editor) usage:
1. It is a non-interactive text stream editor. It edits a file or copies the text exported from standard input.
2. Specify the text line to be changed using the row number or
AIX shell skills
1) command completion and history command function: set-o vi and then use (ESC \) to complete the file name in the command, use (ESC +) to view the historical command list, and use (ESC -) use the previous command.
You can use esc
A custom net function is used to capture the IP address, netmask, and broadcast information of the network adapter from the ifconfig output result.
##ip netmask broadcastfunction net(){ name=$1 num=\$$2 /sbin/ifconfig -a | awk '
Prerequisites: The shell environment pdksh and Bash; the default shell environment in Ubuntu is Bash.
Syntax:
Variables
1. There are three types of variables: environment variables, internal variables, and user variables. The environment
The TR command reads data from the standard input device and returns the data to the standard output device after string translation.
Cat filename | tr u n: used to replace the U in the filename file with N on the screen, but not in the actual
Today, I wrote a shell script to count the number of lines of source code in a directory, as follows :#! /Bin/bash
Find.-Name *. Java> srcfilespathname
Count = $ (WC-l srcfilespathname) # record the number of source files
Echo "number of source
Shell versionSH: Bourne shell, the original Unix shell.CSH: C shell.Ksh: Korn shell.Bash: Bourne again shell. Linux default shell.Tcsh: C shell extension.Pdksh: Ksh is not free. This is free.
Echo-n "Date and time is:"-N does not wrap.Echo "Your
When installing oralce in Linux, you must first check whether one pair of RPM has been installed. If you check them one by one each time, it will be very troublesome, so a script is simplified.
This script takes only three steps:
1) Save the
Reference: http://feidaodalian.iteye.com/blog/697158It is said that this is an unsolved bug of the SSH Secure Shell client for many years. Both the client and the server must be 'utf-8' encoded.Find information on the Internet and find a simple
It is a good thing. In many places of life, people like to use abbreviations, which saves time and effort. Bash also has its own abbreviation, alias,Alias always has a lot to do. Why not? As mentioned above, we often talk about a large number of
Location parameters can be used
shiftCommand left shift. For example
shift 3Indicates the original
$4Change
$1, The original
$5Change
$2And so on.
$1,
$2,
$3Discard,
$0Do not move. Without Parameters
shiftThe command is equivalent
shift 1. Very
This article is also the seventh chapter of "Learning the bash Shell" 3rd Edition, "Input/Output and Command-Line Processing", four of the Reading Notes. Our goal is to read books thin. We will examine how the Linux system parses bash.
Step 1
From: http://blog.csdn.net/jingxiangren/article/details/4745631
In oracle, you can use the dbms_job package to regularly execute pl/SQL and SQL processes. crontab can only be used for scheduled tasks at the operating system level, such as
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service