我在Ubuntu 16.04 LTS的/ media中安装了Windows HDD 。在我的终端中,我已导航到路径/ media / me / OS / Users / Me / Music。从这里,我运行find命令来搜索此Windows路径中的所有MP3:
find . -type f -name *.mp3
Run Code Online (Sandbox Code Playgroud)
这将返回一堆.mp3文件路径(颜色没有任何意义;必须通过Wiki格式化已发生):
./iTunes/iTunes Music/Yeah Yeah Yeahs/It's Blitz/01 Skeletons.mp3
./iTunes/iTunes Music/Yeah Yeah Yeahs/It's Blitz/Gold Lion.mp3
./iTunes/iTunes Music/Yeah Yeah Yeahs/It's Blitz/Heads Will Roll.mp3
./iTunes/iTunes Music/Yeah Yeah Yeahs/It's Blitz/Maps.mp3
Run Code Online (Sandbox Code Playgroud)
如您所见,文件名中有空格。我的目标是将列表中的所有文件(包括560个左右)复制到我的Ubuntu HDD的/ home / me / Music目录中。以下是我尝试过的所有操作的清单,最终导致终端对我大喊:找不到“ ./iTunes/iTunes”,“音乐/是”,“是” ...理念。
我尝试过的事情:
for f in $(find . -name *.mp3); do cp $f ~/Music/WindowsMP3s/; donefind . -type f …我已经安装了(在CentOS 7中)一个名为Rational Software Architect(RSA 9.5)的程序,它是一个富客户端平台,就像Eclipse一样,但没有实际安装RPM.RSA附带了一个安装bash脚本,它几乎只是将eclipse文件丢弃到文件系统上.我的Eclipse可执行文件/opt/IBM/SDP/eclipse与普通的Eclipse文件夹(如"插件","功能"和"dropins")处于同一级别.
我为之前版本的"真正的"Eclipse编写了一个spec文件,它只是安装了一些我作为jar文件编写的java插件,将它们放在"dropins"文件夹中,然后调用eclipse -clean -initializeEclipse与我的新插件同步.这仍适用于RSA.
我的问题归结为以前的事实,我只是在spec文件中有一行,
Requires: eclipse >= 4.4.2
因为Eclipse是作为RPM安装的.既然安装了RSA,取代了Eclipse,并且没有与之关联的RPM,我需要找到一种方法来告诉spec文件在安装RPM之前要求"dropins"文件夹存在.也许是这样的:
Requires: /opt/IBM/SDP/eclipse
我没有用上述方法取得任何成功,并想知道是否甚至可以根据文件而不是包来设置RPM要求?我找不到关于这个主题的任何文档,并希望你们都能提供帮助!提前致谢.
仅供参考......我在CentOS 7.2中使用rpm-build-4.11.3和rpmdevtools-8.3.
编辑:在规范中使用绝对路径时添加从yum返回的错误消息
[root@localhost trunk]# yum localinstall myplugin-1.1.6-rev1255.x86_64.rpm
Loaded plugins: fastestmirror, langpacks, rhnplugin
This system is receiving updates from RHN Classic or Red Hat Satellite.
Examining myplugin-1.1.6-rev1255.x86_64.rpm: myplugin-1.1.6-rev1255.x86_64
Marking myplugin-1.1.6-rev1255.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package myplugin.x86_64 0:1.1.6-rev1255 will be installed
--> Processing Dependency: /opt/IBM/SDP/eclipse for package: myplugin-1.1.6-rev1255.x86_64
Loading mirror speeds from cached hostfile …