Software :: Process Utf8 Text Of Filenames To Cp/ln?
Nov 6, 2010
I have a unicode utf8 file containing filenames. I wish to process them with very basic scripts but the unicode is an issue. A script to create symlinks to all the filenames and put them in a dir
Code:
#!/bin/bash
while read line
do
echo "${line}"
[code]...
Any special way to address the unicode filenames? The links do not come out right. I am using Mac OSX GNU bash 3.2.48.
View 1 Replies
ADVERTISEMENT
Jul 11, 2010
I know this is maybe a basic question while can UTF8 charset include all the language around the world?if it can ,then what is the difference between en_US.UTF8 and zh_CN.UTF8? what is the difference between en_US.UTF8 and zh_CN.UTF8 in the centos locale setting?
View 2 Replies
View Related
Aug 10, 2009
I have a form that have a browse button, convert to ASCII button, cancel button and text area... all i have to do is...? when i click the browse button and choose a folder that have a utf8.txt the file that have utf8 will appear or display into the text area... what i can i do to make this..?
View 6 Replies
View Related
Dec 1, 2009
I got a filename called like this:
beach---------20090808-110000.ogg
beach---------20090808-120000.ogg
It's like this:
name----------YYYYMMDD-hhmmss.ogg
Now Im splitting these hourly files into 1 minute files. I get then this output sofar properly:
beach---------20090808-110000_00.mp3
beach---------20090808-110000_01.mp3
beach---------20090808-110000_02.mp3
and so on....
the 00, 01, 02 and up are the minutes it has splitted it. Now I need a script, after it did this, to rename the file names into this:
beach---------20090808-110000.mp3
beach---------20090808-110100.mp3
beach---------20090808-110200.mp3
beach---------20090808-110300.mp3
View 4 Replies
View Related
Feb 6, 2011
im trying to output a list of running processes via a shell script. At the moment i got this which outputs the processes to a text file called out.
echo $(ps aux) >>out
The problem is though, the processes are all just one big block of text which makes it hard to read. Does anyone know how to sort the output to a text file so that it prints to the text file at 1 process per line? I know its probably simple but im very new to linux.
View 5 Replies
View Related
Mar 8, 2011
Still on lucid, I am trying to configure a decent console based boot process. I had to figure out some startup script errors and was upset what I had to fix just to see all messages properly. For me, having a 'talking' OS in favour of a Colourful-but-Black-Box-Liar without even one single record of a good logging policy is just one, but big plus of running Linux - please stop to windooze Linux
What I want:
- add 'text' to the kernel parameters (fixed or grub editor)
- have all messages issued during the boot process on the console
[code]...
View 8 Replies
View Related
Jun 4, 2009
This doesnt really bother me at all, Im more curious than anything but- When I first installed fedora 9, during startup there was a bootsplash during the boot process. When the kernal was updated, the bootsplash was replaced with scrolling text (I have done several kernal updates, it was after the first one the scrolling text happened). Is there a way of reverting back to the bootsplash or is it more trouble than what its worth?
View 5 Replies
View Related
Jun 26, 2010
I've got a command in a shell script:
Code:
php ./script.php > output.txt & echo $! > script.pid
This results in my script launching as a background process with output routed to
[code]...
View 3 Replies
View Related
Aug 20, 2010
convert latin1 to utf8 I have a problem at convert latin1 to utf8. There are so many unreadable characters at latin1 db, and these characters could not convert into utf8 also. So I could not import to new utf8 db. Is it possible to convert these character to utf8 to import to utf8 db?
View 8 Replies
View Related
May 13, 2010
I've just installed Xubuntu last night on a spare drive because I really wanted to try it out. Install and initial setup (upgrades, extras and so on) worked like a charm, then I got to burn an audio cd with Brasero starting from some mp3s floating around my external media drive. The burn process itself went good and the CD is fully readable, but I notice that CD-text is missing.
So, when I added files to the main window of Brasero id3 tags were there (I've seen them, plus I set each and every of them via Easytag before putting the files in my external media drive so I'm sure of that), but once the CD was finished there was no CD-text at all. Maybe I just have to download some additional packages which aren't included in Brasero or have missed some menu item about CD-text?
View 4 Replies
View Related
May 9, 2010
I have since quite a long time the problem that files using special characters in their filenames are not displayed in various applications. In console or Thunar I have a special "white questionmark in a rhombus" sign for every special character. It is an XFS partition. I have read a few times that this can be solved by using the iocharset=utf8 option in /etc/fstab, but this option is not recognized and the mount inhibited.
I used other options: utf8 as well as nls=utf8, but that was not recognized neither. What option do I need to specify to enable utf8 for XFS ? Samba works. That means I can play an MP3 file in Windows exported from the XFS disk using Samba, although the special character is then shown as "_" in Windows..
View 4 Replies
View Related
Jul 9, 2010
My terminal text is unreadable. Where as the default output would usually fill half the screen it probably fills around 1/20th now. Basically it looks like the text is 1px in size. I was about to install a graphics driver (nvidia) but doh I can't see what I'm typing... I can't start gdm even after memorising the process of logging in and starting gdm (I think gdm is failing to start anyway) I'm using the default xorg.conf provided with the LiveCD;
[Code]....
View 2 Replies
View Related
Sep 11, 2010
I installed Lucid Lynx on my laptop a couple of months ago and for the most part everything was working fine. However, just recently the computer doesn't seem to be booting up at all. I start up the machine and then a black screen appears with the text: init: ureadahead main process (306) terminated with status 5 the (#) is different in some boot-ups
And the computer just hangs there. typing anything doesn't seem to help at all. I press enter and a new line just appears. I've left it there for hours and still no login screen.
View 9 Replies
View Related
Oct 30, 2009
I have some files which are UTF8 and have first line as blank. It shows as data file by "file" command. If I remove the blank line, it shows it as UTF8 text file. I have to choose displayable text files from many files, so I used "file" command.
Note: I do not have permission to attach file. So not able to attach sample file here.
View 5 Replies
View Related
Jul 21, 2010
Would someone please let me know how to change the default locale in Ubuntu 10.04. In System/Administration/Language Support both Language and Text have been set to English (Denmark).
/etc/default/locale entry is LANG="en_DK.UTF-8".
/var/lib/locales/supported.d/locale entry is en_DK.UTF-8.
Yet locale command lists LANG=en_US.utf8, and all LC_ entries as "en_US.utf8". The machine has been reset many a time.
View 7 Replies
View Related
Nov 11, 2010
I've some file with .sh extensions that runs some softwares.Now,how do I stop running that filesI know we run the command ./start_tomcat.sh to start the apache.Is there any command to stop that file/process or is it just kill the process to stop the process
View 2 Replies
View Related
Aug 20, 2010
I try to call fopen with path like
Code: char *tmpbuf = (char*) malloc(BUFSIZE);
strcpy(tmpbuf, "/home/schmidt/images/4414b-22.jpg");
FILE *fd = fopen(tmpbuf, "rb"); or
[code]....
View 3 Replies
View Related
May 5, 2010
I am currently working on a script which makes regular backups of some data I have, and I would like to name the compressed TAR files with the date it they were created, in short I want to rename a file:
OriginalName.tar.gz --> AnotherName-30-05-2010.tar.gz
Is there an easy way I can accomplish that? How?
View 14 Replies
View Related
Jun 5, 2010
I want to travel for a while and need winfdows 7 for that. I want to copy my Linux Thunderbird profile with many years of emails across to windows7 then back to Linux when I'm finished with win 7. I copy the "profiles" folder at ~/.thunderbird/profiles folder over to win 7. Being thorough, I then run the windows app "chkdsk" to see if windows dislikes what I did in a filesystem context. Chkdsk finds three illegal filenames in the copied folder. The filenames contain colons.
They are as follows:
a directory named "mailbox:"
a directory named "mailbox:.sdb"
a file named "mailbox:.msf"
I try to manipulate them in windows (e.g. rename, delete, open, whatever) and get error messages about invalid names. It sounds to me like the items really are corrupt. So now I have a partially corrupted Thunderbird that works in Linux and doesn't work in windows and has years of emails in it. How do I straighten out Thunderbird in Linux? (I'll worry about windows later)
View 9 Replies
View Related
Oct 3, 2010
list filenames one-per-line, in BASH without including directories. I think he was either wrong or making that up. There is a way to list just the names and one per line but there aren't any arguments I can find that can be used to exclude directories.
Code:
IFS=', '; files=`ls -m`; for i in $files; do if [ -f $i ]; then echo $i; fi; done That does only use ls as a command, however he said his GSI thought he could do it without all that...
Quote:
ricky@ricky-desktop:~$ ls -l
total 1376
drwxr-xr-x 2 ricky ricky 4096 2010-10-02 22:17 Azureus Downloads
drwxr-xr-x 4 ricky ricky 4096 2010-10-02 22:16 Desktop
[code]....
View 6 Replies
View Related
Oct 1, 2009
I am using Red hat linux .. i just wanted to know, is it possible to arrange or sort filenames numerically?i have saved several files with the follwing names : 1.png, 2.png, 3.png, 4.png ...... 11.png 12.png. and so on.... but the containing folder sorts this alphabetically in the following manner 11,12,13...... 1, 2, 3, and so on...
View 6 Replies
View Related
Nov 30, 2010
if i have a dir with several mp3's files:
example:
[root@xxx]ls -l
-rwxr-xr-x 1 web2 client1 6222573 Nov 26 17:34 01 Artist1 - Song1.mp3
-rwxr-xr-x 1 web2 client1 4989384 Nov 26 17:34 02 Artist2 - Song2.mp3
-rwxr-xr-x 1 web2 client1 6987438 Nov 26 17:36 03 Artist3 - Song3.mp3
and i need to update the id3 tag of all files with the command:
/usr/bin/id3v2 -a "Artist1" -t "Song1" Artist1 - Song1.mp3
how i do a loop to read the filename and execute the id3v2 command for each file, as i have filenames with spaces and special chars ex:"".
View 1 Replies
View Related
Apr 3, 2011
The (WD 320GB) drive has a single ext3 FS on it. It has had some problems in the past, but all were fixed with fsck -y. Now there are several directories with duplicate filenames. The files with duplicated names are hard links of each other, but the names are identical. I've run several diagnostics over them, looking for, eg, non-printing characters in the name, but they are completely identical. Here are some examples:
[code]....
These are (obviously) from a directory of mp3s, but similar duplications occur throughout the fs - there are several thousand files affected. Some of the diagnostics were programmes I wrote that accessed the directory itself (through the dirent structure). I always thought duplicate filenames in the same directory were impossible in unix/linux; this appears to prove me wrong. Am I missing something? (Kernel version 2.4.20 with xfs extensions. The installation was originally Red Hat 7, but I've changed almost everything, so it's probably more accurate to call it a custom distro.)
View 7 Replies
View Related
Jun 8, 2010
I have filenames like such: abc (e).doc And I want to rename them to abc.doc I have a directory full of files names like this. How can i do this using the sed command? I have looked online for about 2-3 hours now and am frustrated that I can't find an answer.
View 11 Replies
View Related
Jan 3, 2009
I have a large number of files, all of them named /*/*.xyz I need to match them to potential files name /*/*.abc I have tried find -name *xyz |awk '// {print '$NF'}' | awk '{print $NF }' but the result has the full path I just need the filename without the extention, and without the full path.
View 5 Replies
View Related
Jan 30, 2011
I'm using Ubuntu 10.04 and the default system locale is:
Code:
LANG=en_US.utf8
LANGUAGE=en_US:en
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
[code]....
I want to change them to "en_US.UTF-8", but I after I changed "/etc/environment" and "/etc/default/locale", nothing happens. Where is this string defined?
View 1 Replies
View Related
May 22, 2010
I'm working on changing some badly named files, lots of them. I have a little script I use to change uppercase to lowercase:
[Code]....
Bear in mind all these files have appropriate numbers in the front of each filename. I need help to change ONLY the first letter after each underscore to an uppercase letter. I'm sure this can be done but I've done so much searching in forums and with Google/linux until I'm scrambled.
View 2 Replies
View Related
Jan 29, 2011
I am trying to synchronize the content of the directory my_dir/ from /home to /backup. This directory contains a file which name has a double quote in it, such as to"to. Here is my rsync command:
rsync -Cazh /home/my_dir/ /backup/my_dir/
And I get the following message:
rsync: mkstemp "/backup/my_dir/.to"to.d93PZr" failed: Invalid argument (22)
For info, rsync works well when the synchronized filenames contain single quote, parenthesis and space. Thus, why is it bugging with a double quote?
View 3 Replies
View Related
Mar 18, 2010
I'm trying to access a file and copy it to another location, but the drive name has a space. I'd like to rename that too.
I know that a % sign is sometimes used, but this didn't seem to work in terminal...
View 9 Replies
View Related
Aug 18, 2010
I have just switched to banshee as my media player and imported my films and music. Problem is, the video list is quite hard to read because all the video files have spaces in their names which are replaced by % signs, numbers and letters. I'm wondering if there is a command I can use in the directory that will automatically remove all the spaces from the filenames or better still, replace the spaces with hyphens or underscores?
View 6 Replies
View Related