LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 11-11-2012, 08:15 AM   #1
rng
Member
 
Registered: Aug 2011
Posts: 747

Rep: Reputation: 23
Simple task for file managers


I recently had to perform this simple task from file manager: find all files in a folder (and its subfolders) having a simple string "mod" in their name; and then to cut those files to paste them to another folder.

I tried pcmanfm, thunar (both with gnome-search-tool installed for finding files), krusader and then konqueror, but could not perform this task. I also tried nautilus but it finds files only in the current directory and not from subdirectories on my setup. I also tried nemo-fm. I could finally do it in Dolphin file manager.

How can I perform this simple task in pcmanfm, thunar, nautilus, nemo-fm, krusader or konqueror, file managers which need less resources than Dolphin? Is there any other good file manager which can easily do this task?

Last edited by rng; 11-11-2012 at 07:56 PM.
 
Old 11-11-2012, 08:42 AM   #2
fatmac
Member
 
Registered: Sep 2011
Location: Surrey/Hants Border, UK
Distribution: AntiX, (& SliTaz)
Posts: 272

Rep: Reputation: Disabled
I think you will find mc (midnight commander) can sort by regex, this is a command line program, but can run quite happily under Xwindows.

HTH
 
Old 11-11-2012, 08:53 AM   #3
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,551
Blog Entries: 28

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Thunar with catfish can find them but they cannot be moved from the list of found files to somewhere else.
 
Old 11-11-2012, 07:54 PM   #4
rng
Member
 
Registered: Aug 2011
Posts: 747

Original Poster
Rep: Reputation: 23
How can linux be the main operating system for any average computer user if its file managers cannot perform such simple tasks?
 
Old 11-12-2012, 02:49 AM   #5
fatmac
Member
 
Registered: Sep 2011
Location: Surrey/Hants Border, UK
Distribution: AntiX, (& SliTaz)
Posts: 272

Rep: Reputation: Disabled
Quote:
Originally Posted by rng View Post
How can linux be the main operating system for any average computer user if its file managers cannot perform such simple tasks?
Most people don't need to do what you wanted to do, they organise their files into directories, which , I am assuming, is why you had to find yours.

These sorts of tasks are very often performed at the command line interface by using a regex.

Nobody is forcing anyone to use Linux, (or BSD), the choice is yours.
 
Old 11-12-2012, 04:51 AM   #6
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 718

Rep: Reputation: 102Reputation: 102
Relax. Linux always has a method.



Open up a terminal and use the find command.


Code:
find / -type f -and -iname "*mod*" -exec mv -v {}/destination/desired/\;

/ -- Directory to start recursively searching from.

-iname "*mod*" --- Regular expresssion -- mod with zero or more characters on either side.


-exec mv -v {} -- move the content found. You probably would be better off using ls (list) to validate the results before moving.


/destination/desired/ -- location where you want to put it.

man find / google find --- for more information.
 
Old 11-12-2012, 07:27 AM   #7
rng
Member
 
Registered: Aug 2011
Posts: 747

Original Poster
Rep: Reputation: 23
I want linux to be better and easier so that more people could use it. Command line is good for experts/intermediate people but not for average office computer operator for whom a good functional file manager is an absolute essential necessity. While linux seems to have improved remarkably in many fields, I was surprised to find its file managers to be so basic so as to miss even such simple tasks. I hope some developers of these file managers see this and add the required functionality.

Last edited by rng; 11-12-2012 at 08:41 AM.
 
Old 11-12-2012, 08:42 AM   #8
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,569
Blog Entries: 1

Rep: Reputation: 1026Reputation: 1026Reputation: 1026Reputation: 1026Reputation: 1026Reputation: 1026Reputation: 1026Reputation: 1026
Bear in mind that, unlike Dolphin, file managers such as Thunar are designed to be simple managers with only essential functionality. If software developers packed their programs with ALL the features that users might find useful, there would be no lightweight options anymore. Remember that Linux is all about the choice but you must be realistic about that: don't choose a lightweight manager and demand lots of features (the exception would be mc which has probably more features than a user will ever need).

Regarding your comment about who the command line is good for, IMHO it's good for people who value their time spent in front of a computer and refuse to do hundreds of clicks every day. It's not just for experts. Some things are better on the cli, some in GUI. Each environment has its benefits. Dismissing one of them makes your computing experience much poorer.
 
Old 11-12-2012, 11:18 AM   #9
rng
Member
 
Registered: Aug 2011
Posts: 747

Original Poster
Rep: Reputation: 23
Quote:
don't choose a lightweight manager and demand lots of features
These comments may be true for pcmanfm and possibly thunar, but not for konqueror and krusader, which can do much more advanced tasks like comparing files and synchronizing directories. I think, this is just an oversight by otherwise very hard working and talented developers who have made these file managers. I have occasionally tried to write programs and I know how difficult it is. I have respect for senior members like you who have much more experience than me. I am just a user trying to tell my simple requirement. I do not think finding files in subfolders and cutting them to be pasted to another location is a very advanced feature.
 
Old 11-12-2012, 05:08 PM   #10
speck
Member
 
Registered: Nov 2001
Location: California
Distribution: Slackware 14.1
Posts: 274

Rep: Reputation: 54
Just complaining about the lack of functionality in an open source project doesn't really make sense. Unlike a closed source operating system or application, you have the ability to either add this feature yourself or nicely ask the developers if they can add this feature to a future release.
 
Old 11-12-2012, 07:57 PM   #11
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,551
Blog Entries: 28

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
The developers might see this thread but they would definitely see enhancement requests in their bug trackers.

EDIT: enhancement request for catfish integration with Thunar made here.

Last edited by catkin; 11-12-2012 at 08:43 PM.
 
Old 11-12-2012, 08:53 PM   #12
rng
Member
 
Registered: Aug 2011
Posts: 747

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by speck View Post
...nicely ask the developers if they can add this feature to a future release.
This is exactly what I have tried to do in my post above.

Last edited by rng; 11-12-2012 at 09:41 PM.
 
Old 11-29-2012, 07:07 AM   #13
rng
Member
 
Registered: Aug 2011
Posts: 747

Original Poster
Rep: Reputation: 23
I checked and found that recent version of pcmanfm is having a find/search file option and it finds all files (subfolders also). The searched files can easily be cut and pasted elsewhere. However, the problem remains that the full name (or location) of searched file is not shown so one does not know where the file is coming from. Either full names of files searched should be shown or their location shown in a separate column. I could not find any way to get this.
 
Old 12-14-2012, 09:45 AM   #14
kabamaru
Member
 
Registered: Dec 2011
Location: Greece
Distribution: Slackware
Posts: 276

Rep: Reputation: 133Reputation: 133
Lately, I've been playing around with SpaceFM, and I find it to be nice and stable, and of course infinitely better than Thunar. There is an "Advanced Find Plugin" that you might want to check out, although I haven't tested it yet.

Last edited by kabamaru; 12-14-2012 at 09:48 AM.
 
Old 12-14-2012, 10:43 AM   #15
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,569
Blog Entries: 1

Rep: Reputation: 1026Reputation: 1026Reputation: 1026Reputation: 1026Reputation: 1026Reputation: 1026Reputation: 1026Reputation: 1026
Quote:
Originally Posted by kabamaru View Post
Lately, I've been playing around with SpaceFM, and I find it to be nice and stable, and of course infinitely better than Thunar. There is an "Advanced Find Plugin" that you might want to check out, although I haven't tested it yet.
Thanks for sharing it. The file manager does look interesting.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: 6 of the Best Free Linux Task Managers LXer Syndicated Linux News 0 10-03-2010 07:41 AM
Simple Automation task script itmeok29 Linux - Newbie 4 05-15-2008 10:12 AM
Simple File/Window Managers? Vampirite Slackware 13 10-24-2005 12:45 PM
problems creating a simple bootable cd to perform a simple task czarherr Linux - Software 1 11-11-2004 05:22 AM
wanted : simple debugging task 2mcm Programming 2 08-05-2004 04:26 PM


All times are GMT -5. The time now is 11:02 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration