I work in windows and use securecrt to connect to a remote Linux host.
I downloaded a zip file from the Internet (all files are PDF and DOC files, which need to be viewed under Win) and decompressed it with RAR in windows. Use the RZ command to
Processing object
Although you may not realize it at first, the. NET object is used when working in Windows powershell. As your experience increases, the object processing capability becomes more obvious, and you find that you are using objects, or
Prerequisites
Check script Syntax: Bash-V test. Sh Jack
Do not run. view onlyCode: Bash-n test. Sh
Trace execution: Bash-X test. Sh
Force variables to be declared first and then use: shopt-S-O nounset
When executing the script with SH test. Sh,
Okay. Run this script and you will understand it.#! /Bin/bash
Until
[
$
#-EQ 0]
Do
Echo
"$ @"
Shift
Done
See the role. When shift (without parameters) is run each time, a parameter is destroyed and the subsequent parameter is moved forward.
For example, the following is an address book written in a Linux Shell script. The "add, delete, and query" function has been implemented. The "change" function is complex and is to be continued ~~
1 #!/dev/bash 2 3 # Name of address book 4
Using ubuntu10.04 these days, multiple instances of the same program will always be opened, such as Firefox/chromium, and so on, so I wrote the following script to enable the function of only one instance:
#! /Bin/sh# Name: One# Auther: maxupeng#
"Back" | "tab" | "clear" | "return" |
"Escape" | "space" | "prior" |...
The names of all keys can be found in winuser. h. The hotkeys are case insensitive.
The hotkey can only activate shortcuts on Windows desktop or Windows Start Menu.
Windows
The following table describes the methods related to the wshurlshortcut object.
Method descriptionSave saves the shortcut to the specified file system.
Wshurlshortcut. fullnameThe fullname attribute provides the complete path of the shortcut object.
1. I installed the vmwarevirtual machine Linux redhat9 with built-in ssh. On the Linux terminal, enter SSH to view the relevant information.2. install sshsecureshellclient-3.2.9.exe in Windows XP and install it in the default path. After
Date + % s can get UNIX timestamp;Use shell to convert time strings and timestamps:Date-d "00:00:00" + % s output format: 1287331200The time stamp can be converted to a string as follows:Date-d @ 1287331200 "+ % Y-% m-% d" output format:
Wshshell objectProgid wscript. ShellFile Name wshom. ocxCLSID F935DC22-1CF0-11d0-ADB9-00C04FD58A0BIID F935DC21-1CF0-11d0-ADB9-00C04FD58A0B
The following table describes the properties related to the wshshell object.Attribute descriptionEnvironment
Many new users want to learn Chinese software. I don't know where to learn. Today I will send a basic shell check tutorial. Of course. This tutorial is only for beginners. Please fly over the old bird. Here is a brief introduction:
Beginners want
/** Shellsort. CPP ** created on: 2013-6-1 * Author: Jue */# include Using STD: cout; Using STD: Endl; void swap (Int &, int & B) {int temp = A; A = B; B = temp;} void shellsort (INT datas [], int length) {int offset = length/2 + 1; while (Offset> =
Power shell provides the definition function for user variables.
Variables do not need to be declared first (of course, they are in uniformity. For some global variables, we recommend that you declare them first and assign values). The variable
How do you build the system environment when you get a brand new computer? Do I manually create a user group and manually configure permissions for each service? At least, you should learn how to write the next batch of processing commands. You will
Continued Linux Bash Learning (5): Special files, aliases, options, and parameters
This article is also the third chapter of "Learning the bash Shell" 3rd Edition, Customizing Your Environment's Reading Notes II, but we will not limit it to this.
This article Reprinted from http://www.linuxsir.org/bbs/thread362001.html? Pageon = 1
Terminal (terminal, or physical terminal ):
It is a device, not a program. Generally, it is a device that provides a command line user interface, typically a
Sed and awk
Background
When designing a script, you may need to modify the script, such as deleting or replacing some keywords. This method of dynamically modifying files during script execution is called Stream editing. A tool with stream editing
File Operations
Get directory content
Ls
Getconf ARG_MAX
Determine whether a file exists
Create a file
Create a general file:
Create a file
1 use the redirection output:> text.txt
2. Use the NULL command:> test. xtx to increase script portability.
Explain in detail some of the most basic functions, struct, and enumeration in Shell programming.
Shgetasktopfolder Get the IShellFolder interface of the desktop
Code highlighting produced by Actipro CodeHighlighter
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.