Bibliography:Guide to shell script learning, compiled by o'reilly Taiwan by Arnold Robbins & Nelson H. F. Beebe, published by Mechanical Industry Press
P24:
By default, when a shell execution has an executable attribute"ProgramThe shell will
Beijing, March 16 (Xinhua)-the safety shell of nuclear reactors 1 and 3 at Fukushima 1st nuclear power plant may be damaged, Kyodo News reported, japan may need assistance from the US military.
Yoy Nakano said Japan may seek help from the US
1. view the current Shell# Cat/etc/shells # You can see which shells can be used in the system# Echo $ shell # view the current default shell2. Why is no history prompt displayed when I press the up/down key?The current shell is not/bin/bash3.
1. Run the following three commands under the ADB tool:
Adb.exe
Adbwinusbapi. dll
Adbwinapi. dll
File
Install to c: \ windows \ system32
2. Compile a test. BAT file.
ADB push "\ 192.168.2.76 \ jiangsai \ mc850 \ library \ do not
I have never been familiar with Shell and used to write command> log. log 2> & 1 when reporting error logs.Today, a colleague read my shell script and asked me what I meant by 2> & 1, which really gave me a hard time.After Google, I have a rough
Shell is a special feature.
ProgramIt is an interface between the user and the core program (kernel) of the UNIX and Linux operating systems;
Various operating systems have their own shells. For example, the shell of DOS is the command.com file,
1. display the top 10 processes that consume the most memory/cpu ps aux | sort-NK + 4 | tailps aux | sort-NK + 3 | tail ---------------------------------------- 2. view the number of concurrent Apache requests and their TCP connection status netstat-
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]
Xcode statisticsCodeIt is very simple to use shell commands. Open the terminal, enter your project directory, and execute the following code
Find.-Name "*. m"-or-name "*. H"-or-name "*. html"-or-name"*. C" | xargs WC-l
To collect statistics on
From: http://hi.baidu.com/rytech/blog/item/0ddd1428cce175f899250abb.html
How can a complicated Linux Command be made up? The following describes several tips. Redirect using input/outputIn Linux Command Line mode, if the output required by the
Command line parameters when running the script, as shown in figure
./myscript.sh -a -b arg
In scripts, case statements are usually used for processing. My personal favorite practice: first try to use long parameter names (short parameter names are
Dialogue Unix: Hello, shell!
One of the most peculiar and prominent features of UNIX systems is itsCommand LineFunction. You only need to enter a small amount of text that contains a certain logical relationship, you can use the command line to
Shell programming usually requires operations on strings. Sometimes, you need to convert strings into numerical values and perform addition and subtraction operations. The following describes how to convert a string into a numeric value and
MAC system startup process
See:
Http://hi.baidu.com/%CB%E6%B7%E7%B6%F8%D0%D01999/blog/item/271d20a694d7d49dd0435842.html
1 MAC boot STARTUP script or application (run shell script when the system starts)
1) if you want to start a Mac application
In shell, you can convert a string to a timestamp as follows:
Date-d "2010-10-18 00:00:00" + % s
Output Format:
1287331200
The-D parameter indicates the time indicated by the specified string, and + % s indicates the output timestamp.
The
The AAA. Log content of the file to be processed:
09/26 00:00:08 116.41834259033203 39.90071597768346 116.60888671875 35.3890499669116709/26 00:01:34 121.13089397549632 30.98941357306606 121.55966117978099 31.14988029343771409/26 00:01:51 117.1238332
Victor, a friend of the district, told him that he planned to switch to the cygwin version of Emacs. In order to integrate the bash environment when he developed MTK more conveniently.
I also Google cygwin Emacs and other topics here ..
The
The most important script language in Linux is Bash. I will write this (I will only use this :)). Compared with other development languages (such as C), bashIs a relatively simple language, mainly used to write some script code, some batch
Cause: There is no sqlite3 file in the/system/xbin folder on the mobile phone.
Solution: Generally there are some in the simulator, so the task is to drag sqlite3 from the simulator to the mobile phone device.
1. Mount the mobile phone first to make/
Before writing an article, I want to know what shell programming is and what is the difference between shell programming and C/C ++ programming?
I understand that shell programming is to use Linux operating commands to program according to certain
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.