Ubuntu :: Rename A File Then The Entire File Is Selected And Not Only The First Part?

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


ADVERTISEMENT

General :: Rename Multiple File By Moving Part Of The Name To End Of Extension?

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

General :: Script To Delete Selected BackupFiles And Restore Selected Backup File?

Jul 18, 2010

i am new to linux and i nid a bash script to Delete selected backup files and also restore selected backup file to a user define directory.

View 3 Replies View Related

General :: Rename A File By Replacing Specific Letters In The File?

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

Programming :: Script To Copy Paste Text From One File To Another (overwriting Part Of The File)?

Apr 19, 2011

I have a .txt-file with ~50.000 lines of numbers, generated by a mathematics program. From this file, I need line ~ 1.100 to line ~16.000 (these lines are always the same btw, this may make the solution easier, dunno) to be copy/pasted to another file, where the lines ~500 to ~15.000 (also, every time the same) should be overwritten by the aforementioned lines...I haven't found or come up with anything that works yet, mostly I find solutions to copy everything from one file to another but I can't find something to specifically overwrite a part of a file with part of another.

View 4 Replies View Related

Software :: Get First File Of Directory Then Copy To Other Directory Andd Rename The File?

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

Ubuntu :: Get Selected File Script?

Mar 3, 2011

I am trying to create an option in the right click menu to append the currently selected file/folder to a text file that a script will read later and delete the files in the list. Is there a way I can do that? I know how to write a script to read the text file and delete the list but I don't know how/if you can get the currently selected file with a script. Is that possible?

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

Ubuntu :: How To Print Entire .chm File

Sep 10, 2010

Ubuntu 10.4

I have a few .chm files that I can view in xCHM or other chm file reader programs.

However, what I really want is to just print out every page of the .chm into one big .pdf file. Then I can read it a lot easier and it is much more portable for me.

Does anyone know any command line or tool that can output every page of a .chm file, formatted, in order, to a PDF or just the Printer?

View 1 Replies View Related

Ubuntu :: Can't Delete / Rename File

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

Ubuntu :: Downloading A Part Of A File?

Nov 2, 2010

I know that the question could sound weird but...I was wondering if is possible to download one or more parts of a file.

For example, the first 10 mb, or the latter ones.

I know that there are some apps that let you do segmented downloads, but, is there anyone that let you choose the segment to be downloaded? If not, can this be accomplished with any linux command-line application?

View 4 Replies View Related

Programming :: How To Rename A File With Php

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

Ubuntu :: Make Shell Script To Delete Selected Entries Of A Log File?

Jun 26, 2010

I have 2 external hdd in wich I have all my files.... yesterday, I have copied all the files from hdd1 to hdd2 and I want to eliminate duplicates so I used FSLint to find them, now, I have a txt file that looks like this code...

now I want to make a shell script to delete all the files/entries (read from the log file) that begin with code...

View 2 Replies View Related

Ubuntu :: Want To Rename All Wallpaper And The File System?

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

Ubuntu :: Recursively Rename File Extensions?

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

Ubuntu :: Cannot Change Folder / File Permissions On Entire HDD

Apr 17, 2010

I have two drives in my computer: a 160GB and an 80GB. The 80 holds Ubuntu, the home folder, etc. The 160 is for other files. I need to change the read-write permissions on the 160, but I can't. If I do it through the GUI (right-click>permissions) it just changes back instantly. If I do it through the command line (even with sudo), it has no effect.

View 5 Replies View Related

Ubuntu :: Fix Short Of Zaping The Entire Mozilla File?

May 14, 2011

After doing a dist upgrade I discover that I have firefox 4.0 and it has disabled adblock plus 1.3.3 and I can not get the new adblock plus since I can not uninstal the old one. Does anyone know how to fix this short of zaping the entire .mozilla file?

View 4 Replies View Related

General :: Command Line - Move Or Copy Selected File

Jul 16, 2011

How do I move around select a file and move or copy it. All tutorials I have seen are not simple enough.

View 7 Replies View Related

Ubuntu :: Download Only The Missing Part Of The File?

Aug 14, 2011

I downloaded a .gz file. The network was disconnected a few times during downloading. I resumed the download each time with wget -c option. However after all the downloading is over, an error occurs when I try to extract the .gz file. Is there any way I can download only the missing part of the file?

View 1 Replies View Related

General :: Rename A File Say Old.txt To New.txt Using Commands?

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

Programming :: Php File Upload Rename?

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

Programming :: Sed And Rename Text In File?

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

Ubuntu :: How To Rename File To System Date In Terminal

Nov 4, 2010

is there a way in terminal to rename a file to system date?

View 2 Replies View Related

General :: Dowload One Part Of A File From Web?

Aug 19, 2010

lets say there is one very big file on some server and i just want to download first 1MB. How can I do it on Linux ?

View 2 Replies View Related

Programming :: Extract Part Of File Name?

Mar 26, 2010

I have this string ./DAT000728-652523058.job.I want to extract the no between DAT and - sign. I want 728. I dont want 000728.echo ./DAT000725-560162365.job | cut -d'T' -f2 | cut -d'-' -f1 I am getting 000728.string can be ./DAT326822-652523058.job also. then i need 326822

View 6 Replies View Related

Programming :: Replace Part Of A File With Another?

Jan 8, 2010

There are a few things I was wondering about (using tools available in bash):How to insert a file at at the specified location of another.How to copy a portion of a file between two lines matching a regex to another file (and/or making sed only work between two lines matching a regex)How would you do this?

View 2 Replies View Related

Programming :: Get Name(s) Of File(s) Selected In Window Manager (gnome 2.32) In Bash Script?

Mar 12, 2011

Is there any way to get the name(s) of the file(s) selected in the window manager (gnome 2.32) in a bash script?

View 7 Replies View Related

Ubuntu :: Packages Part Of Iso Image File Installation

Feb 24, 2010

When I look in /var/cache/apt/archives/, I see packages I recognize that I downloaded. But, I also see packages that I know I did not download, but rather were part of the initial installation of the image iso file on the CD. For example, the package for Abiword is in there. I would like to know which packages in this directory I installed, and which were part of the initial installation.

How do I know which packages are part of the installation from the image iso file on the CD? Once I know that, I would make a copy of all the other packages in this folder onto a DVD, so if I ever need to reinstall Ubuntu 9.10 I will know which packages to install over and above those part of the initial installation off the iso CD.

View 5 Replies View Related

Ubuntu :: Matching And Returning A Part Of File Name On Bash?

Apr 25, 2011

If I have files named like this:

abc_one.c
egx_two.c
tsf_two.c

[code]...

View 9 Replies View Related

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







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