Sponsored Content
Top Forums Shell Programming and Scripting Running a command on multiple selected files in nautilus script Post 302285365 by Nickbowlingdude on Sunday 8th of February 2009 09:35:22 PM
Old 02-08-2009
Question Running a command on multiple selected files in nautilus script

I am trying to make a script to convert drg files to wav and so far i have this
Code:
#!/bin/bash
drg2sbg "$*" -o "$*".sbg
sbagen -Wo "/home/nick/Desktop/I-Doser Wave Files/"$*"" "$*".sbg
rm "$*".sbg
cd "/home/nick/Desktop/I-Doser Wave Files"
rename 's/\.drg$/\.wav/' *.drg
exit

the drg2sbg and sbagen commands are right, but I don't know how to make this work for multiple files by running each file through these commands one at a time. Does anyone have an idea of the commands needed? Also if you could post a revised version of my script with the needed commands it would be appreciated. Thanks in advance.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

running multiple rsh command in a script

hi scripting experts, juz wondering if it's possible to have multiple rsh command in a single script? :confused: ie: rsh -l <username> "<command>" rsh -l <username> "<command>" thanks. regards, wee :) (0 Replies)
Discussion started by: lweegp
0 Replies

2. Shell Programming and Scripting

running multiple command in same line

I have 5 hosts and each host as 3 java process .I have one machine which has ssh keys so it can login without any passwords etc to all the machines. How can I find out say jstack or some command so it goes to each machine and run the command . For example machine 1 has 3 java process and they... (2 Replies)
Discussion started by: gubbu
2 Replies

3. Shell Programming and Scripting

concatenating selected lines of multiple files

Hi, I would like a shell script that reads all files in a directory and concatenate them. It is not a simple concatenation. The first few lines of the files should not be included. The lines to be included are the lines from where 'START HERE' appears up to the end of the file. For example, I... (4 Replies)
Discussion started by: laiko
4 Replies

4. Shell Programming and Scripting

Script to find and email selected files

I am trying to come up with a script that will search for selected files and then email them to me. For example, say I have a directory that has the following files: AA_doug.txt AA_andy.txt BB_john.txt APPLE_mike.txt GLOBE_ed.txt GLOBE_tony.txt TOTAL_carl.txt what is the best way to... (2 Replies)
Discussion started by: coach5779
2 Replies

5. Shell Programming and Scripting

Running multiple files through shell script with a variable

Ok, so this question is probably much easier than I'm making it, and thus why I've spent almost 2 hours now on this :wall:. I'm trying to use a command that reads out specific data from a file and and saves it to another file. The code is only a few lines, and here it is below: #!/bin/csh ... (4 Replies)
Discussion started by: mysterionRises
4 Replies

6. Debian

Debian Sparc 6.0.3: multiple Nautilus file manager process

Hi, I would like to ask some assistance about my new install sparc64 debian 6.0.3 in a sun blade 150 Hardware.i having this problem in a nautilus file manager in the below panel, it keeps open and closing (multiple file manager process starting and dying) this in result of 100 percent cpu load,... (0 Replies)
Discussion started by: jao_madn
0 Replies

7. Shell Programming and Scripting

running multiple command in a single line

Hi Can we run the linux command and per script in a single command $ cd /usr/local/adm/ ;ctsv scmtest_qabuild ;cspec.pl scmtest This is a combination of linux and clearcase command and last one is perl script with argument. I can see the first and 2nd coomand is executing but last... (6 Replies)
Discussion started by: anuragpgtgerman
6 Replies

8. Shell Programming and Scripting

Launching Nautilus with a set of files ??

Hello , I am trying to create a layer of file-tagging trough bash scripting and tlc/tk . I have almost everything ready only needs to be able to launch nautilus (the gnome file manager) with a regular expresion; when searching information in internet with "script and nautilus", i only find... (3 Replies)
Discussion started by: trutoman
3 Replies

9. Shell Programming and Scripting

Running a command for multiple folders at once

Hi I have folders 1 to 24 (24 folders in total) and inside those folders I have the same file names. I have a command that I want to run but rather than do it individually I was wondering if there is a command to run them all at once. Thanks Phil (3 Replies)
Discussion started by: phil_heath
3 Replies

10. UNIX for Dummies Questions & Answers

Read in Multiple log files and output selected variables and values to cvs file

I have several problems with my problems: I hope you can help me. 1) the If else statement I am getting an error message. My syntax must be incorrect because the entire statement is throwing an error. For example in filew.log if these items don't exist Memsize, SASFoundation and also if... (0 Replies)
Discussion started by: dellanicholson
0 Replies
oggdec(1)							   Vorbis Tools 							 oggdec(1)

NAME
oggdec - simple decoder, Ogg Vorbis file to PCM audio file (Wave or RAW). SYNOPSIS
oggdec [ -Qhv ] [ -b bits_per_sample ] [ -e endianness ] [ -R ] [ -s signedness ] [ -o outputfile ] file ... DESCRIPTION
oggdec decodes Ogg Vorbis files into PCM-encoded ("uncompressed") audio files, either Wave or RAW format. For each input file, oggdec writes to a filename based on the input filename, but with the extension changed to ".wav" or ".raw" as appro- priate. If the input file is specified as - , then oggdec will read from stdin, and write to stdout unless an output filename is specified. Like- wise, an output filename of - will cause output to be to stdout. Writing Wave format to stdout is a bad idea. Wave requires a seekable medium for the header to be rewritten after all the data is written out; stdout is not seekable. OPTIONS
-Q, --quiet Suppresses program output. -h, --help Print help message. -V, --version Display version information. -b n, --bits=n Bits per sample. Valid values are 8 or 16. -e n, --endian=n Set endianness for 16-bit output. 0 (default) is little-endian (Intel byte order). 1 is big-endian (sane byte order). -R, --raw Output in raw format. If not specified, writes Wave file (RIFF headers). -s n, --sign=n Set signedness for output. 0 for unsigned, 1 (default) for signed. -o filename, --output=filename Write output to specified filename. This option is only valid if one input [file] is specified, or if raw mode is used. EXAMPLES
Decode a file enabler.ogg to enabler.wav as little-endian unsigned 16-bit (default options): oggdec enabler.ogg Decode a file enabler.ogg to enabler.raw as headerless little-endian unsigned 16-bit: oggdec --raw=1 enabler.ogg Decode enabler.ogg to enabler.crazymonkey as unsigned 8-bit: oggdec -b 8 -s 0 -o enabler.crazymonkey enabler.ogg Decode enabler.ogg to enabler.raw as big-endian signed 16-bit (any of the following): oggdec -R -e 1 -b 16 enabler.ogg oggdec -R -e 1 -b 16 -o enabler.raw - < enabler.ogg oggdec -R -e 1 -b 16 - < enabler.ogg > enabler.raw Mass decoding (foo.ogg to foo.wav, bar.ogg to bar.wav, quux.ogg to quux.wav, etc.): oggdec *.ogg AUTHORS
Program Authors Michael Smith <msmith@xiph.org> Manpage Authors Frederick Lee <phaethon@linux.ucla.edu>, assisted by a few million monkeys armed with keyboards in irc://irc.openprojects.net/#vorbis SEE ALSO
ogg123(1), oggenc(1), vorbiscomment(1), flac(1), speexdec(1) Xiph.Org Foundation 2008 September 9 oggdec(1)
All times are GMT -4. The time now is 05:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy