Kselax.ru

Hacker Kselax – the best hacker in the world

Menu
  • Blog
  • Contacts
  • wp plugin generator
  • English
    • Русский
Menu

What is the file globing?

Posted on 14 October, 201814 October, 2018 by admin

Using the asterisk and a question mark in the filter is called file globbing. File globbing is the
processing of pattern matching using wildcards. The wildcards are officially called
metacharacter wildcards. You can use more metacharacter wildcards for file globbing than
just the asterisk and question mark. You can also use brackets

Examples of globbing usage

Match all the files starting from my (my_file, myddk, mys.s.s, etc)

1
ls -l my*

 

Match all the files starting from my_s and finishing t. Between could be any symbols (my_sDft, my_sdkdkt, etc)

1
ls -l my_s*t

 

Match all the files starting from my_scr and finishing pt. Between can be any number of character that are a or i (my_scraaiiiaiapt, my_scraaapt, my_scriiiaiaipt, etc)

1
ls -l my_scr[ai]pt

 

Match all the files starting from f and finishing ll. Between can be any symbols from a to i or cannot be (fll, fall, fabcdill, etc)

1
ls -l f[a-i]ll

 

Match all the files starting from f and finish ll. the symbol a shouldn’t be between. All the rest could be. (fll, fbbll, fddddsll, etc)

1
ls -l f[!a]ll

 

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • bash (1)
  • English (9)
  • JavaScript (4)
  • node.js (22)
  • photoshop (1)
  • php (3)
  • React (9)
  • sclerotic (6)
  • Ubuntu (10)
  • Uncategorized (15)
  • Wordpress (1)

Tags

Ajax apache2 automation bash chrome-extension command line editor ejs email English English-grammar framework functions git graphql handlebars hybrid app installation javascript js linux newbie node.js node.js javascript nodemailer npm objects Performance php phpmyadmin playonlinux promise rabbitmq React react-router redis reverse-proxy session shell socket.io sublime text 3 time zones ubuntu unity webpack

Recent Comments

  • damien on How to install npm and nodejs the latest versions on ubuntu
  • Cam on How to install npm and nodejs the latest versions on ubuntu
  • Pierre on socket.io with apache as a reverse proxy on the CentOS
  • admin on How to use react-router with a few languages
  • admin on How to install npm and nodejs the latest versions on ubuntu
©2021 Kselax.ru Theme by ThemeGiant