Changes

Jump to: navigation, search
Filename Expansion
===Filename Expansion===
Sometimes when When issuing Linux commands, it could be more efficient to use a trick to process several files that share the same characteristic<br>(for example, the same extension, or the same file naming structure).
<span style="color:blue;font-family:courier;>'''ls'''<br>
a.txt b.txt c.txt 1.txt 2.txt 3.txt abc.txt work.txt webpage.html picture.png</span>
<span style="color:blue;font-family:courier;>'''ls a.txt b.txt c.txt 1.txt 2.txt 3.txt abc.txt work.txt'''<br>
a.txt b.txt c.txt 1.txt 2.txt 3.txt abc.txt work.txt</span>
[[Image:globbing-demo-2.png|thumb|right|400px|'''Globbing''' is the process of expanding filenames as separate arguments that match an argument that uses a '''wildcard symbol'''<br>(such as '''*''').]]
<span style="fontcolor:bluefont-family:courier;>'''ls *.txt'''<br>
a.txt b.txt c.txt 1.txt 2.txt 3.txt abc.txt work.txt</span>
13,420
edits

Navigation menu