Linux Shell automatically handles FTP operations

FTP server 172.17.17.17 Account yangsh Password 7183458 1. fixed form #! /Bin/shEcho "this is my first FTP auto script"Echo "Open 172.17.17.17 21User yangsh 7183458PWDPut ftp.txtCloseBye "| FTP-I-in  2. parameter transfer #! /Bin/sh

Shell programming has nothing to do with commands

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,

In the shell script, the SED command fails to be parsed.

''Causes sed Command Parsing to fail. The experiment is as follows: Try to replace a single backslash with two backlash, that is\ Replace \\ $ Cat t1.sh#! /Bin/shA = 'echo 1 | SED's/\/g''Echo $ $./T1.shSed:-e expression #1, character 8:

Add a custom shell in Linux as a service automatically run by the System

Recently, I encountered a problem. After the database is installed, the set oratab is not easy to use and cannot be started automatically. solution:   Log on and edit with Root /Etc/rc. d/rc. Local file. This file is executed after the system

Introduction to shell built-in command Exec

Shell built-in command Exec Shell's built-in command exec is very interesting. It will not start a new shell, but will replace the current shell process with the command to be executed, and clean up the environment of the old process. Other

Shell script learning-8 (SED command learning)

Example 10What is the execution sequence of many-e commands? [Rocrocket @ rocrocket programming] $ cat mysed.txtBeijing 2003Beijing 2004Beijing 2005Beijing 2006 Beijing 2007Beijing 2008[Rocrocket @ rocrocket programming] $ sed-E's/Beijing/London/G'

One of shell Study Notes

1. First look at a common command PS-EDF | sort | uniq | grep-V sh | more This command combines several different shell commands, which have this feature. Uniformity and simplicity. You can use pipeline commands to combine multiple shell

Linux Shell syntax

Linux Shell is a powerful script program with simple syntax. The following is an executable sh script, covering common shell syntax and usage. Understanding it is equivalent to getting started.   #! /Bin/bash# Title:# Date :?# Author: Made by

Shell record time

Shell has two built-in variables about time,You have never used it,I have never used it,Today is also the first time to see,So I added a note,For future reference.$Seconds: the time when the script has been run.(In seconds).$TmoutIfTmoutThe

Shell awk Regular Expression matching

Today, we can see that awk in a shell script processes strings, and there is a gsub ("\\. [0-9] + $ "," ", $2), and the $2 format is 00:12:13. 333, this gsub wants to put. 333. The regular expression in the regular expression cannot be matched. it's

Linux get time in Shell

Obtain the date of the current day Date + % Y-% m-% d Output: 2011-07-28   Assign the current date to the date variableDate = $ (date + % Y % m % d) Sometimes we need to use the date before or after today, then we can use the-D parameter of

Rpm-Pi in Shell

Common RPM parameters for these tasks !!! In Linux, you can run man rpm !!! It's only in English, or you can get Baidu RPM !!! I 'd like to paste a few below !!!! Common RPM commands 1. install a package # rpm-IVH 2. upgrade a package # rpm-uvh 3.

Familiar with shell programming

This is the first thing I did in my company that is directly related to programming and requires shell commands. In fact, I feel that the shell under Linux is the same as the DOS batch processing under windows.   Question: 1. Use the shell language

Shell script learning: sed for regular expressions, tr

In Linux, The SED command is used to replace the text. The command that matches the regular expression can be replaced flexibly with SED, which greatly reduces the workload. It can be said that SED is the main force of replacement in shell scripts

How do I calculate floating point numbers in shell?

It has the most basic mathematical computing capabilities in shell, such as expr and let. However, these operations can only process integer data. To calculate decimals, you must use the BC command extension. The following example shows how to

General shelling steps and example of encrypted Shell

Today, I am mainly going to have a deep understanding of the assembly language. If I want to decompile the language, this is not enough. Of course, this is not a day or two that can be successful. Continue to work hard.   I. How to distinguish the

How to execute shell script in Java?

It is often necessary to call other scripts (shell, CMD) in Java, which were used previously: Runtime r = runtime. getsystemruntime (); r.exe C ("whatever you want to run ");  However, sometimes the running results are unpredictable, causing a lot

Start a shell script in APK

In Java, you can call the Execcommand method to run the shell script. The following is an example: 1 .#! /System/bin/sh 2. # The simplest shell with no function 3. # It must be noted that #! Start with/system/bin/sh (with spaces) 4. # different from

Run shell scripts during Mac and system startup.

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

Shell batch renaming

========================================================== ========================================================== ======== RENAME [-V] [-N] [-F] perlexpr [files]-V, -- verboseverbose: Print names of files successfully renamed. -N, -- no-actno

Total Pages: 541 1 .... 389 390 391 392 393 .... 541 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.