Skip to content

Magenaut

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

wildcards

Recursive glob?

August 11, 2022 by Magenaut

I’d like to write something like this:

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

How to match case insensitive patterns with ls?

August 11, 2022 by Magenaut

I would like to list all files matching a certain pattern while ignoring the case.

Categories Q&A, Unix & Linux Tags case-sensitivity, ls, shell, wildcards Leave a comment

How can I search for a file with fixed name length using ls?

August 10, 2022 by Magenaut

In a directory, I have files like

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

How to move the first x files

August 10, 2022 by Magenaut

I have this huge folder with thousands of unordered files. Is it feasible to move the first 5000s to a subfolder via the mv command? For now I move files with

Categories Q&A, Unix & Linux Tags command-line, shell, shell-script, wildcards Leave a comment

List only regular files (but not directories) in current directory

August 10, 2022 by Magenaut

I can use ls -ld */ to list all the directory entries in the current directory. Is there a similarly easy way to just list all the regular files in the current directory? I know I can use find

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

How to match * with hidden files inside a directory

August 10, 2022 by Magenaut

How to match the hidden files inside the given directories

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

“mkdir foo; svn mv * foo”

August 10, 2022 by Magenaut

I often want to do some variant of this idiom:

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

Why is the wild card character * so different between the zip and rm commands?

August 10, 2022 by Magenaut

I put together a script to do some file operations for me. I am using the wild card operator * to apply functions to all files of a type, but there is one thing I don’t get. I can unzip all files in a folder like this

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

How to exclude some files from filename expansion mechanism in bash?

August 9, 2022 by Magenaut

I have ubuntu file system directories in the root directory and I accidentally copied hundreds of files into root directory.

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

How do I recursively delete directories with wildcard?

August 9, 2022 by Magenaut

I am working through SSH on a WD My Book World Edition. Basically I would like to start at a particular directory level, and recursively remove all sub-directories matching .Apple*. How would I go about that?

Categories Q&A, Unix & Linux Tags recursive, rm, wildcards Leave a comment
Older posts
Page1 Page2 … 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