Showing posts with label different. Show all posts
Showing posts with label different. Show all posts

Sunday, 8 February 2015

Using "find" to list files with different extentions topic






Hi,

I have films in directory

Code:


~/Films

with different file extentions (.avi, .mp4 and .mkv) and I would like to generate a list of all these movies in a file. Here is the general structure of the "Films" directory:

Code:


/Films
/Films/action/
/Film/action/movie1.avi
/Film/action/movie2.avi
/Film/action/movie3.mkv
/Films/drama/
/Film/drama/movie4.avi
/Film/drama/movie5.mkv
/Film/drama/movie6.mp4
/Films/sci-fi/
...


The different movies are stored in the "action", "drama", "sci-fi" (and so on) sub-directories. I want my list to be:

Code:


movie1.avi
movie2.avi
movie3.mkv
movie4.avi
movie5.mkv
movie6.mp4
...


To acheive this, I tried this command, which is reported to work in some forums:


Code:


cd ~/Films
find . -name "*.mp4" -o -name ".avi" -o -name ".mkv" -fprintf films "%f\n"


which results in the following list in the "films" file:

Code:


movie3.mkv
movie5.mkv


All other titles don't appear.

What is going on?






Wifi settings for different users topic






I wasn't sure where to put this as it's not strictly about wifi settings. Hope it's ok here.


After updating to 14.10 last autumn I had problems with wifi - it worked perfectly with known connections but could not view and connect to new ones and the tray icons had disappeared. I tried various fixes without success and eventually reverted to 14.04.

I've recently re-installed 14.10 and the same problem has reappeared. BUT I discovered that the guest user sees things perfectly and can connect with no problem. So, I decided to create a new user and this new user also sees things perfectly.

So, two questions. First for pure curioslity - why is this happening?

Second, can I migrate settings from one user to another? Either to copy the working config from new user or guest to my own user, or to copy cookies, favourites and files from the original user to the new one?

Thanks for any enlightenment.






Saturday, 7 February 2015

[ubuntu] recent documents with different document Viewer topic






Hi,

I have switched to qpdfview as my default document viewer on Ubuntu 14.04 but recent documents no longer getting updated on the Unity dash. How to fix this? Thanks.