OpenSUSE :: Renaming Long Filenames - Rename Command Not Working

Aug 9, 2010

I misused wildcards like a moron, in the rename command. I repeated names twice in a 3gig folder, which I cannot afford to delete. Now, the rename command is not working, and it says the file name is too long. I am a competent programmer in Java, PHP, and I know basic C.

View 7 Replies


ADVERTISEMENT

Software :: Bash - Rename Filenames With Corresponding Filenames?

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

General :: Rename Some Files To New Filenames In Ascending Format?

Dec 8, 2010

Fox example.I want to rename the files below like this: test1.png、test2.png.....

-rw-rw-r--. 1 test test 20448 2010-12-08 20:11 2010-12-08-212440_1440x900_scrot.png
-rw-rw-r--. 1 test test 29799 2010-12-08 21:25 2010-12-08-212526_369x331_scrot.png
-rw-rw-r--. 1 test test 34167 2010-12-08 23:54 2010-12-08-235424_580x328_scrot.png
-rw-rw-r--. 1 test test 155202 2010-12-08 23:55 2010-12-08-235511_1440x900_scrot.png

View 2 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

Ubuntu :: Unity Does Not Display Long Filenames On DVD?

May 14, 2011

I made a few data DVD's in OS/X 10.6.7 on my Macbook, using Burn URL...with the option "burn for PC and Mac".To my surprise when I load the DVD's in my ubuntu netbook, Unity displays the filenames abbreviated and renamed [COLOR="Navy"][U]. Some of the original filenames are similar, but unity restricts the filenames to about 22 ~ 50 characters.As such, I can't get a true (correct) file listing of the DVD's contents in Natty. I don't recall this happening with Karmic. Is this some problem with Nautilus?

FWIW, these were done using double layer 8.5 DVD-R disks. However, I did NOT select overburning, so the contents fit well into the allowed capacity, to permit inclusion of any hidden files.As soon as I load the disks on my Mac, I am able to see the full filename.

View 7 Replies View Related

Software :: Create Iso Images With Long Filenames?

Jun 30, 2010

I have an old game, and I want to back up the disk because its old and a little scratched. I tried to use dd to record the disk, but it crashes with an "i/o error", which is strange because I can read the files on the cd without any problem.Luckily, I found all of the files from the disk already backed up on my hard drive. The problem is, when I create an iso image using mkisofs it abbreviates all of the filenames... which makes the game not... run. So how do I create an iso image with long filenames?

View 7 Replies View Related

Ubuntu :: Show Long Filenames On Xfce Desktop?

Mar 21, 2010

I have recently been exploring the xfce wm, and like it a lot, except one big thing: I have a number of files and links on my desktop, but by default only the first part of the file name is shown unless the icon/file is selected

View 3 Replies View Related

Ubuntu :: WinXP Truncates Long Filenames Saved On Ubu CD?

Apr 1, 2011

I have created a CD-Rom with pictures with long file names, up to 120 characters, using Brasero disk burner supplied with Ubu 10.10. I need Win XP to accept the long file names from the CD made in Ubuntu without truncating them. The WinXP HD is formatted NTFS.1) When I look at the CD made in Ubuntu with long file names,in Win XP, it shows the file names only in the 8.3 (DOS) format. When I open in Irfanview, the file names are also truncated. 2) When I email the pictures (with long file names) from Ubuntu and accept in XP, the photo file names (long) are seen unaltered. They can be stored, managed and used by viewing applications with the long file names.note: in XP, a short file name for a photo can be made to be very long, say 150 characters, and there seems to be no problem in manipulating it or viewing it

View 9 Replies View Related

OpenSUSE :: What's The Zypper Command To Rename A Repository Name

Oct 16, 2010

What's the zypper command to rename a repository name? Not yast.

View 6 Replies View Related

Ubuntu :: Command To Remove Spaces From Filenames?

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

General :: What's The Command For Renaming Files

Jun 8, 2010

What's the command for renaming files? I thought it was "mv"--I typed "info" and read

Quote:

* mv: (coreutils)mv invocation. Rename files. So, desiring to give a .JPG extension to a jpeg file that had no extension (because I dug it out of my Firefox cache), I typed

Quote:

mv '/home/josh/Desktop/Natalie pictures/DEC8FFA5d01' *.jpg

That didn't rename the file; it made the file disappear from its folder. What did I do wrong?

View 6 Replies View Related

Ubuntu :: Find Command For Multiple Filenames Stored In List?

May 3, 2011

I searched the forum and didn't find any threads that seemed to answer this question. I have a large directory of files, and dozens of subdirectories on a remote box I have ssh access to. I need a subset of these files copied to another folder.

Example:

directories
parent
-sub1
-sub2
-sub3

files I want (the files are all the same format, but some have extensions and others dont)
1100
1215
1322
1442
1500
1512

Unfortunately, I need a lot of files, and plan to do this on a regular basis (the files I need will be different each time) I was thinking it would be nice to be able to put the filenames in a text file (one filename per line) and use the find command to copy the files (I don't necessarily know which subdirectory the file will be in).

[Code]...

View 2 Replies View Related

General :: Renaming A Bunch Of Files Using For-structure And The Mv Command?

Feb 3, 2010

Basically I need to rename a bunch of .doc files using the for-structure and the mv command (w/ wildcards) in bash. I guess this would be a bit easier if I'd use the rename command, but since this is a school assignment of sorts I need to use for & mv. The .doc files are named "1filename.doc", "2filename.doc" etc. And I've got to rename them to "aaa_1filename.doc", "aaa_2filename.doc", "aaa_3filename.doc" and so on. Tried to dabble quite a bit with the for and mv commands, basically just got a bunch of errors. Every damn time. For 2 hours. The most common error was "mv: missing destination file operand after ..."

View 6 Replies View Related

General :: Copying And Renaming Multiple Files In Working Dir

Apr 8, 2010

How can I copy multiple files, each with a slightly different name from the SOURCE in the same directory?

Example: '/home/junk' contains A.txt, B.txt

I want to copy /home/junk/A.txt to /home/junk/A1.txt and /home/junk/B.txt to /home/junk/B1.txt using a single command.

View 11 Replies View Related

General :: Ssh Command To Rename Files?

Dec 22, 2009

What is the ssh commands to rename a group of files?

I need to rename:
avatar_01.jpg
avatar_02.jpg

[code]....

View 5 Replies View Related

Ubuntu :: Using The Rename Command With Ascending Numbers ?

Mar 14, 2011

In a moment of madness I decided to reorganise my mp3 player. I am putting everything into one folder (called 'all'), but first I am renaming the files to the following format:

artist ## songtitle

where ## is a number like 01, 02. This has been pretty straightforward with the songs that already started with a number, because then I could just

rename 's/(dd)/artist $1/' *.mp3

but I have a problem with those tracks that don't already have the track-numbers at the beginning. I suppose what I am asking is: can I turn

All Along the Watchtower.mp3
Purple Haze.mp3
Hey Joe.mp3

into

01 All Along the Watchtower.mp3
02 Purple Haze.mp3
03 Hey Joe.mp3

View 1 Replies View Related

General :: Rename Command Using Random Variables?

Apr 14, 2010

I'm trying to clean up some files and I've been using the rename command as its the easiest way I've found to do it. One problem I've found is that on a couple of batches of files they have a set random numbers on them which I need to remove.

Only problem is I can't find a way for rename to "lock" onto those numbers to remove them. The file name structure is something like this:

file name[random numbers].extension

There are brackets around the numbers as well which I'm not sure will help or not.

View 1 Replies View Related

General :: Rename Command And Wild Cards?

Aug 27, 2009

I am using hte rename command to clean up a bunch of files. I know you should be able to use regex with the rename command, but it seems to ignore them.Most of the time I am using something like:rename 'something' 'some' *Now lets say I have files named:

someFile(2009).ext
otherFile(2008).ext
File(2006).ext

[code]...

View 9 Replies View Related

Fedora Security :: Rename Files With Command Line?

Apr 30, 2009

I have a bunch of mislabeled files among other things but I'll start with this first. as using the command line to fix this issue.

View 5 Replies View Related

General :: Rename List Of Files From Command Prompt?

Feb 18, 2010

Suppose I have the following files:

1132_1_fr.mp3
1132_2_fr.mp3
1132_3_fr.mp3
.
.
.
1132_3_fr.mp3

[Code].....

So I want to add PD_ to those who dont have this preindex and get rid of _fr.

basically rename files in a same directory!!

View 6 Replies View Related

OpenSUSE :: Fix Invalid Filenames In Thunderbird

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

Ubuntu :: Command / Script To Rename Files In Datetime Order?

Jun 1, 2010

I'm trying to rename all files in a folder as such:

1.jpg
2.jpg
3.jpg

Renaming them is no problem, the problem I have is, they need to be in order of the datetime that they were taken, so that the 1.jpg would be the oldest file there. The difference in filetimes is going to be very small, around 3 or 4 tenths of a second.

The reason I need to do this is that I have another script (not quite finished yet), that takes the next three files in a loop and applies qtpfsgui to them to output an HDR image to another folder, then move on to 4,5 & 6, and: repeat.

View 9 Replies View Related

Ubuntu :: Correct Usage Of Perl Expression In 'rename'-shell Command

Jan 21, 2011

I want to rename some files in one directory and found the command 'rename' most appropriate.

Changing the file extension is easy since there are lot of examples for this.

But now I want to rename my files like this:

'somePrefix_blablabla.ext' --> '0_blablabla.ext'
'somePrefix_blablablablabla.ext' --> '0_blablablablabla.ext'

I DON'T want an incrementation, just the leading prefix '0_'

correct perl expression syntax for this?

View 2 Replies View Related

General :: Find Command Taking Too Long On Ubuntu 10.10

Aug 11, 2011

The find command is taking too long on my machine to complete. When I use time command, I find that sys time and user time are too small as compared to real time. Is my find process not getting scheduled properly?

I interrupted the neverending find command and got the following statistics:

Real time : 5min
Sys time : 1.1 sec
User time : 3 sec

I was running

find / -name ls 2>/dev/null

View 2 Replies View Related

General :: Breaking Long Command Into Lines In Crontab

Oct 14, 2010

How to break strings of command into multi-lines in crontab? e.g.
Code:
# the following is a very long a gruesome command to be run at 09:59 Monday to Friday.
59 09 * * 1-5 source $HOME/some-definitions; sh /usr/local/my/long/name/application/bin/hello $(date +\%Y\%m\%d) >>/var/log/my/long/name/application/log/hello.log

View 2 Replies View Related

Ubuntu :: Renaming Files In Bulk - "mv" Command Is Failing

Jun 23, 2010

I have following files:

# ls -1 *.mp3
Megadeth - Killing Is My Business...And Business Is Good! - 01 - Last Rites-Loved To Death.mp3
Megadeth - Killing Is My Business...And Business Is Good! - 02 - Killing Is My Business...And Business Is Good.mp3
Megadeth - Killing Is My Business...And Business Is Good! - 03 - Skull Beneath The Skin.mp3
[Code]....

i want to rename it to:

01 - Last Rites-Loved To Death.mp3
02 - Killing Is My Business...And Business Is Good.mp3
03 - Skull Beneath The Skin.mp3
04 - These Boots.mp3
05 - Rattlehead.mp3
06 - Chosen Ones.mp3
07 - Looking Down The Cross.mp3
08 - Mechanix.mp3

here is my RnD so far:

[Code]....

so it does show that i can run "mv" and reame the files the way i want. BUT...there are lots of spaces in each file, and hence when I append "|sh" to above command to have him actually rename the files, my "mv" command is failing. BTW, I tried exploring perl "rename" command, but I could not understand it's regex.

View 3 Replies View Related

General :: Bulk File Rename Not Working As Expected?

Jun 25, 2011

Y want to rename a bunch of files and directories to remove the space on the names, easy enough right?

Code:
for source in $(find ./); do target=$(echo "$source"|sed -e 's/ /_/g'); mv -f "$source" $target; done

Well, I thought that should have work but the problem is that $source comes up broken, when I run it with echo instead of mv I get the echo with broken names.

Code:
In this case "$source"="This is the file I want to rename"
$ echo "$source"

[Code]....

View 3 Replies View Related

OpenSUSE :: Make Command Not Working

Feb 27, 2011

i found the make command not working in the gnome terminal of opensuselinux 11.3

View 3 Replies View Related

Ubuntu :: File System Check Failed A Long Is Being Saved /var/long/fsck/checkfs

Jan 9, 2010

just start Ubuntu 9.04 said: File system chek failed a long is beging saved /var/long/fsck/checkfs if that location is writable Please repair the file systmen manually A maintenance shell will now be started Ctr+ D terminate this shell and resume system boot. Give root password for maintenance or type Control +D to continue. I did Ctr+D , and after login said , that can not find /home. I starte with the live cd:

[Code]....

View 9 Replies View Related

Ubuntu :: Command Line Mail Taking Too Long To Send; Unable To Qualify Own Domain Name?

Feb 5, 2010

I'm having a problem with my mail. When I send mail, it takes a long time for the send to complete.In the below, datestamp is just a simple script to put in a no-white-space date/time stamp.

Code:
$ datestamp ; mail woodnt; datestamp
02-05-10@193844

[code]....

View 9 Replies View Related







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