Fedora :: Command Line To Recurse And Delete Filename-1.jpg?
Oct 26, 2010
I just installed Picasa from google and it has corrupted my picture database. The good thing is that it has done it in an organized manner. It appended -1 -2 -3 and so on to the copies file name. They look like (filename.jpg filename-1.jpg filename-2.jpg) the original having no numerical suffix just (filename.jpg)How do i write a command line to remove all of the undesirables without deleting the origionals?
View 7 Replies
ADVERTISEMENT
Jun 6, 2010
I have downloaded torrent from some chinese tracker. It has ???? and some other symbol charaters in directory name. How to delete that file and directory?
View 5 Replies
View Related
Mar 31, 2011
What's a Unix/Linux one-liner that will let me delete all but the most recent N revisions of each file?
I've got a bunch of files with revision numbers as part of a legacy asset-management system:
bar.r7.js
bar.r8.js
bar.r9.js
bar.r10.js
bar.r11.js
[Code]....
I want to keep the last three of each, so in the above list the command would delete bar.r7.js, bar.r8.js and foo.r1.js.
View 1 Replies
View Related
Apr 14, 2010
Is there a way to remove duplicate files from a specific folder through SSH? I've uploaded a lot of flash games on my server and I can see in the Webmin's file manager that I have many duplicates. Their names are different, of course.
View 2 Replies
View Related
Jul 1, 2010
I want to delete all may mail root in command line and i don't find this... the command mail + "d" work fine but i want use it in a .sh
I explain too : I use fetchmail to have mail from a gmail box, and use RIPMIME to save the attachment in a folder... these work fine, but the i want delete these mails.
View 3 Replies
View Related
May 6, 2010
Lets say I have 20 files named FOOXX, where XX is the number of the file, eg 01, 02 etc. At the moment, if I want to delete all files lower than the number 10, this is easy and I just use a wildcard, eg rm FOO0* However, if I want to delete specific files ina range, eg 13-15, this becomes more difficult. rm FPP[13-15] does not work, and asks me if I wish to delete all files. Likewse rm FOO1[3-5] wishes to delete all files that begin with FOO1 So, what is the best way to delete ranges of files like this? I have tried with both bash and zsh, and I don't think they differ so much for such a basic task?
View 2 Replies
View Related
May 29, 2010
i've gotten my fedora 12 to the point where i can run python3 scripts from command line and can call up python 2.6.2 idle with the command 'idle' from command line. what command will call up python3 (3.1.2 to be exact) idle?
View 5 Replies
View Related
Feb 6, 2011
Ubuntu 10.04 Guest in VirtualBox
I'm trying to delete a file called
Code:
springlobby_config.h
I've tried:
Code:
rm -i *
which gives me:
Code:
rm: cannot remove `springlobby_config\.h': No such file or directory
Tried to rename it:
Code:
mv * abc
which gives me:
Code:
mv: cannot stat `springlobby_config\.h': No such file or directory
I don't think it's a permissions issue because usually the terminal would say permission denied, but perhaps I'm wrong.
View 9 Replies
View Related
Mar 23, 2011
I run 5GBFree.com a free hosting site. As you can imagine, it gets quite a few people signing up to abuse the service.Recently I've found a LOT of people setting up sites with a particular script that floods forums and IRC chat rooms. The names of the files are as follows:
peindom1.php
peindom2.php
peindom3.php
peindom4.php
Is there a command I can run to remove files with these filenames ANYWHERE on the server (so basically, a command to go through all folders on the server and remove instances of that name
View 14 Replies
View Related
May 21, 2011
I need a command to find the all files which filename contains the text "SomeText" and to delete that files!From /home/movie/wp-content/uploads/this folder I have lots of files and folders .Also I need that for folders and subfolders who contains some text in folder name "someTextInFolderName"
View 13 Replies
View Related
Jun 28, 2011
Want to search for ~ and delete it as well as to append the entire line to the above line. For Ex:
1111xxxx date Sandy area is ~around this area.3222xxx date There seems to ~left side of map, the colours are accurate (showing green areas)Even if I ~zoom in, the green parks, xxx3258 date The dammed up
~away, the "other" body of water varies ~blackNatural gas leaching.
IT MUST LOOK LIKE:
1111xxxx date Sandy area is around this area. 3222xxx date There seems to left side of map, the colours are accurate (showing green areas)Even if I zoom in, the green parks, xxx3258 date The dammed up away, the "other" body of water varies blackNatural gas leaching.
View 4 Replies
View Related
Mar 3, 2010
I have a log file /var/log/messages. Now all i want is to delete the first line through script without disturbing provisioning the file.
View 1 Replies
View Related
Sep 21, 2009
when I running vi ,I'd like to run some command(such as dd,p,/word),but I know little of these command,Can I get a manual of that by run some command ,Do you understand what I said,For example,I can run dd to delete the line which the cursor locates,Is there a command (maybe "help" or other)to show the help information about the operation on vim in this condition,not in bash ,not "man vi",
View 6 Replies
View Related
Apr 1, 2009
Was wondering if any perl guru's could help me with a quick log file adjustment. I have a text file that looks like so (tabs and newlines are revealed so you can see what separates the data):
There are maybe 100 lines of text in this file at any given time. I need to delete all duplicate lines only looking at the first bit of text prior to the first tab. It doesn't matter which one gets deleted as long as there are no two lines that begin with that same text at the beginning before the first tab. So in this example, either the fist line "1234" or the last line "1234" would need to be deleted. I already have code in my script that opens the files - I just need the code to read the text into an array and the part that would find matches based on the above criteria, and make the deletions.
If it would be easier, I can even do a system call and use SED (v4.1.5) and/or AWK (3.1.5) instead.
View 7 Replies
View Related
Jun 15, 2010
I m writing a script to delete a line at particular location.
But i m unable to use variable for specifying line number.
For example.
Code:
works fine and deletes 7th line from my file
But
Code:
gives following error.
Code:
View 7 Replies
View Related
Aug 6, 2009
I was using f10 on my T42 and I had the delete command set on the right click key, after I upgraded to f11 I haven't been able to do that, does anyone knows how to set it up?
View 1 Replies
View Related
Jan 23, 2011
$ uname -a
Linux a 2.6.35.10-74.fc14.i686.PAE #1 SMP Thu Dec 23 16:10:47 UTC 2010 i686 i686 i386 GNU/Linux
$ lsb_release -a
LSB Version: :core-4.0-ia32:core-4.0-noarch
[Code].....
How can I set a pattern that will output a filename equal to the original filename? E.g.
something.mp3 → something.ogg
And why isn't this implemented in SoundConverter?
PS: {Filename} doesn't work.
View 1 Replies
View Related
Jun 10, 2010
I'm trying to learn to rename files with the command line, and after browsing around a lot of pages I finally found a command that uppercases the first letter of a file, but the problem is that I want to understand the meaning of each command. The command is:
for i in *; do new=`echo "$i" | sed -e 's/^./U&/'`; mv "$i" "$new";done
I understand the 'for' kinda... but not the 'echo' or '`' and especially the sed command.
View 4 Replies
View Related
Apr 23, 2010
What is the difference between filename and ./filename? Under what circumstances is one preferred to the other?
View 5 Replies
View Related
Apr 6, 2010
I need to split a filename into its filename and extension, so I can append a datestamp to the filename. I'm using bash.
View 8 Replies
View Related
Nov 20, 2009
I've installed ethernet adapter, it is made in china from a manufacturer called FOX. The driver for that adapter is supported for sco linux kernel version 2.4.x and 2.5.x .However, I'm using Centos5 but the OS didn't recognize the adapter alone, so I'm trying to follo instructions on the driver on the attached CD.
The CD contains file named "SC92031.c", the instructions tell me to do the following "Compile the driver source files and it will generate sc92031.o"
View 8 Replies
View Related
Feb 5, 2010
I need some info on this title for class
View 1 Replies
View Related
Apr 1, 2010
anybody know how to zip a folder with 500mb?i want to create zip files with about 100mb each. please?
how do i do it in rar?whats the commandline ?
View 7 Replies
View Related
May 4, 2011
I may need to handle a Red Hat server soon and thought that has the same command line.Where do I start if I wanted to learn the command line? Especially, how do you connect to a Redhat / Fedora Server using console on windows and do C programming
View 6 Replies
View Related
Jan 31, 2011
How to add user through command line..??i used "useradd" and "passwd" and created an account but i can't login to it...
View 12 Replies
View Related
Dec 10, 2009
How do I update from FC10 to Fedora 12 from the command line.
View 2 Replies
View Related
Feb 9, 2011
i recently did some changes to my hard disk partitonand now linux is in hd0,6when i booted my pc,i got the grub commmand line interfaceso,I think that i need to edit grub.conf in fedora 14then at cmd i did this:
grub> root (hd0,6)
grub> kernel (hd0,6)/vmlinuz
file not found
[code]....
View 4 Replies
View Related
May 30, 2011
Need to recurse a subdir tree, to apply chmod and chown and ls -al .
chmod -R xxx yyy does not function properly; -R is nonfunctional.
chown -R xxx yyy functions OK.
Is there a script which will follow a subdir tree and open each subdir ? glene77is
View 9 Replies
View Related
Sep 18, 2009
I decided on a whim to pursue certifications in other operating systems (currently 70-620 and 70-290 certified with Microsoft) and bought a book on Fedora 10 and installed it on my extra PC. First issue I ran into was that due to my graphics card being an ATI I needed to run in text mode (based off posts on these forums) then once I finally got everything under control and installed, it loads directly into Command Prompt (you folks call it GRUB right?) I can log in as root but I can't do anything this way.It won't even allow me to do things like accept the end user license agreement or create new users or see the GUI.
View 2 Replies
View Related
Nov 26, 2009
When I do System > Applications > Update System, it brings up a list of updates, and can tell me what each update is meant to fix (i.e. "fixes a bug in the flux capacitor so time travel works again (CVE-01234)"). How do I get similar info from the command line- I can't get it through yum, can I?
View 3 Replies
View Related