钱不是问题,没有钱才是问题
   
 
钱不是问题,没有钱才是问题


冇散纸
民主体制
中国女性承受的暴力



文 章 分 类
缺省  

标 题 搜 索
 

最 新 日 志
什么是baizuo?
可以加这个Twitter帐号
这个太和谐了
这个挺好玩的
保守党的新提案
这个提出M103的议员,出过书教人如何打老婆。
M-103今晚辩论。
Rare picture of President Trump grabbing p*ssy.
华人移民应该怎样定位自己。
Is Islam a Religion of Peace in Debate

最 新 访 客
天使不敢涉...
   

快 速 导 航
首页
论坛
Classified Search Engine
黄页/二手
北美个人空间
免费注册
登录

友 情 链 接
更多...

统 计 信 息
点击: 374897
帖子数量: 988
开辟个人空间: 2009-04-16
最后更新: 2017-07-28


 
 
 
 
 
 
 

为什么这个脚本运行出错,但是逐行运行指令又正常呢?

 
文章内容
[ 2012-03-16 21:43:07 | By: 冇散纸 ]
 
如题:

写道:
#!/bin/bash
mkdir mp3
shnsplit -o flac -f CDImage.cue -t "%n - %t" -d "mp3" CDImage.flac
cp CDImage.cue mp3/
cd mp3
cuetag CDImage.cue *.flac
for file in *.flac;do $(flac -cd "$file" | lame -hV3 - "${file%.flac}.mp3");done
cuetag CDImage.cue *.mp3
rm CDImage.cue
rm *.flac


出错信息:

写道:
#!/bin/bash
mkdir mp3
shnsplit -o flac -f CDImage.cue -t "%n - %t" -d "mp3" CDImage.flac
cp CDImage.cue mp3/
cd mp3
cuetag CDImage.cue *.flac
for file in *.flac;do $(flac -cd "$file" | lame -hV3 - "${file%.flac}.mp3");done
cuetag CDImage.cue *.mp3
rm CDImage.cue
rm *.flac
 
 
QR Code
请用微信 扫一扫 扫描上面的二维码,然后点击页面右上角的 ... 图标,然后点击 发送给朋友分享到朋友圈,谢谢!
分享:
分享到微信

文章评论

冇散纸
无题
Never mind, sh文件编码问题。

2012-03-17 19:18:45 | 引用
无题
尽量在shell下编写脚本,如果在windows下编辑,一定要转换成unix格式

2012-03-17 21:36:14 | 引用
3M
冇散纸
无题
3M 写道:
尽量在shell下编写脚本,如果在windows下编辑,一定要转换成unix格式


是选Unicode吗?

By the way, 我怎么没法编辑一楼我的主贴了?也没法上传附件了?

2012-03-18 20:38:12 | 引用
无题
冇散纸 写道:
3M 写道:
尽量在shell下编写脚本,如果在windows下编辑,一定要转换成unix格式


是选Unicode吗?

By the way, 我怎么没法编辑一楼我的主贴了?也没法上传附件了?


和是否unicode没有关系,是换行结束符,windows下是回车换行,unix下只有换行。

你应该可以编辑啊

2012-03-18 20:39:26 | 引用
3M
冇散纸
无题
3M 写道:
冇散纸 写道:
3M 写道:
尽量在shell下编写脚本,如果在windows下编辑,一定要转换成unix格式


是选Unicode吗?

By the way, 我怎么没法编辑一楼我的主贴了?也没法上传附件了?


和是否unicode没有关系,是换行结束符,windows下是回车换行,unix下只有换行。

你应该可以编辑啊


没有编辑按钮:回复的时候也不能上传附件。




2012-03-18 21:26:16 | 引用
无题
喔,你没有加入这个群组,所以无权编辑

2012-03-18 21:28:10 | 引用
3M

发表评论

 


The images, logos, trademarks used on this site and all forwarded content are the property of their respective owners.
We are not responsible for comments posted by our visitors, as they are the property of the poster.
All other content of this website is copyrighted by 加西网

Private Policy | skin design: blogworld.com.cn | page generation: 0.034 s
部落窝模板世界

加西网为北美中文网传媒集团旗下网站