Ubuntu :: Encoding Conversion On Multiple Files?
Jun 8, 2011
I'm trying to convert the encoding of multiple files in a directory and I try to do it as follows.
Code:
#/bin/bash
find . -type f -name *.txt -exec iconv -f GBK -t utf-8 "{}" -o "{}.utf8" ;
find . -type f -name *.utf8 -exec mv -f "{}" `echo "{}" | sed 's/.utf8//'` ;
The first command goes well by generating utf8 files from all txt files, but the second command fails with error message. Could someone enlighten me about the mistake in the command and share a workable solution?
View 2 Replies
ADVERTISEMENT
Oct 29, 2010
I have a couple of files which are categorized as .php, is there a way of converting them into something readable in UBUNTU.
View 9 Replies
View Related
Feb 21, 2010
Is there any software out there to convert *.mov files (from a digital camera) to *.mpg files, of which way I have to go?
View 2 Replies
View Related
Apr 16, 2010
Having downloaded alien for the first time, and attempted to use it to convert an rpm file to a deb file (specifically asymptote located at [URL]), instead I found that it failed to do so. I've searched on google for a long while, and found that while this appears to be a problem encountered by multiple people, but there are no workarounds posted anywhere. Here is the error message that I am getting:
Unpacking of 'asymptote-1.92-1.fc12.i686.rpm' failed at /usr/share/perl5/Alien/Package/Rpm.pm line 153.
I've tried running the following variants of commands and all fail with the same error:
sudo alien --to-deb --scripts --keep-version asymptote-1.92-1.fc12.i686.rpm
sudo alien -d asymptote-1.92-1.fc12.i686.rpm
sudo alien -k asymptote-1.92-1.fc12.i686.rpm
The errors reported by others are on a variety of packages, so it seems to me that it is an bug with alien itself and not with the package, but that is only a guess.
And related to this, Alien is version 8.69, perl 5.8.8 and ubuntu is 8.04.
View 3 Replies
View Related
Jan 15, 2010
I have been having a problem with K9 Copy whenever I try to convert a DVD to MPEG files using the method without encoding, but for some reason lately it seems to be splitting each episode into about 6 or 7 pieces instead of just one. I never usually have a problem with this, but for some reason it seems to be doing this whenever I try to rip something. On a side note, I am running on Obuntu 9.10 and have K9Copy version 2.3.0 installed. I have tried installing several other versions, but it does the same thing with each.
View 9 Replies
View Related
Aug 2, 2011
How is it possible to add a new hpfs disk with utf16 encoding files system? I would like to add my windows 7 device at the boot beginning automaticly? I could mount in gnome with nautilus with a one mouse click.
Code:
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
[Code].....
View 3 Replies
View Related
Jun 6, 2011
I have some downloaded files of radio programme from BBC which are .aac. I have never come across this type before. Googled it so now I am a bit wiser and VLC seems to play them without problem but they are not accepted by my upnp client devices which are happier with flac or mp3. I would prefer flac but what is the preferred conversion software.
View 3 Replies
View Related
Jan 15, 2010
I have been having a problem with K9 Copy whenever I try to convert a DVD to MPEG files using the method without encoding, but for some reason lately it seems to be splitting each episode I am trying to rip into about 6 or 7 pieces instead of just one.
I never usually have a problem with this, but for some reason it seems to be doing this whenever I try to rip something. I am running on Obuntu 9.10 and have K9Copy version 2.3.0 installed. I have tried installing several other versions, but it does the same thing with each.
View 6 Replies
View Related
Jun 7, 2011
I am only using the 128 character set defined in the original ANSI standard. But as a whole how are the files implmeneted differently. I am not concerned with the display, i.e. if a tab is displayed with 6 or 8 characters but the actual internal representation in memory
One differnce I've hear is the use of (Windows) vs. for line termination (Linux).
View 3 Replies
View Related
Sep 3, 2010
how to search in files text that is one-byte encoding? places - search for files in gnome in ubuntu searches only utf-8 text.i know one way: install wine and total commander, then search with it. what are better ways?[URL]
View 4 Replies
View Related
Oct 27, 2009
Is there an app or find parameter that can search for video files using a specific (DivX for example) encoding? On Windows, you can do this, so I was hoping there would be some way on Linux whether it's with find or another app. I want to find all (*.avi OR *.divx) on my file system with the DiVX fourcc tag (i think that's what its called)
View 4 Replies
View Related
Feb 2, 2011
Is there any Linux tool that will take a SWF file and output some kind of video format? Note that I don't want a tool which will re-encode an embedded FLV or MP4, I want to take a standard Flash movie and render it as a video.I found a reference to dump-gnash in the GNU Manual, but having installed the gnash package on Fedora I don't have that command.
View 1 Replies
View Related
Jan 16, 2011
I've multiple jpegs uploaded form IP cam via FTP, I use mencoder to periodically pack them into single avi file, problem is that sometimes one or two jpegs submitted by cam are broken, and this make mencoder exit, without producing movie
View 1 Replies
View Related
Jun 14, 2011
have a large amount of 7z files in multiple folders which I need to extract.The directory structure is like this:
/main-folder/
multiple subfolders/
1 or more 7z files per subfolder
I would like to get the output of this action in one separate folder, all together in 1 folder.How can I do this?
View 7 Replies
View Related
Aug 20, 2011
I often use the rpl command to make changes to multiple html files at once. For example:
rpl -R '<br />' '<br /><br />' mydirectory However, I haven't been able to figure out how to change multiple lines. For example, let's say I want to change all occurrences of :
<br />
<br />
to:
<br />
I've tried
rpl -R '<br />
<br />' '<br />' mydirectory
but that didn't work. how to do this with rpl or some other way?
View 9 Replies
View Related
Aug 23, 2010
I am to rename all the files within a directory (which contains multiple subdirectories) recursively without invalid characters.
I tried the coding posted above.
find . -type f -printf '%p
' | while read file; do
oldfile=$(basename "$file")
newfile=$(echo "$oldfile" | sed 's/[^A-Za-z0-9_.]/_/g')
if [ ! "$newfile" == "$oldfile" ]; then
echo mv "$file" "${file%$oldfile}$newfile"
code....
but I get an error on both of them stating "find: bad option -printf find: [-H | -L] path-list predicate-list"
View 9 Replies
View Related
May 10, 2010
I wish to install ubuntu 10.04 on my desktop PC, but before I do that I need to back up my HDD. Due to alot of filenames show as having a wrong encoding, ubuntu will not let me copy the files. We are talking hundres of files in many sub folders.
The way I see it, I either have to:
1. have ubuntu back up my files in annother way (and not simply dragging and dropping as I have tried)
2.use some sort of tool to convert/fix the filenames so I wil then be able to back them up.
I've tried the following using convmv as mentioned here, but with no succes.
Code:
convmv -r --notest -f windows-1255 -t UTF-8 *
I'm using a live cd, thus the files are not located in my home folder, but on a separate parrtition.
View 9 Replies
View Related
Jan 23, 2011
I've recently switched from Windows to Ubuntu Studio (11.04), and my only remaining problem is the encoding of the file names in my music collection. The music files are on a D-Link DNS-323 NAS, and were put there in Windows. The files with accented characters look like this in the terminal:
04 V? ?kur? ?.m4a
and they look like this in Nautilus: This is the relevant line in my /etc/fstab:
Code:
//192.168.0.6/Volume_1 /media/dns_323 cifs iocharset=utf8,username=admin,password=speaker,file_mode=0777,dir_mode=0777 0 0
Many people seem to have solved this problem by adding the iocharset part, but it isn't working for me. I also tried nls=utf8.I've looked into using convmv to change the file name encoding, but I'm having trouble with that, too. I've read that Windows uses UTF-16, but when I try:[code].....I only half understand any of what I've tried to do,
View 5 Replies
View Related
Aug 25, 2009
How can you create a script to move or copy files from a main directory into multiple directories below the main directory.
View 7 Replies
View Related
Feb 20, 2010
how do i move multiple files at once using the command line?
View 4 Replies
View Related
Mar 4, 2010
I am converting .tif images to .eps and am trying to do a bunch of them at once. I have tried
Code:
convert *.tif *.eps
but this doesn't do it.
View 2 Replies
View Related
Jun 12, 2010
I often have a need for printing multiple files. Therefore I found a Nautilus script that would allow me to do this. However often many of the files a Microsoft Office doc-files. Since I do not really want to convert every single file (as that would defeat the purpose of bundle printing) I tried to figure out how to print these, as the commands "lpr" og "cupsdoprint" cannot process these. I have found a printing command using the CLI part of OpenOffice, but I cannot get it to do multiple selected files.
The command is:
Code:
soffice -p "/path/of/file.doc"
How can I use this in a Nautilus Script so I can print multiple files?
View 1 Replies
View Related
Jul 19, 2010
I would like to have multiple php.ini files for multiple sites.
I've a production site (word wide available) and a test site (available to some selected IP-addresses). I would like to set some different PHP settings for the test site, for example, 'error_reporting' and 'display_errors'.
Is this possible? I'm not looking for some CGI hack, unless it wouldn't work any other way.
View 2 Replies
View Related
Aug 6, 2010
I made some files belong to root, so that my sister couldn't read them while she was staying with me, there were about 40 files altogether but I did them all at once by change the permissions of the folder and clicking "apply Permissions to enclosed files" but now I want to change them back to belonging to my user account so Opened a gksudo nautilus windows and I went on folder properties and set the permissions to [user] and clicked apply to enclosed files, but it only did the folder. I tried selecting all the files and changing them all at once that way but it won't let me, how can I make the files belong to me again, other then one by one? I dont know how to use the CLI that much.
View 4 Replies
View Related
Sep 11, 2010
find a software similiar to [URL]whit gui for ubuntu ? or some kind of nautilus script ?
View 9 Replies
View Related
Feb 13, 2010
I pushed the browse button and selected the first picture, but I was unable to select all of the pictures.
This happened again on an email attempt to do the same thing.
In the gnome environment, I am able to select the first then hold down shift, and select the last pic and all the ones in between will be selected. I expected this behavior when selecting for upload, but it didn't happen. I had to select each one, one at a time and upload each one.
I tried making a folder to upload the whole folder and that would not select at all.
View 8 Replies
View Related
Mar 8, 2010
I would like to create AAC files using NeroAAC.I have directories of wav files I need to encode and I cannot figure out how to do this with the neroAacEnc command on the command line. The program will not accept neroAacEnc -if *.wav -of *.aac as a valid command, though FAAC, LAME and OggEnc will accept similar commands.I lack the coding skills to write a proper script for it. I'd just like to be able to type in a command and have an entire directory converted from wavs to aacs with the Nero codec. Is this possible? If not, can it be programmed? How?
View 3 Replies
View Related
Apr 16, 2010
I have a directory tree with lots of folders. I need to gather all files of same type, say .txt, and place them in a different folder all by themselves.
I know I can use the mv command, but it won't let me go through all the subdirectories of my folder, just the current one. How can I search through all subdirectories for all .txts or whatever and move them to a folder of my choosing?
View 2 Replies
View Related
Sep 10, 2010
How I could rename multiple jpg files. Say I copied IMG0001.JPG until IMG0134.JPG from my camera, and want to rename IMG0001 until IMG0064.JPG to 'party01.JPG' untill 'party64.JPG', etc. In windows there was a stupid wizard to rename files when you copied them onto your HD from a camera. Is there any good way to do something similar in ubuntu?
View 1 Replies
View Related
Nov 12, 2010
I have a folder full of image files. They are large files and they only need to be large icon size...manybe 2 inches wide. Is there a way to convert them without editing each file individually?
View 6 Replies
View Related