learn bash scripting

Want to know learn bash scripting? we have a huge selection of learn bash scripting information on alibabacloud.com

BAT scripting Learn -6:oracle automatic backup restore script

;nulGoto Exit))Setjob_tmr=!bak_hou!:0 0if!bak_hou! LSS 10Setjob_tmr=0!bak_hou!:0 0At !job_tmr!/every:1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31%windir%\ Oracleautobackup\oracleautobackup.bat-Backup>nul 2>nul for/F "USEBACKQ"%%i in ('dir%windir%\tasks\at*.job/b/o:d`) Do Setlastat=%%idel%windir%\tasks\oracle automatic backup. Job >nul 2>nulRename%windir%\tasks\!lastat! Oracle automatic Backup.Job::Save configuration file: SaveconfigEcho!bak_hou!>%configfile

Linux Scripting Learn A

Linux Scripting Learning D: Delete rows that match the criteria Sed ' 1,2d '/etc/fstab delete 1, 2 lines, show other rows P: The line that displays the print fit condition Sed '/^\//p '/etc/fstab matches the display, plus the original, there will be 2 duplicateSed-n '/^\//p/etc/fstab displays the line that matches the print A: Add/string after the specified line Sed '/^\//a \ #hello world '/etc/fstab \ #

BAT scripting Learn -4:oracle automatic backup restore script

"; REMif the object in the first parenthesis is a file name, enclose it in double quotes . REMTokens=1-3 "for the 1 to 3 columns, behind the suspect is%%a, how can it be%%b?" for/F "Usebackq delims==. Tokens=1-3 "%%a in ('SetOra[%%i] ') Do SetOra_cur=%%bSetora[%%i]=REM\ \ means escaped/ Echo!ora_cur!| Findstr "\" >nul 2>nul Echo!ora_cur!| Findstr "@" >nul 2>nul (Set/A J+=1SetOra[!j!] =!ora_cur! ) ) ) Wrote a lot of notes in order to understand Bat

Total Pages: 4 1 2 3 4 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.