Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

wildcards

Check if a folder has a certain type of file present

August 7, 2022 by Magenaut

How could I check if a file has a file of extension .java?

Categories Q&A, Unix & Linux Tags files, shell, wildcards Leave a comment

Show only hidden files (dot files) in ls alias

August 7, 2022 by Magenaut

I’m using the command

Categories Q&A, Unix & Linux Tags alias, ls, wildcards Leave a comment

rm -rf all files and all hidden files without . & .. error

August 7, 2022 by Magenaut

rm -rf /some/path/* deletes all non-hidden files in that dir (and subdirs).

Categories Q&A, Unix & Linux Tags rm, wildcards Leave a comment

How do I create a directory in all subdirectories?

August 7, 2022 by Magenaut

Suppose I have a directory structure like this:

Categories Q&A, Unix & Linux Tags bash, directory, wildcards Leave a comment

Glob with Numerical Order

August 7, 2022 by Magenaut

I have this list of pdf files in a directory:

Categories Q&A, Unix & Linux Tags bash, filenames, wildcards Leave a comment

Remove all but one ( or more ) kind of filetype

August 7, 2022 by Magenaut

I’ve been trying to find a command to remove all files in a folder but not a kind of filetype. But I seems to not have any luck. What I’ve tried so far :

Categories Q&A, Unix & Linux Tags wildcards, zsh Leave a comment

Move every file that is not a directory

August 7, 2022 by Magenaut

I have a directory that I am trying to clean out that contains both files and subdirectories. What I am trying to do is simple: move all the files into another directory, but leave all the sub-directories as they are.

Categories Q&A, Unix & Linux Tags bash, directory, mv, wildcards Leave a comment

proper way to iterate through contents in a directory

August 7, 2022 by Magenaut

I need to iterate through every file inside a directory. One common way I saw was using the for loop that begins with for file in *; do. However, I realized that it does not include hidden files (files that begin with a “.”). The other obvious way is then do something like for file … Read more

Categories Q&A, Unix & Linux Tags dot-files, for, ls, shell-script, wildcards Leave a comment

How do I filter a glob in zsh

August 6, 2022 by Magenaut

Basically I can use a glob in zsh to a list. Often, it turns out, I would like to filter that list, grep’ishly I’m wondering though, if I need to do that.

Categories Q&A, Unix & Linux Tags wildcards, zsh Leave a comment

Find a string only in a specific file inside subdirectories

August 6, 2022 by Magenaut

Let’s say I need to find the function GetTypes() in all C# source file (.cs) the directories/subdirectories.

Categories Q&A, Unix & Linux Tags grep, recursive, wildcards Leave a comment
Older posts
Newer posts
← Previous Page1 Page2 Page3 Page4 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress