and it worked. The output file was fine when i put back the mp3 extension. Thanks a lot.
But, in my script, i already specified in the for loop to only consider '.mp3' files. It will still ignore 'non-mp3' files. How do i make it detect any audio file of mp3 format in ~/Documents?
As for adding 'set -x', my script closes itself when all conversion is done. How do i stop that?
Last edited by Kingzy; 04-07-2010 at 07:28 PM..
Reason: forgot to tag my code
How do I execute a batch command from a script, which "waits" with the next command until the first one has finished?
=======
A piece of my script looks like this:
#!/bin/sh
(...)
# run a long batch job:
./run_calculation.sh
# then rename resulting file:
mv output.dat backup.dat
(...)
... (7 Replies)
Hi,
When I run the below script in UNIX it's throwing syntax errors. Actually it's a windows batch script. Could anyone change the below Windows Batch script to UNIX shell script...
Script:
REM :: File Name : Refresh_OTL.bat
REM :: Parameters : %1 - Region
REM :: : %2 - Cube Type
REM ::... (5 Replies)
Hello everyone. I am new to shell scripting and i am required to create a shell script, the purpose of which i will explain below.
I am on a solaris server btw.
Before delving into the requirements, i will give youse an overview of what is currently in place and its purpose.
... (2 Replies)
Can anyone help me with a dos batch script to execute a shell script residing in an unix server. I am not able to use ssh.
Thanks in advance (2 Replies)
while converting batch file to shell script ...dis command is ther i dunno how to change...can anyone knws how to change into shell script
rm !(D:\temp\XX.txt) (3 Replies)
Hi All,
I am working on shell scripting.My script is completed but I have one task that is to trigger the batch script(with or without parameter) from my shell scripting(reside on linux system) and output which is geneareted by the batch should e.g. if batch script creates any files then I want... (5 Replies)
Hi,
I am just trying to convert the batch script to bash script and i am stuck at one point where I have the below code
for /f "delims=" %%a in (a.txt) do (
for /f "tokens=1,2,3* delims==" %%i in ("%%a") do (
for /f "tokens=1,2,3* delims= " %%x in ("%%i") do (
if... (4 Replies)
Hi,
I am a junior dba and started carrier very new. I have a batch file to create some script of db creation. I want that batch file to convert in .sh file so that I can directly run that in the AIX box to generate those files.
Please help me with the code for AIX. Batch file is here:
... (2 Replies)
Hi team,
My requirement is to transfer pdf files from windows machine to unix server and then from that unix server we should sftp to another server.
I have completed the first part i.e From windows to using to unix server with the help of psftp.exe
code:
psftp user@host -pw password <... (1 Reply)
Hi All,
I have a small tool which is currently configured in batch scripts only. But my need is to run it on Linux platform, so I have been trying to convert a batch script to shell script.
below is the batch script:
@echo off
IF "%1"== "" GOTO ARGERR
REM UPDATE THESE PROPERTIES TO... (2 Replies)
Discussion started by: sukhdip
2 Replies
LEARN ABOUT DEBIAN
qmp3join
qmp3join(1) quelcom man pages qmp3join(1)NAME
qmp3join - join mp3 files
SYNOPSIS
qmp3join [option]... file1 file2...
DESCRIPTION
qmp3join reads a list of mp3 files and joins them in one mp3 file in the specified order. some conditions must be met for the parameters of
each of the files (see NOTES section).
OPTIONS -f, --force
force join bypassing bit rate checks. by default, to join two files they must be both vbr (have variable bit rate) or have the same
bit rate. using this option you can skip this check.
-h, --help
show a brief help and exit.
-o <outfile>, --output=<outfile>
outfile is the name of the file where all the frames will be copied. if this option is not used, the frames from the second to the
last file of the list will be appended to file1.
-v, --verbose
show which operations are done.
-V, --version
show version and exit.
NOTES
(all) the following parameters are required to be common for two mp3 files to be joined: [fill this!!!]. also, about the bit rate parame-
ter, both mp3 must have the same value or (both) must have a variable bit rate. this restriction would be by-passable with the --force
flag.
before joining, all the streams are tested for validity. this is a time consuming operation.
in any case, qmp3join can be viewed like a better but restrictive cat for mp3 files, due to the mp3 file format characteristics.
BUGS
tests have been done only with mpeg version 1 layer iii streams, though it may (or not) work with other versions/layers.
AUTHOR
dmanye@etse.urv.es
http://www.etse.urv.es/~dmanye/quelcom/quelcom.html
SEE ALSO qmp3info(1), qmp3cut(1), qmp3check(1), qmp3report(1)qwavinfo(1), qwavjoin(1), qwavcut(1), qwavsilence(1), qwavfade(1), qwavheaderdump(1)quelcom 0.4.0 february 2001 qmp3join(1)