Debian :: Can't Rename A File Starting With A Space
Feb 22, 2010
I've tried "rename" off the right context menu in XFE (ver. 1.32.1)
I've tried Krename.
I've tried quoting;
$ mv ' Outlander - 2009.avi' 'Outlander - 2009.avi'
mv: cannot stat ` Outlander - 2009.avi': No such file or directory
I've tried escaping;
$ mv Outlander - 2009.avi Outlander - 2009.avi
mv: cannot stat ` Outlander - 2009.avi': No such file or directory
I've tried forgetting about it & hoping it will go away...
GNU bash, version 4.1.0
Debian Squeeze with 2.6.32-trunk-686
View 14 Replies
ADVERTISEMENT
Feb 28, 2010
How to rename folder which contain space in foldername
Path : /root/Documents/untitled folder
I want to replace space with undersope how to do that
Output : /root/Documents/untitled_folder
through terminal any idea ?
View 9 Replies
View Related
May 11, 2010
I used a script that renamed my file eg 'echo webutil.olb | tr [A-Z] [a-z]' i wanted to rename it back to webutil.olb. How do i do this for many other files that i have
View 3 Replies
View Related
Feb 13, 2011
I'm using Ubuntu for about a half year. Currently version 10.10. The next problem I have with Nautilus: He have it in ListView. If I want to rename a file then the entire file is selected and not only the first part. So the file extension is also selected. I think this is a bug, whoich can be found on the Internet, but I do not find a solution. Does anyone here have a solution?
View 4 Replies
View Related
Nov 22, 2010
i'm just try to rename a particular file with php script
#/var/www/rename.php
<?php
rename('/var/www/welcome.txt','/var/www/welcome1.txt');
?>
showing error
Warning: rename(/var/www/welcome.txt,/var/www/welcome1.txt) [function.rename]: Permission denied in /var/www/rename.php on line 2
but i'm already open all permistion to rename.php & welcome1.txt file
#chmod 777 /var/www/rename.php
#chmod 777 /var/www/welcome.txt ....
View 3 Replies
View Related
Mar 20, 2010
my home partition is an extended one, and when i want to create an unallocated space the space will stay in that extended partition. but there is also an 7 gb unallocated space which i want to merge with the other unallocated space. I also cannot extend that partition over that 7 gb. how can i overcome that problem?
i m also uploading a screenshot of gparted.[URL]..
View 4 Replies
View Related
May 19, 2010
How would I rename a file say old.txt to new.txt in Linux using commands?
would it be...?
rename old.txt new.txt
View 2 Replies
View Related
Feb 6, 2010
I have moved all files from one hard drive to another but one file remains that I cannot move, delete or rename.
From a fresh boot, nothing nefarious running in the background...
Using Nauitilus, find a file called: .goutputstream-59R62U
It appears to be a 1.5Gb MPEG file. I can click on it and it plays in MoviePlayer. I can drag it into VLC and it plays normally. But I can't move it, delete it or rename it and I can't do the same to its parent directory or the parent of that directory.
Running sudo nautilus from Terminal it doesn't appear at all.
Running Gnome Commander it doesn't show up either. When trying to delete its parent directory (with permissions set to rwxrwxrwx) I get the following error:
Error while deleting ".goutputstream-59R62U"
File not found
View 4 Replies
View Related
Apr 12, 2011
About php upload. I want a php upload script that renames and overwrite every uploaded file as onscreen.jpg I googled it but only found random number rename. Not working for me I want file name change and overwriting file on server.
View 8 Replies
View Related
Feb 10, 2011
I need a sed and renaming the text in file. we have this one:
Quote:
Originally Posted by nickname
nickname presents: $subject
Size: size
[code]....
View 2 Replies
View Related
Apr 27, 2010
I'm using 11.2 GNOME for a while now..
As far as I know, GNOME can't act like MS or OSX when we wan't to rename a file..you know, when you slightly re click the file name and its ready to be renamed.. instead, I should go right click - context menu - rename to do that.
Is there any setting or apps for these?
View 1 Replies
View Related
Jan 17, 2010
I backed up all my wallpaper files to a folder in Dropbox. I want to rename them all to wallpaper and let the file system add the number to the name, similar to Windows XP function. I selected all the files but the rename option is not available.
View 3 Replies
View Related
Feb 15, 2011
I want to rename some image file extensions from upper case to lower case but renaming all the images in all directories and subdirectories. the following code works if I am inside the folder but how do I make it work recursively?
Code:
for f in *.JPG; do mv $f `basename $f .JPG`.jpg; done;
View 2 Replies
View Related
Apr 15, 2011
Is there any method to automatically renaming a file when it is automatically put in a shared file in samba on debian ?
View 1 Replies
View Related
Feb 24, 2011
cups does not start with the server. When I try to start from the terminal I get the error message
cupsd: Unable to read configuration file '/etc/cups/cupsd.conf' - exiting!
cupsd: Child exited with status 1!
The log files show nothing. cupsd.conf exists. It is user - root and group - root with permissions set at 0644.
My interpretation of this is that the program is not launching from either boot or terminal for a fundamental reason. I do not quite see what that reason is .
View 2 Replies
View Related
Nov 4, 2010
is there a way in terminal to rename a file to system date?
View 2 Replies
View Related
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
May 15, 2011
I need your inputs on performing some operations:-
a. Traverse from top Level directory, find all the directories
b. Rename all these directories to <original name>.dir
c. Once the renaming is done - search from top level and retain only those directories which has .txt content in them.
d. Delete rest all.....
Can i use xargs here to perform operation a and b , or will sed will be useful.
View 14 Replies
View Related
Sep 16, 2010
I have a program I use that downloads a file a couple times a day, but it does not name it how I want it named. So I am looking for something that i can run as a daemon that will rename the downloaded file as soon as it is downloaded to my specified directory and rename it according to my needs.
View 3 Replies
View Related
Jan 9, 2011
I have a folder containing the output from Windows XP "File and Settings Transfer Wizard" - the folder refuses to be imported into any flavour of Windows and the original windows system is no more - so I found a little program called fastconv [URL] which extracted all the files but fails to rename them - been working on this solidly for 3 days now, there are 47,000 files in 20gb, so naturally the customer is very concerned.
I noticed that Ubuntu cleverly recognises the type of file, assuming its looking at the contents of the file rather than the extension.
Is there any way I can automatically rename the files based on the mime type?
View 2 Replies
View Related
Aug 26, 2009
How do you rename:
abc123.txt
abc124.txt
abc125.txt
to
abc.txt.123
abc.txt.124
abc.txt.125
Basically, I want to move the digits from the filename to after the extension.
It works for one file if I type:
rename 123.txt .txt.123 abc.txt.123
but I have thousands of files like these.
View 1 Replies
View Related
Jan 30, 2011
I want to do the following.
1. have a directory full of subdirectory
2. Pick the first file from every sub and copy that to the main directory and also rename that file to the same name as the subdirectory's name
3. need to work in commandline best is a simple script.
View 4 Replies
View Related
Apr 1, 2010
I have formatted to EX3 in gparted all went fine, however I cannot rename the disk or write anything to it as access is locked to root Furthermore a file has been created called "lost and found" its locked and 46GB in size - what is this?
View 14 Replies
View Related
Jun 26, 2010
Create a copy of the file above and call it commands.sorted. Use the vi command to manually sort this file. I.e. use yy to copy a line, P or p to paste a line, and dd delete a line. Order the commands with the two lines starting with double quotes first. Then list the rest of the command in alphabetical order.
Anyone have any ideas what he's talking about? Can I copy a file and rename it at the same time while copying it to the same exact directory again? Now sure what the two lines things means either. I have an email out to him but it usually takes a long time for him to answer me. I got alot of work to do so everytime I get hung up it kills me.
View 2 Replies
View Related
Apr 12, 2010
I'm writing a bash shell script that among various other things will traverse through a directory with hundreds of files and rename those who match a pattern found in a config file. It's expected that only about one in ten files will actually match, and those who don't, will simply just be ignored for this purpose.
This should for instance cause the file "dBase program file December 1987.prg" to be renamed "Clipper source code December 1987.prg", and conversely "C++ source August 1996.cpp" to be renamed "C source code August 1996.cpp" etc.A sample file such as "Random Data File.dat" should not be renamed here since it's not mentioned in the config file..What is the quickest, most elegant way to do this in bash?I am thinking of using bash's built-in regex matching combined with the /bin/rename utility, but don't quite know how to get started to catch this..I guess there are plenty ways of doing this in perl and elsewhere as well, but since this has to integrate into a pre-existing bash script, that's what I'm looking for.Anyone out there with a spare moment to offer a hint in the right direction?
View 14 Replies
View Related
Mar 28, 2011
I am trying to rename a lot of files but need to keep the extension :
the files are films names :
a.b.c.d.***.iso
the result should be replacing "." by spaces " "
this command :
for files in *.iso ; do mv "$files" `echo "$files" | tr '.' ' '`; done
put a space also before the extension iso ??
How can I rename files from
"a.b.c.d.iso" to "a b c d.iso"
View 5 Replies
View Related
Jul 25, 2011
How would I rename all files with a leading decimal point recursivley? I some how got all my music files to have a decimal point.I tried the below and got a " sed argument to long".[CODE]find /media/MUSIC -type f -name "*.wma" | xargs -0 sed -i 's/.(.*)/1/'[CODE]
Another question, can i just use -type f with out -name ? I am sure that all the files got the decimal point added as the first character.
View 14 Replies
View Related
Aug 2, 2011
I'd like to use pyRenamer to identify and rename files with reserved characters in the file name. The files came from windows where I'm guessing the characters didn't cause problems. For example, I want to replace the ? (question mark), ' (single quote), etc. I tried using the escape () character before the special character in the replace field on the substitutions tab, but for some reason I don't believe that method was identifying the special characters. What is the correct way to identify a special / reserved character within a file name and replace it?
View 1 Replies
View Related
Sep 29, 2009
How is the best way to rename an existing user and his home directory under Debian Lenny? BTW I'd like to have the same settings like Desktop Icons, Bookmarks etc.
View 5 Replies
View Related
Jan 4, 2010
Logical Memory Space of 4GB is divided in to 3GB User Space and 1GB Kernel Space. Always. Correct?
1. How can we change it? (just changing value of PAGE_OFFSET is okay?)
2. If system have only 256MB of memory (embedded system) and suppose Kernel Modules eat away all the memory during boot. User space will be left will no memory. Is this case possible?
View 2 Replies
View Related