07-08-2009
Thanks, I knew there was a simpler way to do it, but since I am a noob, i just wanted to see what other options I have to learn some new stuff.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hallo everyone
I might just be being dumb, but I am using the BASH shell and cannot get the following script to work:
x=0
while
do
echo $x
x=´echo "$x + 1" | bc´
done
Can anybody help me out. I am just get a repeating output saying:
bc: command not found
0 + 1: command not... (5 Replies)
Discussion started by: syno
5 Replies
2. Shell Programming and Scripting
I have written a script that countsdown from 20 to 1 and has a sleep in between each count but I want to make it sleep for half a second but I get errors whenever I change the sleep from 1 second to half a second any ideas? I am using Sun OS 5.9 heres what I've got:
X=0
while
do
echo... (3 Replies)
Discussion started by: Brokeback
3 Replies
3. UNIX for Dummies Questions & Answers
Hi All
Just started with shell scripts and am stumped by, what is to most of you no doubt, a simple issue.
All I'm trying to do is prompt a user for input and writing to a log file. If the user types the word 'stop', then the program should halt. If the word typed is 'clear', then the log file... (2 Replies)
Discussion started by: kutz13
2 Replies
4. Shell Programming and Scripting
i have the following process running in background:
when i give "ps -lef"
------------------------------------------------------------------------
user2
user1
user1
user3
user1
user4
user5
user4
user3
user4
user2
user1
user1
user3
user1
user4 (3 Replies)
Discussion started by: ali560045
3 Replies
5. Shell Programming and Scripting
i have a script called file2
#!/bin/ksh
i=0
while
do
echo $i >> result.txt
i=`expr $i + 1`
done
echo "***********************" >> result
------------------------------------------------------------------- (10 Replies)
Discussion started by: ali560045
10 Replies
6. UNIX for Dummies Questions & Answers
Hello,
I have a file with over 48000 lines and I need to select certain parts of the file. I know which awk commands work for what I need, I just need some help putting together a loop that will repeat the command. These are the commands that work:
awk 'NR < 6' plot.out > plot.test (I get... (1 Reply)
Discussion started by: dsstamps
1 Replies
7. Shell Programming and Scripting
I have what I believe is a simple programming question. I have a text file that looks like:
mol 1 G:\stereo01.hin
block text
...
...
...
endmol 1
However, I would like a file that repeats this entire block of text several times over. The lines of text in the middle remain the same for each... (2 Replies)
Discussion started by: red baron
2 Replies
8. Shell Programming and Scripting
Hi expert,
I'm using csh
Code:
#!/bin/csh
set x = 0
set number = `awk '{array=$0} END {print array;}'`
i want to use for loop to store data to $number repeatly
untill x = 23
How to use c shell for loop? (2 Replies)
Discussion started by: vincyoxy
2 Replies
9. Shell Programming and Scripting
Does any body can help me with a loop in this example?
if
then
if
then
runner=$(grep "$1" "$2")
runne=$(grep "$1" "$3")
run=$(grep "$1" "$4")
fi
fi
#
# Message on screen... (3 Replies)
Discussion started by: bartsimpsong
3 Replies
10. Shell Programming and Scripting
Dear experts,
I am writing a bash script. At some point of the program I need to have 'for' loop. For simplicity I tried with some other simple code. The format of the loop is given below.
k=51
m=55
for j in {$k..$m};do
w=$(($j+2))
z=$(($j+9))
echo "$w, $z"
done
But my... (4 Replies)
Discussion started by: vjramana
4 Replies
LEARN ABOUT DEBIAN
normalize-mp3
NORMALIZE-MP3(1) General Commands Manual NORMALIZE-MP3(1)
NAME
normalize-mp3 - adjust levels of mp3 or ogg files by running normalize-audio(1), then re-encoding
SYNOPSIS
normalize-mp3 [OPTION]... [FILE]...
normalize-ogg [OPTION]... [FILE]...
DESCRIPTION
Normalize volume of mp3 or ogg files by decoding, running normalize, and re-encoding. This requires as much extra disk space as the
largest mp3 or ogg file, decoded. Note that for batch and mix mode, all files must be decoded, so there must be enough disk space for the
decoded copies of all specified mp3 and ogg files.
--ogg Convert files to OGG, regardless of original format
--mp3 Convert files to MP3, regardless of original format
--bitrate BR
Set bitrate of re-encoded file (default 128)
--tmpdir TMP
Put temporary WAV files in temp directory TMP
--notags
Do not copy ID3 or OGG tags to the output file
The following four options may be used to set the encoder and decoder commands for mp3 and ogg vorbis. %m is expanded to the name of the
mp3 or vorbis file, %w expands to the name of the temporary WAV file, and %b expands to the bitrate, as specified by the --bitrate option.
Run normalize-mp3 with no arguments to see the default values.
--mp3encode=X
mp3 encoder
--mp3decode=X
mp3 decoder
--oggencode=X
ogg vorbis encoder
--oggdecode=X
ogg vorbis decoder
-h Display this help and exit.
-V Display version information and exit.
These arguments are passed as arguments to normalize-audio.
Run "normalize-audio --help" for more info.
-a AMP
-g ADJ
-n
-T THR
-b
-m
-v
-q
REPORTING BUGS
Report bugs to <chrisvaill@gmail.com>.
SEE ALSO
The normalize-audio(1) Man page
NOTES
This page was provided by Eduardo Macan <macan@debian.org>
September 2001 NORMALIZE-MP3(1)