Magenaut

Magenaut

A blog about Magento Development, Magento bug fixing, and more

Skip to content
Menu
  • Notes
  • Tutorial
  • Bug fixing
  • Extension
  • Server
  • Q&A
  • Code Solution
  • About

Tag: wildcards

Q&APosted onAugust 11, 2022

Recursive glob?

I’d like to write something like this:

Read More
Q&APosted onAugust 11, 2022

How to match case insensitive patterns with ls?

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

Read More
Q&APosted onAugust 10, 2022

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

In a directory, I have files like

Read More
Q&APosted onAugust 10, 2022

How to move the first x files

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

Read More
Q&APosted onAugust 10, 2022

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

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

Read More
Q&APosted onAugust 10, 2022

How to match * with hidden files inside a directory

How to match the hidden files inside the given directories

Read More
Q&APosted onAugust 10, 2022

“mkdir foo; svn mv * foo”

I often want to do some variant of this idiom:

Read More
Q&APosted onAugust 10, 2022

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

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

Read More
Q&APosted onAugust 9, 2022

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

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

Read More
Q&APosted onAugust 9, 2022

How do I recursively delete directories with wildcard?

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?

Read More

Posts navigation

Page 1 Page 2 … Page 4 Next Page

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 142 other subscribers

Recent Comments

  • anonymous on Fix libwacom9 dependency issue when upgrade Debian
  • sreedhar on Fix libwacom9 dependency issue when upgrade Debian
  • saintnick on Fix libwacom9 dependency issue when upgrade Debian
  • ranafoul on Fix libwacom9 dependency issue when upgrade Debian
  • John Fro on UFW rule from a list of IPs

Tags

ajax bash block-editor categories command-line custom-field custom-post-types custom-taxonomy customization debian django files filters functions hooks images javascript linux list loop matplotlib menus numpy pandas permalinks permissions php plugin-development plugins posts python python-3.x security shell shell-script shortcode ssh string terminal text-processing theme-development uploads users wp-admin wp-query

© Magenaut - The Magento Astronaut