⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 de-rpm.sh

📁 Shall高级编程
💻 SH
字号:
#!/bin/bash# de-rpm.sh: Unpack an 'rpm' archive: ${1?"Usage: `basename $0` target-file"}# Must specify 'rpm' archive name as an argument.TEMPFILE=$$.cpio                         #  Tempfile with "unique" name.                                         #  $$ is process ID of script.rpm2cpio < $1 > $TEMPFILE                #  Converts rpm archive into                                         #+ cpio archive.cpio --make-directories -F $TEMPFILE -i  #  Unpacks cpio archive.rm -f $TEMPFILE                          #  Deletes cpio archive.exit 0#  Exercise:#  Add check for whether 1) "target-file" exists and#+                       2) it is an rpm archive.#  Hint:                    Parse output of 'file' command.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -