Skip to content

Bash oneliner to rename filenames

I often would like to easily rename a bunch of files. I always have to struggle with find, grep, xargs and sed to simply to the job. I would like to understand how I can do a better job using PCRE Here my files: I would rename the dot files properly as I can do with this oneliner: However I

ActiveMQ basic JAAS authentication configuration

I am trying to configure simple JAAS authentication for ActiveMQ. I have created a xml called activemq-jaas.xml as: The other configuration files are: login.config users.properties groups.properties I started the ActiveMQ with command ./activemq start in linux terminal. But I cannot login with guest/guest cre…

pci device info access in linux from userspace

I want to access the pci device tree information from user space programatically. Like the root complex and the devices connected to it. How can I do it please let me know. Regards, Pradeep Answer libpci or pcilib (on which lspci is based) uses sysfs, procfs, and possibly other means to access PCI information…