Monday 27 October 2008

Hide your subtitle files

In nautilus, i like to be able to browse through my movies without having to see subtitle files. Using the terminal, i navigate to my film folder and run this command occasionally to add the filenames of subtitle files to the .hidden file, which describes what should be normally viewable within the window. The subs still play fine of course, but i dont have to see them cluttering up my view.

ls *.ifo *.idx *.sub *.srt >> .hidden | uniq -u > .hidden

The command lists all files with the target extention, appends them to the .hidden, then gets rid of duplicates and writes the unique list back to .hidden. the reason for this is that i may want additional content to be in my .hidden file and a straight ls *.ifo *.idx *.sub *.srt > .hidden would wipe that out

No comments:

Post a Comment