Tag Info

New answers tagged


You can use Shazam on Linux with a virtual machine with Android x86 in it and the Shazam App. I created a little video that shows the installation process and the usage: https://www.youtube.com/watch?v=2S2sWBTVPu8


Finding Files with bat Anywhere To find all files anywhere inside /path/to/folder whose names contain bat, you can use: find /path/to/folder -name '*bat*' I have quoted the search pattern *bat* because, if the quotes were omitted and files match *bat* in the current directory, the shell will expand *bat* into a list of them and pass that to find. Then ...


Use the good old find. find <path_for_search> -type f -iname "*bat*" eg.: % find . -type f -iname "*bat*" ./batgirl.c ./batwoman.c ./cricketbat.c ./batman.c from man find: -type c File is of type c: [..] d directory [..] f regular file [..] -iname pattern Like ...


If the files are in the current directory use: $ ls *bat* batgirl.c batman.c batwoman.c cricketbat.c Or (to have them line by line): $ ls -1 *bat* batgirl.c batman.c batwoman.c cricketbat.c If you want to search the system for that files, use: $ find / -name "*bat*" /path/to/cricketbat.c /path/to/batgirl.c /path/to/batwoman.c /path/to/batman.c


The easiest way is to run locate bat This way you can search through the whole computer for files containing "bat" in the file name To refresh the list of files on your PC run updatedb Run this command when you have recently added new files to your account


Open the terminal and change directories to the directory from where you want to start searching and then run this command: find . -name "*bat*" -type f The . starts the find command from the current directory. The -name matches the string bat and is case sensitive. (-iname is case insensitive) The -type f searches for files only.


You want to use the find command, with the -iname option for case insensitive file name matching, or the -name option for case sensitive file name matches. Both of these will let you use wildcard names. So, to find any file names which contain "bat" you would use: find / -iname '*bat*' Or find / -name '*bat*' The * means "any character(s)", so the ...


Using bash: #!/bin/bash while IFS= read -r line; do ini="${line%/*}" last="${line##*/}" repl="${line##*.}" echo "${ini}/${repl}/${last}" done <file.txt Output : /folder1/(abc)/launch/params.launch /folder2/(efd)/launch/gui.launch /folder3/(ghi)/launch/robot.launch Here we have used the parameter substitution of bash to have three ...


Should be fairly simple with sed: sed 's;\([^/]*.launch$\);launch/\1;' You can group matched text by surrounding the expression in brackets (\( ... \)). You need to escape the parentheses to make sed see them as special syntax. The groups can be referred to using the position - the first group is \1, the second is \2, etc. Example output: $ sed ...


I finally found something that worked: dconf write /org/compiz/profiles/unity/plugins/unityshell/show-launcher '""'

Top 50 recent answers are included