user-avatar
Today is Thursday
November 21, 2024

Tag: files

September 16, 2014

Project Idea: harddisk search engine

by viggy — Categories: FSMK, project — Tags: , , , , , 2 Comments

I do have loads of media files in my two external harddisks, one of 3TB and another of 1TB. And overtime the data is all over the place, in some cases, there are duplicates also and there is currently no way, I can easily remember if I have a particular data or not. Over all its a mess. Hence I need a good way to arrange all of this data and have a cache of its metadata in my laptop, so that it becomes very easy for me to search whether I have a particular media file available with me or not. Media can be anything from movies, documentaries, songs, iso images, series, etc.

So this are the requirements of such a software:

  •  Do full scan of HDD connected and collect all data available in it.
    • User should be able to give a minimum/maximum size of interest(files less than say 1MB may not be of importance)
    • User should be able to give formats of interest(User may just want video files to be listed/searched)
  • Should be able to update an existing scan so that only new files are added to it again
  • Using the collected data, user should be able to search a particular file based on filename/filetype/size etc

 

 

January 13, 2010

split and join huge files

by viggy — Categories: linux, Misc, tech — Tags: , , , , , , Leave a comment

I recently has asked my friend to download edubuntu9.10 iso . It was a 3.4 gb iso. After he finished downloading when i had to transfer it to my system, we faced a small problem. His LAN card was not working and we had only 1gb pen drive. So the only option we had was to split the iso into files of size 1gb and then transfer them using pen drive.

command to split a huge file into smaller file.

split -b 1G

is the prefix of the smaller files that will be created.

After I split the files, i transfered each file in to my system and then joined the files using a very simple “cat” command.

Join the files splitted by the above commad.

$cat aa bb cc dd>huge-filename

The above command will join all the files and create the file huge-filename.

I need to test whether the order of the smaller files matters in the cat command. Logic says that it should matter. lemme check it out.

Confirmed it. The order of the smaller files is very importent to get back the original file.