Python package glob: How to get a list of files under a directory?

Original post here.

import glob
print(glob.glob("/home/adam/*.txt"))

Will return a list with the queried files:

['/home/user/file1.txt', '/home/user/file2.txt', .... ]
Advertisements

HP Device Manager to Scan Docs

Original post here.

A HP printer management interface called HP LIP is provided in the standard Ubuntu repository.

To install it :

# sudo apt-get install hplip-gui

It is now available thru the menuĀ system / preferences / HPLIP Toolbox.

Now you can even check your cartridges level !

HPLIP Supplies