#!/usr/bin/env python#-*-coding:utf-8-*- fromZipFileImport*ImportZipFile#Unzip the zip filedefunzip (): Source_zip="C:\\update\\sw_servers_20120815.zip"Target_dir="c:\\update\\"Myzip=ZipFile (source_zip) myfilelist=myzip.namelist () forNameinchMyfilelist:f_handle=open (Target_dir+name,"WB") F_handle.write (myzip.read (name)) F_handle.close () myzip.close ()#add a file to an existing ZIP packagedefAddzip (): F= ZipFile. ZipFile ('Archive.zip','W', Zip
REM mkdir C:\buildMD c:\buildREM Mount the Windows share to Z DriveNET use x: \\172.16.10.240\Infa_Shared\Infa_Build\Mercury\AT_build\WindowsREM Start unzip Windows build to local machine, no need to copyX:for/f "delims=|"%%i In (' DIR ' * * "/b/o:d ') do SET newest=%%iStart winrar x%newest% c:\buildKnowledge Points:1. REM is the bat annotation2. Basic commands such as MD copy del3. NET use maps shared path to disk4. Start WinRAR x%newest% c:\build wi
default, no additional installation required)2, the external network on the machine to get the parameters on the job, you can use the parameters of batch processing to find decompression3, the local Jenkins processing good packaging site files, through the Jenkins-cli.jar remote callJava-jar jenkins-cli.jar-s http://192.168.199.2:10000/build test-p buildid=1--username Administrator-- PasswordD AdminThe above means: Build test project, passed buildid
---------------------------------------------Tar command:-V Visualization-C New Package-F Specify the file name (unless you use the default user name)-X Decompression Target.tar-R Add File to Target.tar-t lists files in Target.tar-U update file files in Target.tar-Z Call gzip-j Call bzip2Compression TAR:TAR-CF [Target.tar] [file]Decompression TAR:TAR-XF [Target.tar]Compression TAR.GZ:TAR-CZF [target.tar.gz]
Gunzip-r Hongchangfirst/dataHow do I recursively delete those remaining non-log-terminated files?List the confirmation first:Find Hongchangfirst/data-type F! -name "*.log"Then really delete:Find Hongchangfirst/data-type F! -name "*.log"-exec rm-f {} \;Remember the back-exec must add a space, otherwise there will be find:missing argument to '-exec ' error.How do I merge the contents of all the files in a dir
/---------------------------------------------. rpmUnpacking: Rpm2cpio filename.rpm | Cpio-div---------------------------------------------. Tar. tgz. tar.gz. Tar. Z. tar.bz tar.bz2. zip. cpio. rpm. Deb. SLP. Arj. rar. Ace. Lha. Lzh. lzx. Lzs. Arc. SDA. SFX. Lnx. Zoo. cab. kar. cpt. Pit. Sit. SeaDecompression: sEx x filename.*Compression: SEx a filename.* FileNameSex just call the relevant program, itself and no compression, decompression function, please note!Sex please to: http://sourceforge.n
Tags: Copyright file time strong subdirectory exists Linux command default source fileDirectory1. Introduction to Commands2. Common parameter Introduction3. Example4. Direct access to the bottomIntroduction to CommandsLike the zip command, gzip for file compression, gzip compressed file extension ". gz",gzip Delete source files after default compression . Gunzip is used to decompress files that have been co
First go to FolderCd/home/ftp2/1520/webCompress method One : Compress 888.com website under WebZip-r 888.com.zip888.comcompression Method Two : All files and folders under the current directory are compressed into a myfile.zip file,-r indicates that all files under the recursive compression sub-directory.Zip-r myfile.zip./*ExtractUnzip-o-d/home/sunny Myfile.zipUnzip the Myfile.zip file to/home/sunny/-O: Ove
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.