LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 04-21-2017, 12:50 PM   #1
gilestomkin
LQ Newbie
 
Registered: Mar 2016
Location: Wallace NC USA
Distribution: Linux Mint 17 - and very pleased with it
Posts: 2

Rep: Reputation: Disabled
Smile Loosing & Finding files after years of work


To whom it may concern (almost everyone!)
I have been working since 1981 making files. How can I find something among these monster masses of mismatched filing systems?
Finally the answer occurred - but (shock / horror) you HAVE to use the terminal.

This works best because it repeats the folder name on each line -
This puts the resulting file in ~/Downloads

>> find -ls > ~/Downloads/IndexTree.txt

afterwards, open the TXT file and replace ./ & / with "*";
also replace "user user" with "user *" to delineate size & date
date for this year do not show the year - gee!.
Replace "" with space

Then open in XLS (Libre Office) column delineator "*"
Save-As XLSX - (plain XLS only does 35,000 rows)
Delete first column, replace with auto number 1 thru whatever
Select all, SORT by column C & next 7 columns - goes to col G normally

The above works a treat - just change the file name according to folders surveyed

So why do all this? Because now you can open your XLSX and use the FIND-All function and search HALF A MILLION records in real time. And when you browse, it is showing the full path, and you can say "WTF is that one? Oh, yes, I haven't seen that in ages. " etc.

SO you can re-do the above every few months - and if you happen to use WIndows, you can use this command for the same result
>> dir /s /b > c:\temp\BooksIndex.txt
Obviously, change the output file & folder to suit you own quirkyness
Enjoy your meal, as they say in the USA
G
 
Old 04-21-2017, 05:27 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,129

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Glad you're happy - me, I'd stay in command line. Much easier, faster with a little experience.
Try "grep -i xanadu" to find all occurrences - pipe it to "less" to make it scrollable.
And try this to fix the date issue
Code:
sed -r "s/[[:digit:]]{2}:[[:digit:]]{2}/ $(date +%Y)/" IndexTree.txt > Fixed_IndexTree.txt
(watch the embedded space character).

Whatever cooks your food ....
 
  


Reply



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
dual boot without loosing my recent files rpmacaspac Linux - Newbie 1 01-26-2014 05:26 AM
LXer: Loosing work because I use Linux LXer Syndicated Linux News 0 07-19-2011 09:31 PM
finding a desktop search program that can include Linux & Windows files JuliaHenson Linux - Desktop 10 10-24-2009 09:08 AM
Cygwin & makefiles - not finding files in -I'd directory BrianK Programming 6 09-20-2007 11:46 AM
Group rights: loosing my hairs & my mind... bigbac Mandriva 1 03-26-2004 11:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:10 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration