search

apt-cache search not showing expected result

apt-cache search not showing expected result I tried to do apt-cache search skype But it shows me this as a result: libopuso – opus codec runtime library So what does that mean? Asked By: chukwuma ogbonna || Source The result tells me Skype for desktop is not a deb file. Per the Skype site, the …

Total answers: 2

Why apt is not finding already installed package?

Why apt is not finding already installed package? On Ubuntu 22.04.3: paul@box4x4:~$ apt search libstdc++ | grep installed WARNING: apt does not have a stable CLI interface. Use with caution in scripts. libstdc++-11-dev/jammy-updates,jammy-security,now 11.4.0-1ubuntu1~22.04 amd64 [installed,automatic] libstdc++-12-dev/jammy-updates,jammy-security,now 12.3.0-1ubuntu1~22.04 amd64 [installed] libstdc++6/jammy-updates,jammy-security,now 12.3.0-1ubuntu1~22.04 amd64 [installed,automatic] which shows that libstdc++-12-dev is already installed. Searching for it with: …

Total answers: 1

Can I tell search to check my Dropbox folder?

Can I tell search to check my Dropbox folder? Currently, the Meta key (for me it’s the "Windows" key) toggles a screen that shows all my open windows and a search box. That search box will find directories deeply nested in in /home/Documents and /home/Videos but it’s skipping /home/Dropbox — I looked at the Search …

Total answers: 2

How can I search based on file contents? (GUI, not terminal)

How can I search based on file contents? (GUI, not terminal) Every question and answer I’ve seen so far is ancient or just about grep in the terminal. I want an easy way to search my ~/code folder for certain strings. And I want the interface to allow filtering by file extension, etc. I thought …

Total answers: 1

Hard disks cataloguer needed

Hard disks cataloguer needed 22.04. I would like to achieve something like I use in my Mac: Neofinder is a program that builds a database with all the directories and files (and some of their properties) of any hard disk I ask to catalog. It has an updater to regularly update data of the connected …

Total answers: 1

Just as there is "locate" to "find". Is there a database for a faster "grep"?

Just as there is "locate" to "find". Is there a database for a faster "grep"? locate (or rather, updatedb) is somewhat simple: it takes the output of find for the required paths (usually ‘/’), sorts it, and then compresses it with a front-compression tool (frcode), in which the consecutive common prefixes are replaced by number …

Total answers: 1

find content of files with other text and combination of xml tags, grep in grep?

find content of files with other text and combination of xml tags, grep in grep? I have a lot of files that match a grep ‘xmltag’ and ‘subtag’. random xml needed_text random xml <xmltag> <subtag>content</subtag> </xmltag> I want to search for files that match another text ‘needed_text’. The output should contain ‘content’ at the very …

Total answers: 1

How to search for strings in the output of previously run commands

How to search for strings in the output of previously run commands Say, for example that after running a number of commands: $ cd /opt/something $ find . -name *aa | grep 11 $ clear $ <more commands go here> there was a part of the output that was needed but not saved; the command …

Total answers: 1

awk or sed command to replace line break plus text containing spaces

awk or sed command to replace line break plus text containing spaces An answer to another question suggests sed -i ‘s/original/replacement/g’ file.txt to replace specific words in a text file. My starting situation looks like this: Item: PRF Type: File Item: AOX Type: Folder Item: DD4 Type: File My ending situation should look like this: …

Total answers: 2

How to set up local Windows directory in WSL correctly?

How to set up local Windows directory in WSL correctly? I ran this script in Windows Subsystem for Linux at the command line. I wanted to search for the latest files but I got the error message "no such file or directory", and so I wonder how do I change my script to make it …

Total answers: 1

Ubuntu 22.04 GNOME Search Not Working Correctly

Ubuntu 22.04 GNOME Search Not Working Correctly I am pretty new to Ubuntu and Linux in general. About a week ago I installed a theme for Ubuntu (WhiteSur if it matters). After I installed the theme, there is a bug with my GNOME search bar (when you press the SUPER key and start writing). Whenever …

Total answers: 3

ansible lineinfile module to match variable_value

ansible lineinfile module to match variable_value how can one possibly match value of a variable through regex parameter in lineinfile module? – name: emptyline before search lineinfile: dest: ~/file insertbefore: ‘^{{ search_text }}$’ line: ” I tried above with both single/double quotes around, it doesn’t seem to work Asked By: Sollosa || Source For a …

Total answers: 1

How to get one line above the enabled crontab entry

How to get one line above the enabled crontab entry I have the below crontab entries $ crontab -l #Cron to auto restart app1 #Ansible: test1 #*/15 * * * * ansible-playbook /web/playbooks/automation/va_action.yml #Cron to auto restart app7 #Ansible: test7 */15 * * * * ansible-playbook /web/playbooks/automation7/va_action.yml | tee -a /web/playbooks/automation7/cron.out #Cron to restart Apache …

Total answers: 1

search of .xml files without certain tag through mac os terminal

search of .xml files without certain tag through mac os terminal I would appreciate having your advice on the below. Having a folder name "ABC" with thousands of .xml files inside. The core structure of XMLs is the same: <product abcd…> <category> … </category> </product> Some xml files can be considered as valid as these …

Total answers: 2

used awk to search by unicode in txt file

used awk to search by unicode in txt file How i can used awk to search in txt file by unicode like : u+064C u+064D and please how i count results and print the number in first line. Asked By: alomndo || Source If using zsh¹, you can do: SEARCH=$’u64c’ awk ‘index($0, ENVIRON["SEARCH"])’ To print …

Total answers: 1

grep fails to find text in docx file

grep fails to find text in docx file I cannot find the reason why grep cannot find the file with the word ‘coomunities’. I used grep -ril –include=GLOB "coomunities" . Note: communities is on purpose mispelled. The file is a docx and currently has permissions ‘-rwxrwxrwx’. I tried run from the same folder or other …

Total answers: 2

search in txt file then print in new txt file

search in txt file then print in new txt file i have txt file which containt over 1000 line, the data in it like: alpha hmld ahge 573 otndgd fhj 29 fidnt ank 1962 beta jdkrs 2 adny 14 urmekhjf 6893 … how i can search and print (in new txt file) for any line …

Total answers: 2