Ubuntu :: Tool For "Batch-editing" Several Files?

Feb 13, 2010

Is there a good tool for "batch-editing" a number of files non-interactively? Replace a string with another and add a couple of lines in several files...

sed would've been ideal, but AFAIK, sed(1) can't work on normal files. Is it possible to get ed(1) to execute a sed-like script on a file/number of files? Is there perhaps a cross between sed(1) and ed(1) out there?

Call me lazy, but it just seems such a waste to have to cat(1) the file through sed(1) and to a temp-file, and then overwrite the original with the temp-file...

View 2 Replies


ADVERTISEMENT

Ubuntu Networking :: Proper Tool To Use For Editing Files On A Server?

Nov 30, 2010

I have a gaming server set up and running client software 24/7. This prevents me from editing the configuration files while the client is running. The server is connected to a switch which also connects another computer to the internet.What would be the proper software to use if I want to edit files on the server without interrupting the client?I have looked at Samba, SSH, and Screen, but I'm not entirely sure which one would be the best tool for the job.

View 6 Replies View Related

Software :: Simple Video Editing Tool For AVI Files

Dec 28, 2010

looking for suggestions for simple editing of avi files. the files come from my digital camera. they are rarely more than a couple of minutes long. i don't want to burn them to a dvd or anything fancy. i just want to clean them up for posting to videos and a media server.

View 2 Replies View Related

Programming :: Write A Batch File For Windows That Starts Cygwin Tool And Runs Unix Scripts?

Nov 17, 2008

I need to write a batch file for windows that automatically starts the cygwin tool in windows and executes the unix scripts.Previously we had these scripts in unix server.Now we need to migrate them to Windows server.For this reason we are using cygwin tool that allows the scripts to be executed on Windows server.We had written a batch file that starts the cygwin tool,but we were not able to execute the unix scripts.How can we write a batch file such that it executes all the unix scripts in cygwin.

View 5 Replies View Related

Software :: Video Editing Tool To Enhance Simple Movies?

Nov 8, 2010

I'm looking for an easy to use video editing tool for cleaning up and enhancing the simple movies that can be made with digital compact stills cameras. My camera (a Panasonic Lumix) records these as Apple Quicktime MOV format and uses a very basic internal microphone to enable it to include a very poor soundtrack. My current desktop is Ubuntu 10.04 running on an old Athlon 64 single core with 2GB RAM with "enough" spare disk capacity for these very short home movie clips. I can play them back with the standard media player at present. I'm not a professional multimedia artist and I'm looking for a very simple, easy to use tool that will enable me to clean up, convert, etc. Ideally, I'd want to send these either via e-mail or on CD to family and friends.

View 4 Replies View Related

Ubuntu :: How To Run Batch Files?

Oct 19, 2010

I recently installed JDK 6 runtime using apt-get install in terminal. I downloaded a .jar file and attempted to run it but I got an error telling me it has blocked the file for some reason.Another thing was, how can I run batch files? I know ubuntu doesn't come with something like MS DOS but is there anything similar that I can run batch files with?

View 3 Replies View Related

Ubuntu :: Compile Batch Files In Dos?

Nov 9, 2010

Is it possible?I am mainly looking for A shell script or program that can convert a Batch (.BAT) file into a Windows executable (.EXE), or
A program that can be run from MS-DOS that can turn a batch into an exe.

View 3 Replies View Related

Ubuntu Multimedia :: How To Batch Convert Files To .flv?

Apr 16, 2011

So I have a php script that is setup to stream flash video (.flv) and I absolutely love having it. The problem is that any files I want to stream have to be in .flv format for it to work properly as .avi and others obviously don't stream well. Up until now, I've used FFMpeg to change the format from .avi to .flv, however the process takes a lot of time if you have a lot of videos, added to that you have to do one file at a time definitely makes it a pain.Does anyone know of a bash script that can take all the files (i.e. avi, .wmv, .mkv, .mpeg4) in one folder and automatically convert it to .flv? Then possibly delete the old files? Low resolution is fine, so long as it at least viewable. Does anyone have a script or know of a program that can do this (I run Ubuntu 10.04). I think FFMpeg has the best chance of doing this, but I don't know the syntax to actually do so.

I've searched the internet, and while I have found a few scripts, they didn't work for me (still looking into two scripts I found.I am currently messing with them to see if I can get them to work).It would be immensely helpful if someone knew of a way to do this.I also forget to mention that I have used Winff, but I was looking more for a bash script to do this so that I can set a cron job to convert them every hour or so.

View 4 Replies View Related

Ubuntu Multimedia :: Batch Extraction Of Subtitles From Mkv Files?

Jul 16, 2011

I have recently been tasked to extract the subtitles from a lot of mkv files. Hundreds of them, maybe even more than a thousand. To do this, I modified a script I found online:

#!/bin/bash
IFS="|"
if test -z $1; then

[Code].....

So in the above example the subtitle is actually in track number one and my script would be borked for that particular file. Is there a way to integrate mkvinfo into the script and parse it to see what track should be extracted? Like, read it line-by-line and change the value of some #TRACKNO variable everytime a string like "| + Track number:" appears, and stop when a string like "| + Track type: subtitles" appears? Maybe even skip doing anything if there aren't any subtitles.

PS: I actually prefer SRT subtitles to ***. If there was some command line tool I could use to convert the resulting *** file to SRT I would be much obliged.

View 2 Replies View Related

Fedora :: Batch Converting Of PNM Files?

Aug 27, 2010

when i scan some documents they are saved as .PNM files. what I would like is JPGs.

does anybody know any good ways of batch converting pnm files to jpeg files.

View 9 Replies View Related

Programming :: Batch Process Files In VI?

May 29, 2010

I'm completely new to scripting and I'm trying to figure out how to write a script that will get a list of all the files in a directorywn through any subdirectories.When I have the list I want to o each file in VI and change the fileformat. So far all I have been able to figure out is that VI can do the batch processing and that "ls -R" gets me the recursive file list. I'm still pretty clueless on how to do the batch process with the VI editor. I think I'm supposed to use the Ex mode but I don't know how to get the list of arguments from the filelist into the editor so they can be processed. If it matters the files were all written in a Windows editor and have gotten the MS carriage returns so I want to do a :set ff=unix command on all the files without having to go into each file manually, there are over 300 files that need updated.

View 3 Replies View Related

Ubuntu :: Gimp Batch Process Multiple Files Index To B&W?

Apr 15, 2010

I scanned hundreds of pages in gray scale and would like to batch process them to B&W. You can do this using the gimp GUI. what it does is get rid of all the gray shading from reflections off the paper when scanned. So you get crisp white backgrounds with black text and diagrams. I would like to simply do this to the entire group directory at one time as it would be quite a lot of effort to open them and do them one by one.

View 3 Replies View Related

Ubuntu Multimedia :: Batch Convert Audio In Video Files?

May 8, 2010

a movie is encoded with AC3 in 6 channel audio, what I get out is all of the sounds except for voices, which in 5.1 would be sent to the center channel. What I usually do is fire up avidemux and convert the audio to mp3 stereo, as converting to a 5.1 format usually ends up with a very odd sound (like running everything through an echo chamber). What I'd like to do is run a script to batch-convert these files from AC3 to MP3. The video format may vary, but they are usually XVID. I am comfortable at the command line, but I am not well-versed in audio/video tool terms. I don't need anything extravagant, I just want something that works. Heck, even if it is done one at a time, having a shell script that I can use to simply type:

tool.sh inputfile.avi outputfile.avi

View 4 Replies View Related

Ubuntu :: Mega Batch Files To Rename - Includes Sub Folders

Oct 20, 2010

I have quite a few sound sample files totaling over 4 gigs in size with around 80 root folders and then around 34 sub folders. i have a total of 13 DVD's in the above format. how do i "change the date" on all files in one go is that possible?

View 3 Replies View Related

Ubuntu :: Commands For Batch Deleting Folders/files By Name/type?

May 18, 2011

I'm trying to clean up a few hundred thousand mp3 files and I'm dying to find a way to automate some of the mechanical tasks I keep doing. It seems like at least two of these tasks could be easily accomplished with something at the command line, but I don't have the chops/know-how to figure out how (and would really rather not trial and error with batch deleting files & folders...).

1) Delete all folders named "_MACOSX" (and all subfolders/files contained therein) -- Basically, I'd like to apply this command to a few hundred directories that may or may not contain a subfolder called "_MACOSX" that I'd really like to get rid of.

2) Delete all files named "*.m3u". -- Similar to the first, I want to automatically scan all directories and subdirectories in a given location for all instances of this file-type and delete them wherever they're found.

3) Move all files named *.txt", "*.doc", "*.pdf" to a specific location. -- Similar to the last, except instead of deleting, I'd like to just move them, so that if there is anything worth keeping, I can keep it.

View 3 Replies View Related

Fedora :: Accidentally Renamed A Batch Of Files To The Same Name?

May 26, 2010

I just did something stupid... I wanted to remove a numeric prefix from a bunch of files in a folder (EXT4 filesystem), and I ran the following Python commands to rename the files:

Code:
import os
currentdir = os.getcwd()

[code]...

View 7 Replies View Related

General :: Batch Renaming Of Files In A Directory Using Sed

Dec 11, 2010

I run a script which generated about 10k files in a directory. I just discovered that there is a bug in the script which causes some filenames to have a carriage return (presumably a '' character).

I want to run a sed command to remove the carriage return from the filenames.

Anyone knows which params to pass to sed to clean up the filenames in the manner described?

I am running on Linux (Ubuntu)

The character causing the filename to 'break up' accross multiple lines appear to be a CR (carriage return) instead of ' '. The filename is being diaplayed in thetitle of a text editor with %0D in the positions of where the file name breaks up. So I need to remove the CR chars from my filenames.

View 1 Replies View Related

Programming :: Batch Script For All Files In Folder?

Oct 9, 2010

I have a lot of pdf files and I want to convert them to a lower quality for the web. I tried to use the following command (using ghostscript): Code: gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/default -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf Is there a way to make a batch to do this for all pdf-s in a folder?

View 4 Replies View Related

Ubuntu :: Rename A List Of Files In Batch In Order To Maintain The Last Part Of Them?

Dec 1, 2010

possible to rename a list of files in batch in order to maintain the last part of them, then purge a central section and then again maintain the extension?I.E.:

Code:
file01.qwertyuiop.txt
file02.asdfghjklmnbvzxcqwertyuiop.txt

[code]....

View 7 Replies View Related

OpenSUSE Multimedia :: 11.2 - Batch Of Codecs To Work With MKV Files

Jan 25, 2010

System - openSUSE 11.2 "Emerald" KDE (with gnome base)
Player - vlc
I'm hoping to find a batch of codecs for my newly installed openSUSE OS. I have a very troublesome collection of .mkv files that took several codec packs to make them work. For a brief explanation, I had tried haali and matroska both together and they still didn't work on certain mkvs. I ended up using CCCP, but that's win only as far as I can tell. It took the latest update of CCCP to work on all of my mkvs.

View 4 Replies View Related

General :: Renaming Files In Batch With Unix RENAME?

Mar 6, 2011

I have files whose names look like this:Sim1-2_40.36.chr20_sb.foo.indel.novoalign.samSim1-2_40.36.chr20_sb.foo.indel.bwa.samWhat I want to do is to replace all indel with snp in the namesyieldingSim1-2_40.36.chr20_sb.foo.snp.novoalign.samSim1-2_40.36.chr20_sb.foo.snp.bwa.samBut why this unix command doesn't work

View 4 Replies View Related

General :: Windows - How To Batch Rename Files With A Random Name

Jun 30, 2011

I have a bunch of photos with varying names. I want to give each photo a random name(*), how do I do that? (*)I'm going to put them on a digital photo-frame that can't shuffle

View 4 Replies View Related

General :: Renaming Multiple Files In Batch Process

Feb 21, 2010

I have some random files in a folder. I want to rename all of the files in a batch process. I have a text file that contains the Currentname of all the files in the folder, as well as a text file with all of the Newname of files in the folder. I want to replace Currentnames with Newnames.

For example, here are the names of the files in the folder:
1.mp4
2.mp4
3.mp4

I have a text file with the Currentname of all the files in the folder:
1.mp4
2.mp4
3.mp4

I have a text file with the proper Newname of the file:
a.mp4
b.mp4
c.mp4

I want to rename Currentname with Newname in the folder. So when I go to the folder the Newname of the files are:
a.mp4
b.mp4
c.mp4

View 14 Replies View Related

Software :: Batch-convert A Bunch Of Old Wma Files To Ogg Vorbis?

Jan 15, 2010

I'm not asking for help here, just documenting something I just discovered. Yesterday I wanted to batch-convert a bunch of old wma files to ogg vorbis. Not wanting to go through intermediate wav files, I tried to use ffmpeg to do it in one go. I first tried using the following command (in a loop, which I won't print here).

Code:
ffmpeg -i $file -f ogg -acodec vorbis -ab 192k outputdir/$file "vorbis" turns out to be the built-in libavc implementation of the codec. In the process I discovered that the -ab value is always ignored. No matter what value you put, the output is always the default 64k (average, but of course it's vbr). You can however use the poorly-documented -aq option to set the audio quality used. The values don't correspond to the oggenc values though, being a number ranging from 10-100 (or more, I don't know what the maximum is). It's not exactly clear what number corresponds to what average bitrate, so you have to experiment. ~30 seems to give you an average-rate file, while anything above 60 is probably overkill.

Switching to the external libvorbis gave me more flexibility, although at a cost of much longer encoding times (note that ffmpeg must have been compiled with libvorbis support first).

Code:
ffmpeg -i $file -f ogg -acodec libvorbis -ab 192k outputdir/$file
ffmpeg -i $file -f ogg -acodec libvorbis -aq 6 outputdir/$file

I could use both -ab and -aq (with the numbers corresponding to the oggenc values), with no problems. ffmpeg does display some wrong values in it's output text, however. In addition, there's one more difference. The vorbis (libavc) codec provides an entry in the header of the ogg container reporting the average bitrate, but it doesn't appear to provide a similar bitrate header in the vorbis stream itself. Some programs may not report the bitrate value because of this.

libvorbis provides both headers, avoiding that problem. So to summarize, libvorbis appears to be a better codec choice than vorbis.

View 10 Replies View Related

Fedora :: A Batch Program That Reduces Size Of Jpeg Files?

Nov 11, 2009

king for a program or command line tool that ease the process of reducing size of many .jpeg files at once.I've been doing this with gimp manually by reducing jpeg quality and it's painful for 10 or 15 files to do that

View 7 Replies View Related

OpenSUSE Install :: Batch Rename Files With Special Characters?

Dec 10, 2010

I have about 300 files that need renaming, because the file system does not display the French characters properly. The dodgy letter in question has been replaced by a "question mark in a black diamond" symbol.No way of renaming, other then using mv in the Konsole has worked. Is there any way, script or program out there, that will do a batch rename?

View 9 Replies View Related

Ubuntu Multimedia :: Editing Quicktime .mov Files?

Jun 4, 2010

I created a quicktime .mov movie file in iMovie on a Mac (that is not available anymore) and I want to 1) play & 2) edit the movie. I'd be happy to use a different format if I can figure out how to change it. Has anyone else done this?

Edit: If you skip down to post #16 you'll see I discovered it actually isn't a matter of editing a .mov file, but it turns out I don't have a properly exported quicktime .mov file. Instead I have (I'm not sure but I think its iMovie ver. 4.) 1) an .iMovieProj text file that lists the cuts by frame in and frame out, 2) an .mov file that isn't the complete file I thought it was and 3) a folder of all the clips that are in Apple's Quicktime DV format. In this thread people taught me about transcoding from the Apple's Quicktime DV format to liberated formats easier to work with. Given this knowledge and since I have a list of the cuts I'm asking if people could recommend a Linux video editor that would be easy to enter the tedious frame in, frame out info so I could reassemble the video.

View 9 Replies View Related

Ubuntu :: Gedit Slow When Editing PHP Files?

Jul 10, 2010

This started a while back... but I'm not sure when. Whenever I'm editing one of my PHP files it takes 1+ seconds for it to write the letter I type. I tried it on HTML and it's perfectly fine. I tried going to .gconf/apps and deleting the gedit-2 file, but it didn't help. And I tried disabling the File Browser Pane plugin and it did nothing. And one more thing, it might just be some PHP files, because about half of mine are really slow like that, but the other half is perfectly fine.

View 1 Replies View Related

Ubuntu :: Disable Read Only Files For Editing For GRUB2?

Jan 15, 2010

I tried to follow "Configuring GRUB 2" at /etc/default/grub (file) in the instruction at
But the file is read only? How do I make it so that it can be modifiedie GRUB_DEFAULT=0 to GRUB_DEFAULT=1

View 4 Replies View Related

Ubuntu :: Scutting / Pasting / Editing And Filtering Wav Files?

May 11, 2011

if you know of a good linux-based sound editor? I'm looking at cutting, pasting, editing and filtering wav files.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved