Warning, file /frameworks/syntax-highlighting/autotests/html/test.zsh.html was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 <!DOCTYPE html>
0002 <html><head>
0003 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
0004 <title>test.zsh</title>
0005 <meta name="generator" content="KF5::SyntaxHighlighting - Definition (Zsh) - Theme (Breeze Light)"/>
0006 </head><body style="background-color:#ffffff;color:#1f1c1b"><pre>
0007 <span style="color:#898887;"># basic types:</span>
0008 <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#bf0303;">'single quoted string'</span>
0009 <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#bf0303;">&quot;double quoted string&quot;</span>
0010 <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#bf0303;">$'string with esc</span><span style="color:#0057ae;">\a</span><span style="color:#bf0303;">pes</span><span style="color:#0057ae;">\x0d</span><span style="color:#bf0303;">in it'</span>
0011 <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#bf0303;">$&quot;</span><span style="color:#bf0303;">string meant to be translated&quot;</span>
0012 
0013 
0014 <span style="color:#898887;"># comments:</span>
0015 <span style="color:#898887;"># this is a comment</span>
0016 <span style="color:#898887;">#this too</span>
0017 <span style="color:#644a9b;font-weight:bold;">echo</span> this is<span style="color:#006e28;">#</span>nt a comment
0018 <span style="color:#644a9b;">dcop</span> kate EditInterface<span style="color:#006e28;">#</span>1 <span style="color:#898887;">#this is</span>
0019 <span style="color:#644a9b;">grep</span> <span style="color:#0057ae;">-e</span> <span style="color:#bf0303;">&quot;^default/linux/amd64/&quot;</span> <span style="font-weight:bold;">|</span><span style="color:#0095ff;font-weight:bold;">\ #this</span> is not a comment but <span style="color:#898887;">#this is</span>
0020 <span style="color:#644a9b;">mkdir</span> this<span style="color:#0057ae;">\ </span>isnt<span style="color:#0057ae;">\ </span><span style="color:#006e28;">#</span>a<span style="color:#0057ae;">\ </span>comment
0021 <span style="color:#644a9b;">mkdir</span> this<span style="color:#0057ae;">\ </span>isnt<span style="color:#0057ae;">\\\;</span><span style="color:#006e28;">#</span>a<span style="color:#0057ae;">\ </span>comment
0022 <span style="color:#644a9b;">mkdir</span> this<span style="color:#0057ae;">\\</span> <span style="color:#898887;">#is a comment</span>
0023 
0024 <span style="color:#898887;"># brace expansion</span>
0025 <span style="color:#644a9b;">mv</span> my_file.<span style="color:#0057ae;">{JPG</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">jpg}</span>
0026 <span style="color:#644a9b;font-weight:bold;">echo</span> f.<span style="color:#0057ae;">{</span><span style="color:#b08000;">01</span><span style="color:#0057ae;">..</span><span style="color:#b08000;">100</span><span style="color:#0057ae;">..</span><span style="color:#b08000;">3</span><span style="color:#0057ae;">}</span> f.<span style="color:#0057ae;">{</span>#<span style="color:#0057ae;">..</span>Z<span style="color:#0057ae;">}</span> f.<span style="color:#0057ae;">{\{..\}}</span> f.<span style="color:#0057ae;">{</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">i</span><span style="color:#0057ae;">..</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">j</span><span style="color:#0057ae;">..</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">p</span><span style="color:#0057ae;">}</span>
0027 <span style="color:#644a9b;font-weight:bold;">echo</span> f.<span style="color:#0057ae;">{</span><span style="color:#b08000;">01</span><span style="color:#0057ae;">..</span><span style="color:#b08000;">100</span><span style="color:#0057ae;">}</span> f.<span style="color:#0057ae;">{</span>a<span style="color:#0057ae;">..</span>Z<span style="color:#0057ae;">}</span> f.<span style="color:#0057ae;">{</span><span style="color:#bf0303;">'a'</span><span style="color:#0057ae;">..</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">Z</span><span style="color:#0057ae;">}</span>
0028 <span style="color:#898887;"># no brace expansion</span>
0029 <span style="color:#644a9b;font-weight:bold;">echo</span> f.{..100} f.{a..Z..}
0030 
0031 
0032 <span style="color:#898887;"># special characters are escaped:</span>
0033 <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">\(</span>output<span style="color:#0057ae;">\)</span> <span style="color:#0057ae;">\&amp;\|</span> <span style="color:#0057ae;">\&gt;</span> <span style="color:#0057ae;">\&lt;</span> <span style="color:#0057ae;">\&quot;</span> <span style="color:#0057ae;">\'</span> <span style="color:#0057ae;">\*</span>
0034 
0035 
0036 <span style="color:#898887;"># variable substitution:</span>
0037 <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">filename</span>.ext
0038 <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">filename_ext</span>
0039 <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">filename</span><span style="color:#0057ae;">}</span>_ext
0040 <span style="color:#644a9b;font-weight:bold;">echo</span> text<span style="color:#0057ae;">${</span><span style="color:#0057ae;">array</span><span style="color:#ca60ca;">[</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">subscript</span><span style="color:#ca60ca;">]</span><span style="color:#0057ae;">}</span>.text
0041 <span style="color:#644a9b;font-weight:bold;">echo</span> text<span style="color:#0057ae;">${</span><span style="color:#0057ae;">array</span><span style="color:#ca60ca;">[</span><span style="color:#bf0303;">&quot;string&quot;</span><span style="color:#ca60ca;">]</span><span style="color:#0057ae;">}</span>.text
0042 <span style="color:#644a9b;font-weight:bold;">echo</span> short are <span style="color:#0057ae;">$</span><span style="color:#0057ae;">_</span>, <span style="color:#0057ae;">$</span><span style="color:#0057ae;">$</span>, <span style="color:#0057ae;">$</span><span style="color:#0057ae;">?</span>, <span style="color:#0057ae;">${</span><span style="color:#0057ae;">@</span><span style="color:#0057ae;">}</span>, etc.
0043 <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">variable</span><span style="color:#ca60ca;">/</span><span style="color:#ff5500;">a</span><span style="color:#ca60ca;">/</span><span style="color:#bf0303;">d</span><span style="color:#0057ae;">}</span>
0044 <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">1</span><span style="color:#ca60ca;">:-</span><span style="color:#bf0303;">default</span><span style="color:#0057ae;">}</span>
0045 <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">10</span><span style="color:#0057ae;">}</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">10</span>a
0046 <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">!</span> <span style="color:#0057ae;">$</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">!</span>
0047 
0048 
0049 <span style="color:#898887;"># expression subst:</span>
0050 <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">$((</span> <span style="color:#0057ae;">cd</span> <span style="color:#ca60ca;">&lt;&lt;</span> <span style="color:#0057ae;">ed</span> <span style="color:#ca60ca;">+</span> <span style="color:#b08000;">1</span> <span style="color:#0057ae;">))</span>
0051 
0052 
0053 <span style="color:#898887;"># command subst:</span>
0054 <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">$(</span><span style="color:#644a9b;">ls</span> <span style="color:#0057ae;">-l</span><span style="color:#0057ae;">)</span>
0055 <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="font-weight:bold;">`</span><span style="color:#644a9b;">cat</span> myfile<span style="font-weight:bold;">`</span>
0056 
0057 
0058 <span style="color:#898887;"># file subst:</span>
0059 <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">$(</span><span style="color:#ca60ca;">&lt;</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">filename</span><span style="color:#0057ae;">)</span>
0060 <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">$(</span><span style="color:#ca60ca;">&lt;</span>/path/to/myfile<span style="color:#0057ae;">)</span>
0061 
0062 <span style="color:#898887;"># process subst:</span>
0063 <span style="color:#644a9b;">sort</span> <span style="color:#ca60ca;">&lt;(</span><span style="color:#0095ff;font-weight:bold;">show_labels</span><span style="color:#ca60ca;">)</span> <span style="font-weight:bold;">|</span> <span style="color:#644a9b;">sed</span> <span style="color:#bf0303;">'s/a/bg'</span> <span style="color:#ca60ca;">&gt;</span> my_file.txt <span style="color:#b08000;">2</span><span style="color:#ca60ca;">&gt;&amp;</span><span style="color:#b08000;">1</span>
0064 
0065 
0066 <span style="color:#898887;"># All substitutions also work in strings:</span>
0067 <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#bf0303;">&quot;subst </span><span style="color:#0057ae;">${</span><span style="color:#0057ae;">in</span><span style="color:#0057ae;">}</span><span style="color:#bf0303;">side string&quot;</span>  <span style="color:#bf0303;">'not $inside this ofcourse'</span>
0068 <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#bf0303;">&quot;The result is </span><span style="color:#0057ae;">$((</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">a</span> <span style="color:#ca60ca;">+</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">b</span> <span style="color:#0057ae;">))</span><span style="color:#bf0303;">. Thanks!&quot;</span>
0069 <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#bf0303;">&quot;Your homedir contains </span><span style="font-weight:bold;">`</span><span style="color:#644a9b;">ls</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">HOME</span> <span style="font-weight:bold;">|</span><span style="color:#644a9b;">wc</span> <span style="color:#0057ae;">-l</span><span style="font-weight:bold;">`</span><span style="color:#bf0303;"> files.&quot;</span>
0070 
0071 
0072 <span style="color:#898887;"># Escapes in strings:</span>
0073 <span style="color:#0057ae;">p</span><span style="color:#ca60ca;">=</span><span style="color:#bf0303;">&quot;String </span><span style="color:#0057ae;">\`</span><span style="color:#bf0303;"> with </span><span style="color:#0057ae;">\$</span><span style="color:#bf0303;"> escapes </span><span style="color:#0057ae;">\&quot;</span><span style="color:#bf0303;"> &quot;</span><span style="font-weight:bold;">;</span>
0074 
0075 
0076 <span style="color:#898887;"># keywords are black, builtins dark purple and common commands lighter purple</span>
0077 <span style="color:#644a9b;font-weight:bold;">set</span>
0078 <span style="color:#644a9b;font-weight:bold;">exit</span>
0079 <span style="color:#644a9b;">login</span>
0080 
0081 
0082 <span style="color:#898887;"># Other colorings:</span>
0083 <span style="color:#644a9b;">error()</span> <span style="font-weight:bold;">{</span>
0084     <span style="color:#644a9b;">cat</span> /usr/bin/lesspipe.sh
0085     <span style="color:#0095ff;font-weight:bold;">runscript</span> <span style="color:#ca60ca;">&gt;&amp;</span> redir.bak
0086     <span style="color:#644a9b;font-weight:bold;">exec</span> <span style="color:#b08000;">3</span><span style="color:#ca60ca;">&gt;&amp;</span><span style="color:#b08000;">4</span>
0087 <span style="font-weight:bold;">}</span>
0088 
0089 
0090 <span style="color:#898887;"># do - done make code blocks</span>
0091 <span style="font-weight:bold;">while</span> <span style="color:#644a9b;font-weight:bold;">[</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">p</span> <span style="color:#006e28;">-lt</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">q</span> <span style="color:#644a9b;font-weight:bold;">]</span>
0092 <span style="font-weight:bold;">do</span>
0093     <span style="color:#644a9b;">chown</span> 0644 <span style="color:#0057ae;">$</span><span style="color:#0057ae;">file</span>.<span style="color:#0057ae;">$</span><span style="color:#0057ae;">p</span>
0094 <span style="font-weight:bold;">done</span>
0095 
0096 
0097 <span style="color:#898887;"># braces as well</span>
0098 <span style="color:#0095ff;font-weight:bold;">run_prog</span> <span style="font-weight:bold;">|</span> <span style="color:#644a9b;">sort</span> <span style="color:#0057ae;">-u</span> <span style="font-weight:bold;">|</span>
0099 <span style="font-weight:bold;">{</span>
0100     <span style="color:#644a9b;font-weight:bold;">echo</span> Header
0101     <span style="font-weight:bold;">while</span> <span style="color:#644a9b;font-weight:bold;">read</span> <span style="color:#0057ae;">a</span> <span style="color:#0057ae;">b</span> <span style="color:#0057ae;">d</span>
0102     <span style="font-weight:bold;">do</span>
0103         <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">a</span>/<span style="color:#0057ae;">$</span><span style="color:#0057ae;">b</span>/<span style="color:#0057ae;">$</span><span style="color:#0057ae;">c</span>
0104     <span style="font-weight:bold;">done</span>
0105     <span style="color:#644a9b;font-weight:bold;">echo</span> Footer
0106 <span style="font-weight:bold;">}</span>
0107 
0108 
0109 <span style="color:#898887;"># Any constructions can be nested:</span>
0110 <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#bf0303;">&quot;A long string with </span><span style="color:#0057ae;">$(</span>
0111     <span style="font-weight:bold;">if</span> <span style="color:#644a9b;font-weight:bold;">[</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">count</span> <span style="color:#006e28;">-gt</span> 100 <span style="color:#644a9b;font-weight:bold;">]</span> <span style="font-weight:bold;">;</span> <span style="font-weight:bold;">then</span>
0112         <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#bf0303;">&quot;much&quot;</span>
0113     <span style="font-weight:bold;">else</span>
0114         <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#bf0303;">&quot;not much&quot;</span>
0115     <span style="font-weight:bold;">fi</span> <span style="color:#0057ae;">)</span><span style="color:#bf0303;"> substitutions.&quot;</span> <span style="font-weight:bold;">;</span>
0116 
0117 
0118 <span style="color:#898887;"># Even the case construct is correctly folded:</span>
0119 <span style="color:#644a9b;font-weight:bold;">test</span> <span style="color:#0057ae;">-f</span> blaat <span style="font-weight:bold;">&amp;&amp;</span>
0120 <span style="font-weight:bold;">(</span>    <span style="color:#0095ff;font-weight:bold;">do_something</span>
0121     <span style="font-weight:bold;">case</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">p</span> <span style="font-weight:bold;">in</span>
0122         <span style="color:#006e28;">*</span><span style="color:#ff5500;">bak</span><span style="font-weight:bold;">)</span>
0123             <span style="color:#0095ff;font-weight:bold;">do_bak</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">p</span>
0124             <span style="font-weight:bold;">;;</span>
0125         <span style="color:#006e28;">*</span><span style="font-weight:bold;">)</span>
0126             <span style="color:#0095ff;font-weight:bold;">dont_bak</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">p</span>
0127             <span style="font-weight:bold;">;;</span>
0128     <span style="font-weight:bold;">esac</span>
0129 <span style="font-weight:bold;">)</span> <span style="color:#898887;"># despite the extra parentheses in the case construction.</span>
0130 
0131 
0132 <span style="color:#898887;"># more control flow</span>
0133 <span style="font-weight:bold;">while</span> <span style="color:#644a9b;font-weight:bold;">:</span><span style="font-weight:bold;">;</span>
0134   <span style="font-weight:bold;">break</span>
0135   <span style="font-weight:bold;">continue</span>
0136   <span style="font-weight:bold;">return</span>
0137 <span style="font-weight:bold;">done</span>
0138 
0139 
0140 <span style="color:#898887;"># variable assignments:</span>
0141 <span style="color:#0057ae;">DIR</span><span style="color:#ca60ca;">=</span>/dev
0142 <span style="color:#0057ae;">p</span><span style="color:#ca60ca;">=</span><span style="font-weight:bold;">`</span><span style="color:#644a9b;">ls</span><span style="font-weight:bold;">`</span>
0143 <span style="color:#0057ae;">LC_ALL</span><span style="color:#ca60ca;">=</span><span style="color:#bf0303;">&quot;nl&quot;</span> <span style="color:#644a9b;">dcop</span> <span style="color:#bf0303;">'kate*'</span>
0144 <span style="color:#0057ae;">_VAR</span><span style="color:#ca60ca;">=</span>val
0145 <span style="color:#0057ae;">ARR</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">(</span>this is an array<span style="color:#0057ae;">)</span>
0146 <span style="color:#0057ae;">ARR2</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">(</span><span style="color:#ca60ca;">[</span>this<span style="color:#ca60ca;">]</span><span style="color:#0057ae;">=</span>too <span style="color:#ca60ca;">[</span>and<span style="color:#ca60ca;">]</span><span style="color:#0057ae;">=</span><span style="color:#bf0303;">&quot;this too&quot;</span><span style="color:#0057ae;">)</span>
0147 <span style="color:#0057ae;">usage</span><span style="color:#ca60ca;">=</span><span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">0</span><span style="color:#bf0303;"> -- version </span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">VERSION</span>
0148 <span style="color:#bf0303;">Multiple lines of output</span>
0149 <span style="color:#bf0303;">can be possible.&quot;</span>
0150 <span style="color:#0057ae;">ANSWER</span><span style="color:#ca60ca;">=</span>yes  <span style="color:#898887;"># here 'yes' isn't highlighed as command</span>
0151 
0152 
0153 <span style="color:#898887;"># Some commands expect variable names, these are colored correctly:</span>
0154 <span style="color:#644a9b;font-weight:bold;">export</span> <span style="color:#0057ae;">PATH</span><span style="color:#ca60ca;">=</span>/my/bin:<span style="color:#0057ae;">$</span><span style="color:#0057ae;">PATH</span> <span style="color:#0057ae;">BLAAT</span>
0155 <span style="color:#644a9b;font-weight:bold;">export</span> <span style="color:#0057ae;">A</span> <span style="color:#0057ae;">B</span> <span style="color:#0057ae;">D</span>
0156 <span style="color:#644a9b;font-weight:bold;">local</span> <span style="color:#0057ae;">p</span><span style="color:#ca60ca;">=</span>3  <span style="color:#0057ae;">x</span>  <span style="color:#0057ae;">y</span><span style="color:#ca60ca;">=</span><span style="color:#bf0303;">'\'</span>
0157 <span style="color:#644a9b;font-weight:bold;">read</span> <span style="color:#0057ae;">x</span> <span style="color:#0057ae;">y</span> <span style="color:#0057ae;">z</span> <span style="color:#ca60ca;">&lt;&lt;&lt;</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">hallo</span>
0158 <span style="color:#644a9b;font-weight:bold;">unset</span> <span style="color:#0057ae;">B</span>
0159 <span style="color:#644a9b;font-weight:bold;">declare</span> <span style="color:#0057ae;">-a</span> <span style="color:#0057ae;">VAR1</span> <span style="color:#0057ae;">VAR2</span> <span style="font-weight:bold;">&amp;&amp;</span> <span style="color:#644a9b;font-weight:bold;">exit</span>
0160 <span style="color:#644a9b;font-weight:bold;">declare</span> <span style="color:#0057ae;">less</span> <span style="color:#0057ae;">a</span> <span style="font-weight:bold;">&amp;&amp;</span> <span style="color:#0095ff;font-weight:bold;">b</span>
0161 <span style="color:#644a9b;font-weight:bold;">declare</span> <span style="color:#0057ae;">a</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">(</span>1 2<span style="color:#0057ae;">)</span>
0162 <span style="color:#644a9b;font-weight:bold;">getopts</span> <span style="color:#ca60ca;">:</span>h<span style="color:#ca60ca;">:</span>l<span style="color:#ca60ca;">::</span>d <span style="color:#0057ae;">arg</span>
0163 <span style="color:#644a9b;font-weight:bold;">read</span> <span style="color:#898887;">#comment</span>
0164 <span style="color:#644a9b;font-weight:bold;">let</span> <span style="color:#0057ae;">a</span><span style="color:#ca60ca;">=</span><span style="color:#b08000;">4</span><span style="color:#ca60ca;">+</span><span style="color:#b08000;">4</span> <span style="color:#b08000;">3</span><span style="color:#ca60ca;">+</span><span style="color:#0057ae;">a</span> <span style="color:#0057ae;">b</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">c</span><span style="color:#ca60ca;">+</span><span style="color:#b08000;">3</span> <span style="color:#0057ae;">d</span><span style="color:#ca60ca;">+</span><span style="color:#b08000;">3</span> <span style="color:#0057ae;">d</span><span style="color:#006e28;">*</span>4 <span style="color:#898887;"># * is a glob</span>
0165 
0166 <span style="color:#898887;"># options are recoqnized:</span>
0167 <span style="color:#644a9b;">zip</span> <span style="color:#0057ae;">-f</span><span style="color:#ca60ca;">=</span>file.zip
0168 <span style="color:#0095ff;font-weight:bold;">./configure</span>  <span style="color:#0057ae;">--destdir</span><span style="color:#ca60ca;">=</span>/usr
0169 <span style="color:#644a9b;">make</span>  destdir=/usr/
0170 
0171 
0172 <span style="color:#898887;"># [[ and [ correctly need spaces to be regarded as structure,</span>
0173 <span style="color:#898887;"># otherwise they are patterns (currently treated as normal text)</span>
0174 <span style="font-weight:bold;">if</span> <span style="color:#644a9b;font-weight:bold;">[</span> <span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">p</span><span style="color:#bf0303;">&quot;</span> <span style="color:#006e28;">==</span> <span style="color:#bf0303;">&quot;&quot;</span> <span style="color:#644a9b;font-weight:bold;">]</span> <span style="font-weight:bold;">;</span> <span style="font-weight:bold;">then</span>
0175     <span style="color:#644a9b;">ls</span> /usr/bin/<span style="color:#006e28;">[</span><span style="color:#bf0303;">a</span><span style="color:#ca60ca;">-</span><span style="color:#bf0303;">z</span><span style="color:#006e28;">]*</span>
0176 <span style="font-weight:bold;">elif</span> <span style="font-weight:bold;">[[</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">p</span> <span style="color:#006e28;">==</span> 0 <span style="font-weight:bold;">]]</span> <span style="font-weight:bold;">;</span> <span style="font-weight:bold;">then</span>
0177     <span style="color:#644a9b;">ls</span> /usr/share/<span style="color:#0057ae;">$</span><span style="color:#0057ae;">p</span>
0178 <span style="font-weight:bold;">fi</span>
0179 
0180 <span style="color:#898887;"># Fixed:</span>
0181 <span style="color:#644a9b;">ls</span> a<span style="color:#006e28;">[</span><span style="color:#bf0303;">ab</span><span style="color:#006e28;">]*</span>       <span style="color:#898887;"># dont try to interprete as assignment with subscript (fixed)</span>
0182 <span style="color:#0057ae;">a</span><span style="color:#ca60ca;">[</span>ab<span style="color:#ca60ca;">]</span>
0183 <span style="color:#0057ae;">a</span><span style="color:#ca60ca;">[</span>ab<span style="color:#ca60ca;">]</span><span style="color:#ca60ca;">=</span>sa
0184 
0185 
0186 <span style="color:#898887;"># Here documents are difficult to catch:</span>
0187 <span style="color:#644a9b;">cat</span> <span style="color:#ca60ca;">&gt;</span> myfile <span style="color:#ca60ca;">&lt;&lt; __EOF__</span>
0188 <span style="color:#bf0303;">You're right, this is definitely no bash code</span>
0189 <span style="color:#bf0303;">But ls more </span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">parameters</span><span style="color:#bf0303;"> should be expanded.</span>
0190 <span style="color:#ca60ca;">__EOF__</span>
0191 
0192 
0193 <span style="color:#898887;"># quoted:</span>
0194 <span style="color:#644a9b;">cat</span> <span style="color:#ca60ca;">&lt;&lt; &quot;EOF&quot;</span> <span style="font-weight:bold;">|</span> <span style="color:#644a9b;">egrep</span> <span style="color:#bf0303;">&quot;this&quot;</span> <span style="color:#ca60ca;">&gt;&amp;</span><span style="color:#b08000;">4</span>   <span style="color:#898887;"># the rest of the line is still considered bash source</span>
0195 <span style="color:#bf0303;">You're right, this is definitely no bash code</span>
0196 <span style="color:#bf0303;">But ls more $parameters should be expanded. :-&gt;</span>
0197 <span style="color:#ca60ca;">EOF</span>
0198 
0199 <span style="color:#644a9b;">cat</span> <span style="color:#ca60ca;">&lt;&lt;bla</span> <span style="font-weight:bold;">||</span> <span style="color:#644a9b;font-weight:bold;">exit</span>
0200 <span style="color:#bf0303;">bla bla</span>
0201 <span style="color:#ca60ca;">bla</span>
0202 
0203 
0204 <span style="color:#898887;"># indented:</span>
0205 <span style="font-weight:bold;">if</span> <span style="color:#644a9b;font-weight:bold;">true</span>
0206 <span style="font-weight:bold;">then</span>
0207     <span style="color:#644a9b;">cat</span> <span style="color:#ca60ca;">&lt;&lt;- EOF</span>
0208 <span style="color:#bf0303;">       Indented text with a </span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">dollar</span><span style="color:#bf0303;"> or </span><span style="color:#0057ae;">\$</span><span style="color:#bf0303;">two</span>
0209 <span style="color:#ca60ca;">   EOF</span>
0210 <span style="font-weight:bold;">elif</span> <span style="color:#644a9b;font-weight:bold;">[</span> <span style="color:#006e28;">-d</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">file</span> <span style="color:#644a9b;font-weight:bold;">]</span><span style="font-weight:bold;">;</span> <span style="font-weight:bold;">then</span>
0211     <span style="color:#644a9b;">cat</span> <span style="color:#ca60ca;">&lt;&lt;- &quot;EOF&quot;</span>
0212 <span style="color:#bf0303;">       Indented text without a $dollar</span>
0213 <span style="color:#ca60ca;">   EOF</span>
0214 <span style="font-weight:bold;">fi</span>
0215 
0216 <span style="font-weight:bold;">if</span> <span style="color:#006e28;">! </span><span style="font-weight:bold;">{</span> <span style="color:#0095ff;font-weight:bold;">cmd1</span> <span style="font-weight:bold;">&amp;&amp;</span> <span style="color:#0095ff;font-weight:bold;">cmd2</span> <span style="font-weight:bold;">;</span> <span style="font-weight:bold;">}</span><span style="font-weight:bold;">;</span> <span style="font-weight:bold;">then</span> <span style="color:#644a9b;font-weight:bold;">echo</span> ok <span style="font-weight:bold;">;</span> <span style="font-weight:bold;">fi</span>
0217 <span style="font-weight:bold;">if</span> <span style="color:#006e28;">! </span><span style="font-weight:bold;">{</span><span style="color:#0095ff;font-weight:bold;">cmd1</span> <span style="font-weight:bold;">&amp;&amp;</span> <span style="color:#0095ff;font-weight:bold;">cmd2</span><span style="font-weight:bold;">}</span><span style="font-weight:bold;">;</span> <span style="font-weight:bold;">then</span> <span style="color:#644a9b;font-weight:bold;">echo</span> ok <span style="font-weight:bold;">;</span> <span style="font-weight:bold;">fi</span>
0218 <span style="font-weight:bold;">if</span> <span style="color:#006e28;">! </span><span style="color:#0095ff;font-weight:bold;">cmd1</span> arg<span style="font-weight:bold;">;</span> <span style="font-weight:bold;">then</span> <span style="color:#644a9b;font-weight:bold;">echo</span> ok <span style="font-weight:bold;">;</span> <span style="font-weight:bold;">fi</span>
0219 
0220 <span style="font-weight:bold;">case</span> 1 <span style="font-weight:bold;">in</span>
0221 <span style="color:#ff5500;">2</span><span style="font-weight:bold;">)</span> <span style="color:#644a9b;font-weight:bold;">echo</span> xxx<span style="font-weight:bold;">;</span>
0222 <span style="font-weight:bold;">;;</span>
0223 <span style="color:#006e28;">?</span><span style="font-weight:bold;">)</span> <span style="color:#0095ff;font-weight:bold;">foo</span> <span style="font-weight:bold;">||</span> <span style="color:#0095ff;font-weight:bold;">yyy</span> <span style="font-weight:bold;">;</span> <span style="color:#0095ff;font-weight:bold;">foo</span> abc <span style="font-weight:bold;">||</span> <span style="color:#644a9b;font-weight:bold;">echo</span> abc <span style="font-weight:bold;">;;</span>
0224 <span style="color:#ff5500;">1</span><span style="font-weight:bold;">)</span> <span style="color:#644a9b;font-weight:bold;">echo</span> yyy<span style="font-weight:bold;">;</span>
0225 <span style="font-weight:bold;">esac</span>
0226 
0227 <span style="color:#644a9b;">ls</span> <span style="color:#898887;">#should be outside of case 1 folding block</span>
0228 
0229 <span style="font-weight:bold;">for</span> i <span style="font-weight:bold;">in</span> <span style="font-weight:bold;">`</span><span style="color:#644a9b;">ls</span> tests/auto/output/<span style="color:#006e28;">*</span>.html<span style="font-weight:bold;">`</span><span style="font-weight:bold;">;</span> <span style="font-weight:bold;">do</span>
0230     <span style="color:#0057ae;">refFile</span><span style="color:#ca60ca;">=</span><span style="font-weight:bold;">`</span><span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">i</span> <span style="font-weight:bold;">|</span> <span style="color:#644a9b;">sed</span> <span style="color:#0057ae;">-e</span> s,build,src, <span style="font-weight:bold;">|</span> <span style="color:#644a9b;">sed</span> <span style="color:#0057ae;">-e</span> s,output,reference, <span style="font-weight:bold;">|</span> <span style="color:#644a9b;">sed</span> <span style="color:#0057ae;">-e</span> s,.html,.ref.html,<span style="font-weight:bold;">`</span>
0231     <span style="color:#644a9b;">cp</span> <span style="color:#0057ae;">-v</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">i</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">refFile</span>
0232 <span style="font-weight:bold;">done</span>
0233 
0234 <span style="color:#898887;">## &gt;Settings &gt;Configure Kate &gt;Fonts &amp; Colors &gt;Highlitghing Text Styles &gt;Scripts/Bash &gt;Option &gt;Change colors to some distinct color</span>
0235 <span style="color:#898887;">## 1- In following line the -ucode should not be colored as option</span>
0236 
0237 <span style="color:#0095ff;font-weight:bold;">pacman</span> <span style="color:#0057ae;">-Syu</span> <span style="color:#0057ae;">--needed</span> intel-ucode grub
0238 <span style="color:#0095ff;font-weight:bold;">pacman</span> <span style="color:#0057ae;">-syu</span> <span style="color:#0057ae;">--needed</span> intel-ucode grub
0239 
0240 <span style="font-weight:bold;">[[</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">line_name</span> <span style="color:#006e28;">=~</span> <span style="color:#0057ae;">\{</span><span style="color:#ca60ca;">([</span><span style="color:#ff5500;">0</span><span style="color:#ca60ca;">-</span><span style="color:#ff5500;">9</span><span style="color:#ca60ca;">]</span><span style="color:#0057ae;">{</span><span style="color:#b08000;">1</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">}</span><span style="color:#ca60ca;">)</span><span style="color:#0057ae;">\}\{</span><span style="color:#ca60ca;">([</span><span style="color:#ff5500;">0</span><span style="color:#ca60ca;">-</span><span style="color:#ff5500;">9</span><span style="color:#ca60ca;">]</span><span style="color:#0057ae;">{</span><span style="color:#b08000;">1</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">}</span><span style="color:#ca60ca;">)</span><span style="color:#0057ae;">\}</span><span style="color:#ca60ca;">(</span><span style="color:#006e28;">.*</span><span style="color:#ca60ca;">)</span> <span style="font-weight:bold;">]]</span>
0241 <span style="font-weight:bold;">[[</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">name</span> <span style="color:#006e28;">=~</span> <span style="color:#ca60ca;">(</span><span style="color:#006e28;">.*</span><span style="color:#ca60ca;">)</span><span style="color:#ff5500;">_</span><span style="color:#ca60ca;">(</span><span style="color:#ff5500;">S</span><span style="color:#ca60ca;">[</span><span style="color:#ff5500;">0</span><span style="color:#ca60ca;">-</span><span style="color:#ff5500;">9</span><span style="color:#ca60ca;">]</span><span style="color:#0057ae;">{</span><span style="color:#b08000;">2</span><span style="color:#0057ae;">}</span><span style="color:#ca60ca;">)(</span><span style="color:#ff5500;">E</span><span style="color:#ca60ca;">[</span><span style="color:#ff5500;">0</span><span style="color:#ca60ca;">-</span><span style="color:#ff5500;">9</span><span style="color:#ca60ca;">]</span><span style="color:#0057ae;">{</span><span style="color:#b08000;">2</span><span style="color:#ca60ca;">,</span><span style="color:#b08000;">3</span><span style="color:#0057ae;">}</span><span style="color:#ca60ca;">[</span><span style="color:#ff5500;">a</span><span style="color:#ca60ca;">-</span><span style="color:#ff5500;">z</span><span style="color:#ca60ca;">]</span><span style="color:#0057ae;">{</span><span style="color:#b08000;">0</span><span style="color:#ca60ca;">,</span><span style="color:#b08000;">1</span><span style="color:#0057ae;">}</span><span style="color:#ca60ca;">)</span><span style="color:#ff5500;">_</span><span style="color:#ca60ca;">(</span><span style="color:#006e28;">.*</span><span style="color:#ca60ca;">)</span> <span style="font-weight:bold;">]]</span>
0242 <span style="color:#644a9b;">rm</span> /data/<span style="color:#0057ae;">{</span>hello1<span style="color:#ca60ca;">,</span>hello2<span style="color:#0057ae;">}</span>/input/<span style="color:#0057ae;">{</span>bye1<span style="color:#ca60ca;">,</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">bye2</span><span style="color:#0057ae;">}</span>/si<span style="color:#0057ae;">{</span>a<span style="color:#ca60ca;">,</span><span style="color:#0057ae;">${</span><span style="color:#0057ae;">b</span><span style="color:#0057ae;">}</span><span style="color:#ca60ca;">,</span>c<span style="color:#0057ae;">{</span>k<span style="color:#ca60ca;">,</span>p<span style="color:#0057ae;">{</span>e<span style="color:#ca60ca;">,</span>a<span style="color:#0057ae;">}}}</span>/<span style="color:#006e28;">*</span>.non
0243 <span style="color:#644a9b;">rm</span> /data/{aa,<span style="color:#0057ae;">{</span>e<span style="color:#ca60ca;">,</span>i<span style="color:#0057ae;">}</span>t<span style="color:#0057ae;">{</span>b<span style="color:#ca60ca;">,</span>c<span style="color:#0057ae;">}</span> <span style="color:#898887;"># Not closed</span>
0244 <span style="color:#644a9b;">rm</span> /data/<span style="color:#0057ae;">{</span>aa<span style="color:#ca60ca;">,</span><span style="color:#0057ae;">{</span>e<span style="color:#ca60ca;">,</span>i<span style="color:#0057ae;">}</span>t<span style="color:#0057ae;">{</span>b<span style="color:#ca60ca;">,</span>c<span style="color:#0057ae;">}}</span>
0245 <span style="color:#644a9b;">rm</span> /data/<span style="color:#0057ae;">{</span>aa<span style="color:#ca60ca;">,</span>{i}<span style="color:#0057ae;">}</span>
0246 <span style="color:#644a9b;">rm</span> /data{aa{bb{cc{dd}}}}
0247 <span style="color:#644a9b;">rm</span> /data{aaa<span style="font-weight:bold;">`</span><span style="color:#0095ff;font-weight:bold;">aaa}aa</span><span style="font-weight:bold;">`</span>aaa}a
0248 
0249 <span style="color:#898887;"># </span><span style="color:#ca9219;background-color:#451e1a;font-weight:bold;">TODO</span><span style="color:#898887;"> `</span>
0250 
0251 <span style="color:#898887;"># commands</span>
0252 <span style="color:#0095ff;font-weight:bold;">abc</span>
0253 <span style="color:#644a9b;">cp</span>
0254 <span style="color:#644a9b;font-weight:bold;">:</span>
0255 <span style="color:#644a9b;font-weight:bold;">.</span>
0256 <span style="color:#0095ff;font-weight:bold;">:#nokeyword</span>
0257 <span style="color:#0095ff;font-weight:bold;">path/cmd</span>
0258 <span style="color:#0095ff;font-weight:bold;">ec</span><span style="color:#0057ae;">\</span>
0259 <span style="color:#0095ff;font-weight:bold;">ho</span>
0260 <span style="color:#0095ff;font-weight:bold;">2</span>
0261 <span style="color:#bf0303;">'a'</span><span style="color:#0095ff;font-weight:bold;">c</span>
0262 <span style="color:#0057ae;">$</span><span style="color:#0057ae;">ab</span>
0263 <span style="color:#0057ae;">${</span><span style="color:#0057ae;">ab</span><span style="color:#0057ae;">}</span><span style="color:#0095ff;font-weight:bold;">c</span>
0264 <span style="color:#0095ff;font-weight:bold;">\ a</span>
0265 <span style="color:#0095ff;font-weight:bold;">!a</span>
0266 <span style="color:#bf0303;">'a'</span><span style="color:#0095ff;font-weight:bold;">[</span>
0267 <span style="color:#0095ff;font-weight:bold;">\ [</span>
0268 <span style="color:#0095ff;font-weight:bold;">!a[</span>
0269 <span style="color:#0095ff;font-weight:bold;">a{}d</span>
0270 <span style="color:#0095ff;font-weight:bold;">a{bc}d</span>
0271 <span style="color:#0095ff;font-weight:bold;">a</span><span style="color:#0057ae;">{b</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">c}</span><span style="color:#0095ff;font-weight:bold;">d</span>
0272 <span style="color:#0095ff;font-weight:bold;">a</span><span style="color:#bf0303;">'b'</span><span style="color:#0095ff;font-weight:bold;">c</span>
0273 <span style="color:#0095ff;font-weight:bold;">a</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">bc</span>
0274 <span style="color:#0095ff;font-weight:bold;">a</span><span style="color:#0057ae;">${</span><span style="color:#0057ae;">bc</span><span style="color:#0057ae;">}</span><span style="color:#0095ff;font-weight:bold;">d</span>
0275 <span style="color:#0095ff;font-weight:bold;">a\ b</span>
0276 <span style="color:#0095ff;font-weight:bold;">a!b</span>
0277 
0278 <span style="color:#898887;"># commands + params</span>
0279 <span style="color:#0095ff;font-weight:bold;">shortopt</span> <span style="color:#0057ae;">-ol</span> <span style="color:#0057ae;">-f</span>/fd/fd <span style="color:#0057ae;">-hfd</span>/fds <span style="color:#0057ae;">-</span> <span style="color:#0057ae;">-ol</span><span style="color:#bf0303;">'a'</span><span style="color:#0057ae;">b</span> <span style="color:#0057ae;">-f</span><span style="color:#bf0303;">'a'</span>/fd/fd <span style="color:#0057ae;">-h</span><span style="color:#bf0303;">'a'</span><span style="color:#0057ae;">fd</span>/fds
0280 <span style="color:#0095ff;font-weight:bold;">longopt</span> <span style="color:#0057ae;">--long-a</span> <span style="color:#0057ae;">--long-b</span><span style="color:#ca60ca;">=</span>value <span style="color:#0057ae;">--file</span><span style="color:#ca60ca;">=</span><span style="color:#006e28;">*</span> <span style="color:#0057ae;">--file</span><span style="color:#ca60ca;">=</span>file<span style="color:#006e28;">*</span> <span style="color:#0057ae;">--file</span><span style="color:#ca60ca;">=</span>dir/file
0281 <span style="color:#0095ff;font-weight:bold;">longopt</span> <span style="color:#0057ae;">--long-a</span><span style="color:#bf0303;">'a'</span><span style="color:#0057ae;">b</span> <span style="color:#0057ae;">--long</span><span style="color:#bf0303;">'a'</span><span style="color:#0057ae;">-b</span><span style="color:#ca60ca;">=</span>value <span style="color:#0057ae;">--fi</span><span style="color:#bf0303;">'a'</span><span style="color:#0057ae;">le</span><span style="color:#ca60ca;">=</span><span style="color:#006e28;">*</span>
0282 <span style="color:#0095ff;font-weight:bold;">noopt</span> 3 3d <span style="color:#0057ae;">-f</span> <span style="color:#0057ae;">--</span> <span style="color:#0057ae;">-f</span> <span style="color:#0057ae;">--xx</span> dir/file
0283 <span style="color:#0095ff;font-weight:bold;">opt</span> param<span style="color:#006e28;">#</span>nocomment ab<span style="color:#bf0303;">'a'</span>cd <span style="color:#006e28;">~</span>a .a <span style="color:#898887;">#comments</span>
0284 <span style="color:#0095ff;font-weight:bold;">path</span> path/file dir/ / // 3/f a@/ <span style="color:#bf0303;">'a'</span>/b d/<span style="color:#bf0303;">'a'</span>b a<span style="color:#0057ae;">\ </span>d/f f/f<span style="color:#0057ae;">\</span>
0285 ile
0286 <span style="color:#0095ff;font-weight:bold;">path</span> ~ ~/ <span style="color:#006e28;">~</span>a/ . .. ./a ../a
0287 <span style="color:#0095ff;font-weight:bold;">path</span> /path/<span style="color:#006e28;">*</span> /path/f<span style="color:#006e28;">*</span> /path/f@ /path/f@<span style="color:#006e28;">(|)</span> {a/b} a{b}/c a/b{c} a/{b} a/{b}c
0288 <span style="color:#0095ff;font-weight:bold;">glob</span> <span style="color:#006e28;">?</span> <span style="color:#006e28;">*</span> <span style="color:#006e28;">?</span>f <span style="color:#006e28;">*</span>f f<span style="color:#006e28;">*</span> f<span style="color:#006e28;">?</span> <span style="color:#006e28;">**</span>/ ~/<span style="color:#006e28;">*</span> <span style="color:#006e28;">~*</span> /path/f<span style="color:#006e28;">*</span> <span style="color:#bf0303;">'a'</span><span style="color:#006e28;">*</span> <span style="color:#bf0303;">'a'</span>f/<span style="color:#006e28;">?</span>
0289 <span style="color:#898887;"># ksh pattern is in conflict with extended pattern</span>
0290 <span style="color:#0095ff;font-weight:bold;">extglob</span> @ @<span style="color:#ca60ca;">(*)</span> @<span style="color:#006e28;">(</span><span style="color:#ff5500;">f</span><span style="color:#006e28;">*|</span><span style="color:#ff5500;">f</span><span style="color:#006e28;">??(</span><span style="color:#ff5500;">f</span><span style="color:#006e28;">))</span> f!<span style="color:#006e28;">(</span><span style="color:#ff5500;">+</span><span style="color:#006e28;">(?(</span><span style="color:#ff5500;">@</span><span style="color:#006e28;">(*(</span><span style="color:#ff5500;">f</span><span style="color:#006e28;">)</span><span style="color:#ff5500;">f</span><span style="color:#006e28;">)</span><span style="color:#ff5500;">f</span><span style="color:#006e28;">)</span><span style="color:#ff5500;">f</span><span style="color:#006e28;">)</span><span style="color:#ff5500;">f</span><span style="color:#006e28;">)</span>f @<span style="color:#bf0303;">'a'</span>@<span style="color:#006e28;">(|)</span> a@<span style="color:#ca60ca;">(?)</span>
0291 <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#006e28;">*</span>.<span style="color:#006e28;">*~(</span><span style="color:#ff5500;">lex</span><span style="color:#006e28;">|</span><span style="color:#ff5500;">parse</span><span style="color:#006e28;">)</span>.<span style="color:#006e28;">[</span><span style="color:#bf0303;">ch</span><span style="color:#006e28;">]</span><span style="color:#ca60ca;">(^D^l1)</span>
0292 <span style="color:#644a9b;font-weight:bold;">echo</span> /tmp/foo<span style="color:#006e28;">*</span><span style="color:#ca60ca;">(u</span><span style="color:#b08000;">0</span><span style="color:#ca60ca;">^@</span><span style="color:#ca60ca;">:</span><span style="color:#0057ae;">t</span><span style="color:#ca60ca;">)</span> <span style="color:#006e28;">*</span><span style="color:#ca60ca;">(W</span><span style="color:#ca60ca;">,</span><span style="color:#ca60ca;">X)</span> <span style="color:#006e28;">*</span><span style="color:#ca60ca;">(%W)</span>
0293 <span style="color:#0095ff;font-weight:bold;">subs</span> f! f!! f!s <span style="color:#bf0303;">'a'</span>!s <span style="color:#0057ae;">\(</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">v</span> <span style="color:#0057ae;">{a</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">b}</span> {a} {a}/d {a<span style="color:#0057ae;">\,</span>} <span style="color:#0057ae;">{a</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">}</span> <span style="color:#0057ae;">{a</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">\}</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">b}</span> ds/<span style="color:#0057ae;">{</span>a<span style="color:#ca60ca;">,</span>b<span style="color:#0057ae;">}</span>sa/s
0294 
0295 <span style="color:#644a9b;">ls</span> !<span style="color:#006e28;">?</span>main
0296 <span style="color:#644a9b;">ls</span> <span style="color:#0057ae;">$(</span><span style="color:#644a9b;font-weight:bold;">echo</span> NF<span style="color:#0057ae;">)</span><span style="color:#ca60ca;">(</span><span style="color:#ca60ca;">:</span><span style="color:#0057ae;">a</span><span style="color:#ca60ca;">)</span>
0297 <span style="color:#644a9b;">ls</span> <span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">s.</span><span style="color:#bf0303;">:</span><span style="color:#ca60ca;">.</span><span style="color:#0057ae;">)</span><span style="color:#0057ae;">PATH</span><span style="color:#0057ae;">}</span> <span style="font-weight:bold;">|</span> <span style="color:#644a9b;">grep</span> <span style="color:#bf0303;">'^...s'</span>
0298 <span style="color:#644a9b;">ls</span> <span style="color:#ca60ca;">(#i)</span><span style="color:#006e28;">*</span>.pmm
0299 <span style="color:#644a9b;">ls</span> <span style="color:#ca60ca;">(#ia</span><span style="color:#b08000;">1</span><span style="color:#ca60ca;">)</span>README
0300 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">(*</span><span style="color:#ff5500;">/</span><span style="color:#006e28;">)#</span>bar
0301 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">(</span><span style="color:#ff5500;">../</span><span style="color:#006e28;">)#</span>junk2/down.txt<span style="color:#ca60ca;">(</span><span style="color:#ca60ca;">:</span><span style="color:#0057ae;">a</span><span style="color:#ca60ca;">)</span>
0302 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">(^(</span><span style="color:#ff5500;">backup</span><span style="color:#006e28;">*|</span><span style="color:#ff5500;">cache</span><span style="color:#006e28;">*|</span><span style="color:#ff5500;">list</span><span style="color:#006e28;">*|</span><span style="color:#ff5500;">tmp</span><span style="color:#006e28;">)</span><span style="color:#ff5500;">/</span><span style="color:#006e28;">)##*</span><span style="color:#ca60ca;">(.)</span>
0303 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">(</span><span style="color:#ff5500;">_</span><span style="color:#006e28;">|)</span>fred.php
0304 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">(</span><span style="color:#ff5500;">dev</span><span style="color:#006e28;">*|</span><span style="color:#ff5500;">fred</span><span style="color:#006e28;">*|</span><span style="color:#ff5500;">joe</span><span style="color:#006e28;">*)</span>/index<span style="color:#006e28;">*</span>
0305 <span style="color:#644a9b;">ls</span> <span style="color:#ca60ca;">(x*~x</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">3-5</span><span style="color:#ca60ca;">]</span><span style="color:#ca60ca;">)</span>
0306 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">(</span><span style="color:#ff5500;">xx</span><span style="color:#006e28;">|</span><span style="color:#ff5500;">yy</span><span style="color:#006e28;">)</span>
0307 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">*</span><span style="color:#ca60ca;">(*@)</span>
0308 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">*</span><span style="color:#ca60ca;">(+</span><span style="color:#644a9b;">nt</span><span style="color:#ca60ca;">)</span>
0309 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">*(</span><span style="color:#ff5500;">.</span><span style="color:#006e28;">)^</span>php<span style="color:#006e28;">~*</span>.c<span style="color:#006e28;">~*</span>.txt
0310 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">*</span><span style="color:#ca60ca;">(.L</span><span style="color:#b08000;">-20</span><span style="color:#ca60ca;">)</span>
0311 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">*</span><span style="color:#ca60ca;">(.L</span><span style="color:#b08000;">0</span><span style="color:#ca60ca;">)</span>
0312 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">*</span><span style="color:#ca60ca;">(.O</span>m<span style="color:#ca60ca;">[</span><span style="color:#b08000;">1</span><span style="color:#ca60ca;">,</span><span style="color:#b08000;">5</span><span style="color:#ca60ca;">]</span><span style="color:#ca60ca;">)</span>
0313 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">*</span><span style="color:#ca60ca;">(.^m</span><span style="color:#b08000;">0</span><span style="color:#ca60ca;">)</span>
0314 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">*</span><span style="color:#ca60ca;">(.e#</span>age 2017-10-01:00:00:00 2017-10-08:23:59:59<span style="color:#ca60ca;">#)</span> /tmp
0315 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">*</span><span style="color:#ca60ca;">(.e-</span>age 2018/09/01 2018/01/01<span style="color:#ca60ca;">-)</span>
0316 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">*</span><span style="color:#ca60ca;">(.f</span><span style="color:#b08000;">644</span><span style="color:#ca60ca;">)</span>
0317 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">*</span><span style="color:#ca60ca;">(.g:</span>root<span style="color:#ca60ca;">:)</span>
0318 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">*</span><span style="color:#ca60ca;">(.m</span><span style="color:#b08000;">-1</span><span style="color:#ca60ca;">)</span>
0319 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">*</span><span style="color:#ca60ca;">(.m</span>M<span style="color:#b08000;">+6</span><span style="color:#ca60ca;">)</span>
0320 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">*</span><span style="color:#ca60ca;">(.m</span>h<span style="color:#b08000;">+3</span><span style="color:#ca60ca;">)</span>
0321 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">*</span><span style="color:#ca60ca;">(.m</span>h<span style="color:#b08000;">-3</span><span style="color:#ca60ca;">)</span>
0322 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">*</span><span style="color:#ca60ca;">(.m</span>h<span style="color:#b08000;">3</span><span style="color:#ca60ca;">)</span>
0323 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">*</span><span style="color:#ca60ca;">(.m</span>w<span style="color:#b08000;">+2</span><span style="color:#ca60ca;">)</span>
0324 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">*</span><span style="color:#ca60ca;">(.o</span>m<span style="color:#ca60ca;">[</span><span style="color:#b08000;">0</span><span style="color:#ca60ca;">,</span><span style="color:#b08000;">5</span><span style="color:#ca60ca;">]</span><span style="color:#ca60ca;">e-</span>age 2017/09/01 2017/10/01<span style="color:#ca60ca;">-)</span>
0325 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">*</span><span style="color:#ca60ca;">(.o</span>m<span style="color:#ca60ca;">[</span><span style="color:#b08000;">2</span><span style="color:#ca60ca;">,</span><span style="color:#b08000;">$</span><span style="color:#ca60ca;">]</span><span style="color:#ca60ca;">)</span> old/
0326 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">*</span><span style="color:#ca60ca;">(.rwg:</span>nobody<span style="color:#ca60ca;">:u:</span>root<span style="color:#ca60ca;">:)</span>
0327 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">*</span><span style="color:#ca60ca;">(.u:</span>apache<span style="color:#ca60ca;">:)</span>
0328 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">*</span><span style="color:#ca60ca;">(/)</span>
0329 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">*</span><span style="color:#ca60ca;">(/^F)</span>
0330 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">*</span><span style="color:#ca60ca;">(L</span><span style="color:#b08000;">0</span><span style="color:#ca60ca;">f.</span>go-w<span style="color:#ca60ca;">.)</span>
0331 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">*</span><span style="color:#ca60ca;">(L</span>k<span style="color:#b08000;">+100</span><span style="color:#ca60ca;">)</span>
0332 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">*</span><span style="color:#ca60ca;">(L</span>m<span style="color:#b08000;">+2</span><span style="color:#ca60ca;">)</span>
0333 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">*</span><span style="color:#ca60ca;">(R)</span>
0334 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">*</span><span style="color:#ca60ca;">(</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">1</span><span style="color:#ca60ca;">,</span><span style="color:#b08000;">10</span><span style="color:#ca60ca;">]</span><span style="color:#ca60ca;">)</span>
0335 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">*</span><span style="color:#ca60ca;">(^/</span><span style="color:#ca60ca;">,</span><span style="color:#ca60ca;">f</span><span style="color:#b08000;">44</span><span style="color:#006e28;">?</span><span style="color:#ca60ca;">,</span><span style="color:#ca60ca;">f.</span>gu+w<span style="color:#ca60ca;">.</span><span style="color:#ca60ca;">,</span><span style="color:#ca60ca;">o</span>L<span style="color:#ca60ca;">+</span><span style="color:#644a9b;">rand</span><span style="color:#ca60ca;">,</span><span style="color:#ca60ca;">oe:</span><span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">cmd</span><span style="color:#bf0303;"> -x&quot;</span><span style="color:#ca60ca;">:P:</span>echo<span style="color:#ca60ca;">:</span><span style="color:#ca60ca;">:</span><span style="color:#0057ae;">h</span><span style="color:#ca60ca;">)</span>
0336 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">*</span><span style="color:#ca60ca;">(m</span><span style="color:#b08000;">4</span><span style="color:#ca60ca;">)</span>
0337 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">*</span><span style="color:#ca60ca;">(m</span>h<span style="color:#b08000;">0</span><span style="color:#ca60ca;">)</span>
0338 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">*</span><span style="color:#ca60ca;">(m</span>w<span style="color:#b08000;">3</span><span style="color:#ca60ca;">)</span>
0339 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">*</span><span style="color:#ca60ca;">(</span><span style="color:#0057ae;">${</span><span style="color:#0057ae;">globqualifiers</span><span style="color:#0057ae;">}</span><span style="color:#ca60ca;">N)</span>
0340 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">*</span><span style="color:#ca60ca;">(</span><span style="color:#0057ae;">\^</span><span style="color:#bf0303;">'/'</span><span style="color:#ca60ca;">)</span>
0341 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">**</span>.php
0342 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">**</span>/<span style="color:#006e28;">*</span><span style="color:#ca60ca;">(#ia</span><span style="color:#b08000;">2</span><span style="color:#ca60ca;">)</span>readme
0343 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">**</span>/<span style="color:#006e28;">*</span><span style="color:#ca60ca;">(-@)</span>
0344 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">**</span>/<span style="color:#006e28;">*</span><span style="color:#ca60ca;">(.)</span>
0345 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">**</span>/<span style="color:#006e28;">*</span><span style="color:#ca60ca;">(.</span><span style="color:#ca60ca;">:</span><span style="color:#0057ae;">g-w</span><span style="color:#ca60ca;">:</span><span style="color:#ca60ca;">)</span>
0346 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">**</span>/<span style="color:#006e28;">*</span><span style="color:#ca60ca;">(.L</span>m<span style="color:#b08000;">+10</span><span style="color:#ca60ca;">)</span>
0347 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">**</span>/<span style="color:#006e28;">*</span><span style="color:#ca60ca;">(D/e:</span><span style="color:#bf0303;">'[[ -e $REPLY/index.php &amp;&amp; -e $REPLY/index.html ]]'</span><span style="color:#ca60ca;">:)</span>
0348 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">**</span>/<span style="color:#006e28;">*</span><span style="color:#ca60ca;">(u</span><span style="color:#b08000;">0</span><span style="color:#ca60ca;">WL</span>k<span style="color:#b08000;">+10</span><span style="color:#ca60ca;">m</span><span style="color:#b08000;">0</span><span style="color:#ca60ca;">)</span>
0349 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">**</span>/<span style="color:#006e28;">*</span>.<span style="color:#006e28;">(</span><span style="color:#ff5500;">js</span><span style="color:#006e28;">|</span><span style="color:#ff5500;">php</span><span style="color:#006e28;">|</span><span style="color:#ff5500;">css</span><span style="color:#006e28;">)~(</span><span style="color:#ff5500;">djr</span><span style="color:#006e28;">|</span><span style="color:#ff5500;">libs</span><span style="color:#006e28;">|</span><span style="color:#ff5500;">dompdf</span><span style="color:#006e28;">)</span>/<span style="color:#006e28;">*~*</span>/junk/<span style="color:#006e28;">*</span>
0350 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">**</span>/<span style="color:#006e28;">*</span>.<span style="color:#006e28;">(</span><span style="color:#ff5500;">js</span><span style="color:#006e28;">|</span><span style="color:#ff5500;">php</span><span style="color:#006e28;">|</span><span style="color:#ff5500;">css</span><span style="color:#006e28;">)~(</span><span style="color:#ff5500;">libs</span><span style="color:#006e28;">|</span><span style="color:#ff5500;">locallibs</span><span style="color:#006e28;">|</span><span style="color:#ff5500;">test</span><span style="color:#006e28;">|</span><span style="color:#ff5500;">dompdf</span><span style="color:#006e28;">)</span>/<span style="color:#006e28;">*</span>
0351 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">**</span>/<span style="color:#006e28;">*</span>.<span style="color:#006e28;">(</span><span style="color:#ff5500;">php</span><span style="color:#006e28;">|</span><span style="color:#ff5500;">inc</span><span style="color:#006e28;">)</span>
0352 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">**</span>/<span style="color:#006e28;">*</span>.<span style="color:#006e28;">(</span><span style="color:#ff5500;">php</span><span style="color:#006e28;">|</span><span style="color:#ff5500;">inc</span><span style="color:#006e28;">)~(</span><span style="color:#ff5500;">libs</span><span style="color:#006e28;">|</span><span style="color:#ff5500;">locallibs</span><span style="color:#006e28;">)</span>/<span style="color:#006e28;">*</span><span style="color:#ca60ca;">(.O</span>L<span style="color:#ca60ca;">[</span><span style="color:#b08000;">1</span><span style="color:#ca60ca;">,</span><span style="color:#b08000;">5</span><span style="color:#ca60ca;">]</span><span style="color:#ca60ca;">)</span>
0353 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">**</span>/<span style="color:#006e28;">*</span>.txt<span style="color:#ca60ca;">(D.o</span>m<span style="color:#ca60ca;">[</span><span style="color:#b08000;">1</span><span style="color:#ca60ca;">,</span><span style="color:#b08000;">5</span><span style="color:#ca60ca;">]</span><span style="color:#ca60ca;">)</span>
0354 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">**</span>/<span style="color:#006e28;">*~*(</span><span style="color:#0057ae;">${</span><span style="color:#ca60ca;">~</span><span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">j/</span><span style="color:#bf0303;">|</span><span style="color:#ca60ca;">/</span><span style="color:#0057ae;">)</span><span style="color:#0057ae;">fignore</span><span style="color:#0057ae;">}}</span><span style="color:#006e28;">)</span><span style="color:#ca60ca;">(.^*)</span>
0355 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">**</span>/<span style="color:#006e28;">*~*</span>vssver.scc<span style="color:#ca60ca;">(.o</span>m<span style="color:#ca60ca;">[</span><span style="color:#b08000;">1</span><span style="color:#ca60ca;">,</span><span style="color:#b08000;">20</span><span style="color:#ca60ca;">]</span><span style="color:#ca60ca;">)</span>
0356 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">**</span>/<span style="color:#006e28;">*~</span>pdf/<span style="color:#006e28;">*</span><span style="color:#ca60ca;">(.m</span><span style="color:#b08000;">0</span><span style="color:#ca60ca;">o</span>m<span style="color:#ca60ca;">[</span><span style="color:#b08000;">1</span><span style="color:#ca60ca;">,</span><span style="color:#b08000;">10</span><span style="color:#ca60ca;">]</span><span style="color:#ca60ca;">)</span>
0357 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">**</span>/<span style="color:#006e28;">^(</span><span style="color:#ff5500;">vssver.scc</span><span style="color:#006e28;">|*</span><span style="color:#ff5500;">.ini</span><span style="color:#006e28;">)</span><span style="color:#ca60ca;">(.o</span>m<span style="color:#ca60ca;">[</span><span style="color:#b08000;">1</span><span style="color:#ca60ca;">,</span><span style="color:#b08000;">20</span><span style="color:#ca60ca;">]</span><span style="color:#ca60ca;">)</span>
0358 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">**</span>/<span style="color:#006e28;">^</span>vssver.scc<span style="color:#ca60ca;">(.o</span>m<span style="color:#ca60ca;">[</span><span style="color:#b08000;">1</span><span style="color:#ca60ca;">,</span><span style="color:#b08000;">20</span><span style="color:#ca60ca;">]</span><span style="color:#ca60ca;">)</span>
0359 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">**</span>/index.php<span style="color:#006e28;">~</span>dev<span style="color:#006e28;">*(</span><span style="color:#ff5500;">/</span><span style="color:#006e28;">*)##</span>
0360 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">**</span>/main.<span style="color:#0057ae;">{</span>php<span style="color:#ca60ca;">,</span>js<span style="color:#ca60ca;">,</span>css<span style="color:#0057ae;">}</span>
0361 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">*</span>.<span style="color:#006e28;">(</span><span style="color:#ff5500;">jpg</span><span style="color:#006e28;">|</span><span style="color:#ff5500;">gif</span><span style="color:#006e28;">|</span><span style="color:#ff5500;">png</span><span style="color:#006e28;">)</span><span style="color:#ca60ca;">(.)</span>
0362 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">*</span>.<span style="color:#006e28;">*</span><span style="color:#ca60ca;">(e-</span>age 2018/06/01 now<span style="color:#ca60ca;">-)</span>
0363 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">*</span>.<span style="color:#006e28;">*</span><span style="color:#ca60ca;">(m</span>M<span style="color:#b08000;">4</span><span style="color:#ca60ca;">)</span>
0364 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">*</span>.<span style="color:#006e28;">*~(</span><span style="color:#ff5500;">lex</span><span style="color:#006e28;">|</span><span style="color:#ff5500;">parse</span><span style="color:#006e28;">)</span>.<span style="color:#006e28;">[</span><span style="color:#bf0303;">ch</span><span style="color:#006e28;">]</span><span style="color:#ca60ca;">(^D^l1)</span>
0365 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">*</span>.<span style="color:#006e28;">*~[</span><span style="color:#bf0303;">a</span><span style="color:#ca60ca;">-</span><span style="color:#bf0303;">m</span><span style="color:#006e28;">]*</span><span style="color:#ca60ca;">(u:</span>nobody<span style="color:#ca60ca;">:g:</span>apache<span style="color:#ca60ca;">:.xX)</span>
0366 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">*</span>.c<span style="color:#ca60ca;">(#q</span><span style="color:#ca60ca;">:</span><span style="color:#0057ae;">s</span><span style="color:#ca60ca;">/#%</span><span style="color:#ca60ca;">(#b)</span><span style="color:#ff5500;">s</span><span style="color:#006e28;">(*)</span><span style="color:#ff5500;">.c</span><span style="color:#ca60ca;">/</span><span style="color:#bf0303;">'S${match[1]}.C'</span><span style="color:#ca60ca;">/</span><span style="color:#ca60ca;">)</span>
0367 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">*</span>.c<span style="color:#ca60ca;">(</span><span style="color:#ca60ca;">:</span><span style="color:#0057ae;">r</span><span style="color:#ca60ca;">)</span>
0368 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">*</span>.c<span style="color:#006e28;">~</span>lex.c
0369 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">*</span>.h<span style="color:#006e28;">~(</span><span style="color:#ff5500;">fred</span><span style="color:#006e28;">|</span><span style="color:#ff5500;">foo</span><span style="color:#006e28;">)</span>.h
0370 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">*</span>.<span style="color:#0057ae;">{</span>aux<span style="color:#ca60ca;">,</span>dvi<span style="color:#ca60ca;">,</span>log<span style="color:#ca60ca;">,</span>toc<span style="color:#0057ae;">}</span>
0371 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">*</span>.<span style="color:#0057ae;">{</span>jpg<span style="color:#ca60ca;">,</span>gif<span style="color:#0057ae;">}</span><span style="color:#ca60ca;">(.N)</span>
0372 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">*[</span><span style="color:#ca60ca;">^</span><span style="color:#bf0303;">2</span><span style="color:#006e28;">]</span>.php<span style="color:#006e28;">~*</span>template<span style="color:#006e28;">*</span>
0373 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">*</span>y<span style="color:#006e28;">(</span><span style="color:#ff5500;">2</span><span style="color:#006e28;">|)</span>.cfm
0374 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">*</span>y2<span style="color:#006e28;">#</span>.cfm
0375 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">*~*</span>.<span style="color:#006e28;">*</span><span style="color:#ca60ca;">(.)</span>
0376 <span style="color:#644a9b;">ls</span> ./<span style="color:#006e28;">*</span><span style="color:#ca60ca;">(O</span>m<span style="color:#ca60ca;">[</span><span style="color:#b08000;">1</span><span style="color:#ca60ca;">,</span><span style="color:#b08000;">-11</span><span style="color:#ca60ca;">]</span><span style="color:#ca60ca;">)</span>
0377 <span style="color:#644a9b;">ls</span> ./<span style="color:#006e28;">**</span>/<span style="color:#006e28;">*</span><span style="color:#ca60ca;">(/o</span>d<span style="color:#ca60ca;">)</span> <span style="color:#b08000;">2</span><span style="color:#ca60ca;">&gt;</span> /dev/null
0378 <span style="color:#644a9b;">ls</span> ./<span style="color:#006e28;">**</span>/<span style="color:#006e28;">*</span>.<span style="color:#006e28;">(</span><span style="color:#ff5500;">php</span><span style="color:#006e28;">|</span><span style="color:#ff5500;">inc</span><span style="color:#006e28;">|</span><span style="color:#ff5500;">js</span><span style="color:#006e28;">)</span>
0379 <span style="color:#644a9b;">ls</span> ./<span style="color:#006e28;">**</span>/<span style="color:#006e28;">*</span>.<span style="color:#0057ae;">{</span>inc<span style="color:#ca60ca;">,</span>php<span style="color:#0057ae;">}</span>
0380 <span style="color:#644a9b;">ls</span> ./<span style="color:#006e28;">*</span>.back<span style="color:#ca60ca;">(#qN)</span>
0381 <span style="color:#644a9b;">ls</span> ./<span style="color:#0057ae;">{</span>html<span style="color:#ca60ca;">,</span>live<span style="color:#0057ae;">}</span>/<span style="color:#006e28;">**</span>/<span style="color:#006e28;">*</span>.<span style="color:#006e28;">(</span><span style="color:#ff5500;">php</span><span style="color:#006e28;">|</span><span style="color:#ff5500;">inc</span><span style="color:#006e28;">|</span><span style="color:#ff5500;">js</span><span style="color:#006e28;">)~(**</span><span style="color:#ff5500;">/wiki</span><span style="color:#006e28;">|**</span><span style="color:#ff5500;">/dompdf</span><span style="color:#006e28;">)</span>/<span style="color:#006e28;">*</span>
0382 <span style="color:#644a9b;">ls</span> /path/<span style="color:#006e28;">**</span>/<span style="color:#006e28;">*</span><span style="color:#ca60ca;">(.a</span><span style="color:#b08000;">+10</span><span style="color:#ca60ca;">e{</span><span style="color:#bf0303;">'stat -sA u +uidr $REPLY; f[$u]=&quot;$f[$u]$REPLY&quot;'</span><span style="color:#ca60ca;">})</span>
0383 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">&lt;-&gt;</span> <span style="color:#006e28;">&lt;-</span><span style="color:#b08000;">6</span><span style="color:#006e28;">&gt;</span> <span style="color:#006e28;">&lt;</span><span style="color:#b08000;">4</span><span style="color:#006e28;">-&gt;</span> <span style="color:#006e28;">&lt;</span><span style="color:#b08000;">4</span><span style="color:#006e28;">-</span><span style="color:#b08000;">5</span><span style="color:#006e28;">&gt;</span> <span style="color:#b08000;">0</span><span style="color:#006e28;">&lt;-&gt;</span> <span style="color:#0057ae;">{</span><span style="color:#b08000;">1</span><span style="color:#0057ae;">..</span><span style="color:#b08000;">5</span><span style="color:#0057ae;">}</span> <span style="color:#0057ae;">{2</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">3}</span> <span style="color:#0057ae;">{</span><span style="color:#b08000;">00</span><span style="color:#0057ae;">..</span><span style="color:#b08000;">03</span><span style="color:#0057ae;">}</span> <span style="color:#006e28;">(</span><span style="color:#ff5500;">4</span><span style="color:#006e28;">|</span><span style="color:#ff5500;">5</span><span style="color:#006e28;">)</span> <span style="color:#006e28;">[</span><span style="color:#bf0303;">3</span><span style="color:#ca60ca;">-</span><span style="color:#bf0303;">4</span><span style="color:#006e28;">]</span>  <span style="color:#006e28;">[</span><span style="color:#bf0303;">3</span><span style="color:#ca60ca;">-</span><span style="color:#bf0303;">47</span><span style="color:#ca60ca;">-</span><span style="color:#bf0303;">8</span><span style="color:#006e28;">]</span> 0<span style="color:#006e28;">?</span> <span style="color:#006e28;">?</span>2 <span style="color:#006e28;">*</span>2
0384 <span style="color:#644a9b;">ls</span> <span style="font-weight:bold;">=</span>some_file
0385 <span style="color:#644a9b;">ls</span> DATA_<span style="color:#006e28;">[</span><span style="color:#bf0303;">0</span><span style="color:#ca60ca;">-</span><span style="color:#bf0303;">9</span><span style="color:#006e28;">]</span><span style="color:#ca60ca;">(#c,</span><span style="color:#b08000;">4</span><span style="color:#ca60ca;">)</span>.csv
0386 <span style="color:#644a9b;">ls</span> DATA_<span style="color:#006e28;">[</span><span style="color:#bf0303;">0</span><span style="color:#ca60ca;">-</span><span style="color:#bf0303;">9</span><span style="color:#006e28;">]</span><span style="color:#ca60ca;">(#c</span><span style="color:#b08000;">3</span><span style="color:#ca60ca;">)</span>.csv
0387 <span style="color:#644a9b;">ls</span> DATA_<span style="color:#006e28;">[</span><span style="color:#bf0303;">0</span><span style="color:#ca60ca;">-</span><span style="color:#bf0303;">9</span><span style="color:#006e28;">]</span><span style="color:#ca60ca;">(#c</span><span style="color:#b08000;">4</span><span style="color:#ca60ca;">,)</span>.csv
0388 <span style="color:#644a9b;">ls</span> DATA_<span style="color:#006e28;">[</span><span style="color:#bf0303;">0</span><span style="color:#ca60ca;">-</span><span style="color:#bf0303;">9</span><span style="color:#006e28;">]</span><span style="color:#ca60ca;">(#c</span><span style="color:#b08000;">4</span><span style="color:#ca60ca;">,</span><span style="color:#b08000;">7</span><span style="color:#ca60ca;">)</span>.csv
0389 <span style="color:#644a9b;">ls</span> PHP<span style="color:#006e28;">*</span>/<span style="color:#006e28;">**</span>/<span style="color:#006e28;">*</span>.php
0390 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">[</span><span style="color:#bf0303;">01</span><span style="color:#006e28;">]&lt;-&gt;</span>201<span style="color:#006e28;">[</span><span style="color:#bf0303;">45</span><span style="color:#006e28;">]</span>/Daily<span style="color:#0057ae;">\ </span>report<span style="color:#006e28;">*</span>.csv<span style="color:#ca60ca;">(e#</span>age 2014/10/22 now<span style="color:#ca60ca;">#)</span>
0391 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">^*</span>.<span style="color:#006e28;">(</span><span style="color:#ff5500;">css</span><span style="color:#006e28;">|</span><span style="color:#ff5500;">php</span><span style="color:#006e28;">)</span><span style="color:#ca60ca;">(.)</span>
0392 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">^?*</span>.<span style="color:#006e28;">*</span>
0393 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">^?*</span>.<span style="color:#006e28;">*</span><span style="color:#ca60ca;">(D)</span>
0394 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">^?*</span>.<span style="color:#006e28;">[</span><span style="color:#ca60ca;">^</span><span style="color:#bf0303;">.</span><span style="color:#006e28;">]*</span><span style="color:#ca60ca;">(D)</span>
0395 <span style="color:#644a9b;">ls</span> a<span style="color:#ca60ca;">(#c</span><span style="color:#b08000;">3</span><span style="color:#ca60ca;">)</span>.txt
0396 <span style="color:#644a9b;">ls</span> file<span style="color:#006e28;">&lt;</span><span style="color:#b08000;">20</span><span style="color:#006e28;">-&gt;</span>
0397 <span style="color:#644a9b;">ls</span> foot<span style="color:#006e28;">(</span><span style="color:#ff5500;">fall</span><span style="color:#006e28;">)#</span>.pl
0398 <span style="color:#644a9b;">ls</span> fred<span style="color:#006e28;">&lt;</span><span style="color:#b08000;">76</span><span style="color:#006e28;">-</span><span style="color:#b08000;">88</span><span style="color:#006e28;">&gt;</span>.pl
0399 <span style="color:#644a9b;">ls</span> fred<span style="color:#006e28;">&lt;</span><span style="color:#b08000;">76</span><span style="color:#006e28;">-&gt;</span>.pl
0400 <span style="color:#644a9b;">ls</span> fred<span style="color:#006e28;">^</span>erick<span style="color:#006e28;">*</span>
0401 <span style="color:#644a9b;">ls</span> fred<span style="color:#0057ae;">{</span><span style="color:#b08000;">09</span><span style="color:#0057ae;">..</span><span style="color:#b08000;">13</span><span style="color:#0057ae;">}</span>.pl
0402 <span style="color:#644a9b;">ls</span> fred<span style="color:#0057ae;">{joe</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">sid}</span>.pl
0403 <span style="color:#644a9b;">ls</span> x<span style="color:#006e28;">*~(</span><span style="color:#ff5500;">x3</span><span style="color:#006e28;">|</span><span style="color:#ff5500;">x5</span><span style="color:#006e28;">)</span>
0404 <span style="color:#644a9b;">ls</span> x<span style="color:#006e28;">*~^</span>x<span style="color:#006e28;">[</span><span style="color:#bf0303;">3,5</span><span style="color:#006e28;">]</span>
0405 <span style="color:#644a9b;">ls</span> x<span style="color:#006e28;">*~</span>x<span style="color:#006e28;">[</span><span style="color:#bf0303;">3,5</span><span style="color:#006e28;">]</span>
0406 <span style="color:#644a9b;">ls</span> x<span style="color:#006e28;">^[</span><span style="color:#bf0303;">3,5</span><span style="color:#006e28;">]</span>
0407 <span style="color:#644a9b;">ls</span> y2<span style="color:#006e28;">#</span>.cfm y<span style="color:#0057ae;">{2</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">}</span>.cfm y<span style="color:#006e28;">(</span><span style="color:#ff5500;">2</span><span style="color:#006e28;">|)</span>.cfm <span style="color:#0057ae;">{y2</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">y}</span>.cfm <span style="color:#006e28;">(</span><span style="color:#ff5500;">y</span><span style="color:#006e28;">|</span><span style="color:#ff5500;">y2</span><span style="color:#006e28;">)</span>.cfm y<span style="color:#006e28;">*</span>.cfm
0408 <span style="color:#644a9b;">ls</span> <span style="color:#0057ae;">{</span><span style="color:#006e28;">^</span><span style="color:#0057ae;">dev</span><span style="color:#006e28;">*</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">}</span>/index.php<span style="color:#ca60ca;">(.N)</span>
0409 <span style="color:#644a9b;">ls</span> <span style="color:#0057ae;">{_</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">}</span>fred.php
0410 <span style="color:#644a9b;">ls</span> {p..q}<span style="color:#006e28;">&lt;</span><span style="color:#b08000;">5</span><span style="color:#006e28;">-&gt;</span>{1..4}.<span style="color:#ca60ca;">(#I)</span>php<span style="color:#ca60ca;">(.N)</span>
0411 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">~</span>1/<span style="color:#006e28;">*</span><span style="color:#ca60ca;">(.o</span>m<span style="color:#ca60ca;">[</span><span style="color:#b08000;">1</span><span style="color:#ca60ca;">]</span><span style="color:#ca60ca;">)</span>
0412 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">**</span>/<span style="color:#006e28;">*</span>.php<span style="color:#006e28;">~*</span>junk<span style="color:#006e28;">*</span>/<span style="color:#006e28;">*</span>  <span style="color:#898887;">#find all calls to mail, ignoring junk directories</span>
0413 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">**</span>/<span style="color:#006e28;">(*</span><span style="color:#ff5500;">.cfm</span><span style="color:#006e28;">~(</span><span style="color:#ff5500;">ctpigeonbot</span><span style="color:#006e28;">|</span><span style="color:#ff5500;">env</span><span style="color:#006e28;">)</span><span style="color:#ff5500;">.cfm</span><span style="color:#006e28;">)</span>
0414 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">**</span>/<span style="color:#006e28;">*</span>.<span style="color:#0057ae;">{</span>js<span style="color:#ca60ca;">,</span>php<span style="color:#ca60ca;">,</span>css<span style="color:#0057ae;">}</span><span style="color:#006e28;">~(</span><span style="color:#ff5500;">libs</span><span style="color:#006e28;">|</span><span style="color:#ff5500;">temp</span><span style="color:#006e28;">|</span><span style="color:#ff5500;">tmp</span><span style="color:#006e28;">|</span><span style="color:#ff5500;">test</span><span style="color:#006e28;">)</span>/<span style="color:#006e28;">*</span>
0415 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">*</span>/<span style="color:#006e28;">*</span>.php<span style="color:#006e28;">~</span>libs/<span style="color:#006e28;">*~</span>temp/<span style="color:#006e28;">*~</span>test/<span style="color:#006e28;">*</span>
0416 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">**</span>/<span style="color:#006e28;">(*</span><span style="color:#ff5500;">.cfm</span><span style="color:#006e28;">~(</span><span style="color:#ff5500;">ctpigeonbot</span><span style="color:#006e28;">|</span><span style="color:#ff5500;">env</span><span style="color:#006e28;">)</span><span style="color:#ff5500;">.cfm</span><span style="color:#006e28;">)~*(</span><span style="color:#ca60ca;">(#s)</span><span style="color:#006e28;">|</span><span style="color:#ff5500;">/</span><span style="color:#006e28;">)</span>junk<span style="color:#006e28;">*</span>/<span style="color:#006e28;">*</span><span style="color:#ca60ca;">(.)</span>
0417 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">**</span>/<span style="color:#006e28;">*</span>.<span style="color:#006e28;">(</span><span style="color:#ff5500;">js</span><span style="color:#006e28;">|</span><span style="color:#ff5500;">php</span><span style="color:#006e28;">|</span><span style="color:#ff5500;">css</span><span style="color:#006e28;">)~(</span><span style="color:#ff5500;">libs</span><span style="color:#006e28;">|</span><span style="color:#ff5500;">temp</span><span style="color:#006e28;">|</span><span style="color:#ff5500;">test</span><span style="color:#006e28;">)</span>/<span style="color:#006e28;">*</span>
0418 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">**</span>/<span style="color:#006e28;">*</span>.<span style="color:#006e28;">(</span><span style="color:#ff5500;">js</span><span style="color:#006e28;">|</span><span style="color:#ff5500;">php</span><span style="color:#006e28;">|</span><span style="color:#ff5500;">css</span><span style="color:#006e28;">)~</span>libs/<span style="color:#006e28;">*~</span>temp/<span style="color:#006e28;">*~</span>test/<span style="color:#006e28;">*</span>
0419 <span style="color:#644a9b;">ls</span> report/<span style="color:#006e28;">**</span>/<span style="color:#006e28;">*</span>.<span style="color:#0057ae;">{</span>inc<span style="color:#ca60ca;">,</span>php<span style="color:#0057ae;">}</span>  <span style="color:#898887;"># searching for a php variable</span>
0420 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">*</span>.log<span style="color:#ca60ca;">(Ne-</span>age 2006/10/04:10:15 2006/10/04:12:45<span style="color:#ca60ca;">-)</span>
0421 <span style="color:#644a9b;">ls</span> <span style="color:#0057ae;">$(</span><span style="color:#644a9b;font-weight:bold;">echo</span> /c/aax/<span style="color:#006e28;">*</span><span style="color:#ca60ca;">(.o</span>m<span style="color:#ca60ca;">[</span><span style="color:#b08000;">1</span><span style="color:#ca60ca;">]</span><span style="color:#ca60ca;">)</span><span style="color:#0057ae;">)</span><span style="color:#ca60ca;">(+</span><span style="color:#644a9b;">cyg</span><span style="color:#ca60ca;">)</span> <span style="font-weight:bold;">&amp;</span>
0422 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">*~</span>vssver.scc<span style="color:#ca60ca;">(.o</span>m<span style="color:#ca60ca;">[</span><span style="color:#b08000;">1</span><span style="color:#ca60ca;">]</span><span style="color:#ca60ca;">)</span>
0423 <span style="color:#644a9b;">ls</span> /c/aax/<span style="color:#006e28;">*</span><span style="color:#ca60ca;">(.o</span>m<span style="color:#ca60ca;">[</span><span style="color:#b08000;">1</span><span style="color:#ca60ca;">]</span><span style="color:#ca60ca;">+</span><span style="color:#644a9b;">cyg</span><span style="color:#ca60ca;">)</span>
0424 <span style="color:#644a9b;">ls</span> <span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">ps:</span><span style="color:#bf0303;">\0</span><span style="color:#ca60ca;">:</span><span style="color:#0057ae;">)</span><span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$(</span><span style="color:#644a9b;">grep</span> <span style="color:#0057ae;">-lZ</span> foobar ./<span style="color:#006e28;">*</span>.txt<span style="color:#ca60ca;">(.)</span><span style="color:#0057ae;">)</span><span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">}</span>
0425 <span style="color:#644a9b;">ls</span> <span style="color:#006e28;">[</span><span style="color:#bf0303;">[[[</span><span style="color:#006e28;">]</span>]x<span style="color:#006e28;">*</span>
0426 
0427 <span style="color:#0095ff;font-weight:bold;">2</span> <span style="color:#0057ae;">-</span> f <span style="color:#0057ae;">-f</span>
0428 <span style="color:#0095ff;font-weight:bold;">!a</span> <span style="color:#0057ae;">-f</span>
0429 <span style="color:#bf0303;">'a'</span> <span style="color:#0057ae;">-f</span>
0430 <span style="color:#0057ae;">$</span><span style="color:#0057ae;">a</span> <span style="color:#0057ae;">-f</span>
0431 <span style="color:#006e28;">! </span><span style="color:#0095ff;font-weight:bold;">cmd</span>
0432 
0433 <span style="color:#898887;"># coproc command (#460301)</span>
0434 <span style="color:#644a9b;font-weight:bold;">coproc</span> <span style="color:#644a9b;">ls</span> thisfiledoesntexist <span style="color:#b08000;">2</span><span style="color:#ca60ca;">&gt;&amp;</span><span style="color:#b08000;">1</span>
0435 <span style="color:#644a9b;font-weight:bold;">coproc</span> <span style="font-weight:bold;">{</span> <span style="color:#644a9b;">ls</span> thisfiledoesntexist<span style="font-weight:bold;">;</span> <span style="color:#644a9b;font-weight:bold;">read</span><span style="font-weight:bold;">;</span> <span style="font-weight:bold;">}</span> <span style="color:#b08000;">2</span><span style="color:#ca60ca;">&gt;&amp;</span><span style="color:#b08000;">1</span>
0436 
0437 <span style="color:#898887;"># redirections (prefix)</span>
0438 <span style="color:#ca60ca;">&lt;&lt;&lt;</span>s <span style="color:#644a9b;">cat</span>
0439 <span style="color:#ca60ca;">&lt;&lt;&lt;</span><span style="color:#bf0303;">'s'</span> <span style="color:#644a9b;">cat</span>
0440 <span style="color:#ca60ca;">&lt;&lt;&lt;</span><span style="color:#bf0303;">'s'</span>s <span style="color:#644a9b;">cat</span>
0441 <span style="color:#ca60ca;">&lt;&lt;&lt;</span>s<span style="color:#bf0303;">'s'</span>s <span style="color:#644a9b;">cat</span>
0442 <span style="color:#ca60ca;">&lt;&lt;&lt;</span>s<span style="color:#0057ae;">${</span><span style="color:#0057ae;">s</span><span style="color:#0057ae;">}</span>s <span style="color:#644a9b;">cat</span>
0443 <span style="color:#ca60ca;">&lt;&lt;&lt;</span> s<span style="color:#0057ae;">${</span><span style="color:#0057ae;">s</span><span style="color:#0057ae;">}</span>s <span style="color:#644a9b;">cat</span>
0444 <span style="color:#ca60ca;">&gt;&amp;</span><span style="color:#b08000;">2</span> <span style="color:#644a9b;">cat</span>
0445 <span style="color:#ca60ca;">&lt;</span>f <span style="color:#644a9b;">cat</span>
0446 <span style="color:#b08000;">2</span><span style="color:#ca60ca;">&gt;</span>3 <span style="color:#644a9b;">cat</span>
0447 <span style="color:#b08000;">2</span><span style="color:#ca60ca;">&gt;&amp;</span><span style="color:#b08000;">3</span> <span style="color:#644a9b;">cat</span>
0448 <span style="color:#b08000;">2</span><span style="color:#ca60ca;">&gt;&amp;</span> <span style="color:#b08000;">3</span> <span style="color:#644a9b;">cat</span>
0449 <span style="color:#b08000;">2</span><span style="color:#ca60ca;">&gt;</span>f <span style="color:#644a9b;">cat</span>
0450 <span style="color:#ca60ca;">&amp;&gt;</span>f <span style="color:#644a9b;">cat</span>
0451 <span style="color:#b08000;">2</span><span style="color:#ca60ca;">&gt;&gt;(</span><span style="color:#0095ff;font-weight:bold;">xless</span><span style="color:#ca60ca;">)</span> <span style="color:#644a9b;">cat</span>
0452 <span style="color:#b08000;">2</span><span style="color:#ca60ca;">&lt;&lt;(</span><span style="color:#0095ff;font-weight:bold;">xless</span><span style="color:#ca60ca;">)</span> <span style="color:#644a9b;">cat</span>
0453 <span style="color:#b08000;">2</span><span style="color:#ca60ca;">&gt;&gt;(</span><span style="color:#0095ff;font-weight:bold;">xless</span><span style="color:#ca60ca;">)</span><span style="color:#644a9b;">cat</span>
0454 <span style="color:#b08000;">2</span><span style="color:#ca60ca;">&lt;&lt;(</span><span style="color:#0095ff;font-weight:bold;">xless</span><span style="color:#ca60ca;">)</span><span style="color:#644a9b;">cat</span>
0455 
0456 <span style="color:#898887;"># redirections</span>
0457 <span style="color:#644a9b;">cat</span> f<span style="color:#ca60ca;">&gt;</span>2
0458 <span style="color:#644a9b;">cat</span> d/f<span style="color:#ca60ca;">&gt;</span>2
0459 <span style="color:#644a9b;">cat</span> d/f <span style="color:#ca60ca;">&gt;</span>2
0460 <span style="color:#644a9b;">cat</span> d/f <span style="color:#ca60ca;">&gt;&amp;</span> <span style="color:#b08000;">2</span>
0461 <span style="color:#644a9b;">cat</span> <span style="color:#ca60ca;">&gt;</span>2 d/f
0462 <span style="color:#644a9b;">cat</span> <span style="color:#ca60ca;">&gt;</span> 2
0463 <span style="color:#644a9b;">cat</span> <span style="color:#ca60ca;">&lt;(</span><span style="color:#644a9b;font-weight:bold;">echo</span><span style="color:#ca60ca;">)</span> <span style="color:#ca60ca;">&lt;(</span><span style="color:#644a9b;font-weight:bold;">echo</span> a<span style="color:#ca60ca;">)</span> <span style="color:#ca60ca;">&lt;(</span><span style="color:#644a9b;font-weight:bold;">echo</span> a/f<span style="color:#ca60ca;">)</span> <span style="color:#ca60ca;">&lt;(</span><span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#ca60ca;">)</span> <span style="color:#ca60ca;">&lt;(</span><span style="color:#644a9b;font-weight:bold;">echo</span> a <span style="color:#ca60ca;">)</span> <span style="color:#ca60ca;">&lt;(</span><span style="color:#644a9b;font-weight:bold;">echo</span> a/f <span style="color:#ca60ca;">)</span>
0464 <span style="color:#644a9b;">cat</span> <span style="color:#b08000;">2</span><span style="color:#ca60ca;">&gt;&gt;(</span><span style="color:#0095ff;font-weight:bold;">xless</span><span style="color:#ca60ca;">)</span>
0465 <span style="color:#644a9b;">cat</span> <span style="color:#b08000;">2</span><span style="color:#ca60ca;">&lt;&lt;(</span><span style="color:#0095ff;font-weight:bold;">xless</span><span style="color:#ca60ca;">)</span>
0466 <span style="color:#644a9b;">cat</span> <span style="color:#b08000;">2</span><span style="color:#ca60ca;">&gt;&amp;</span><span style="color:#b08000;">1</span> <span style="color:#ca60ca;">&amp;&gt;</span>f <span style="color:#ca60ca;">&amp;&gt;&gt;</span>f <span style="color:#b08000;">2</span><span style="color:#ca60ca;">&lt;&amp;</span><span style="color:#b08000;">1</span><span style="font-weight:bold;">-</span> <span style="color:#b08000;">2</span><span style="color:#ca60ca;">&lt;&gt;</span>f <span style="color:#b08000;">2</span><span style="color:#ca60ca;">&lt;&lt;heredoc</span>
0467 <span style="color:#bf0303;">bla bla</span>
0468 <span style="color:#ca60ca;">heredoc</span>
0469 <span style="color:#ca60ca;">&lt;&lt;-'h'</span> <span style="color:#644a9b;">cat</span>
0470 <span style="color:#bf0303;">bla</span>
0471 <span style="color:#ca60ca;">h</span>
0472 <span style="color:#ca60ca;">&lt;&lt;&quot;'&quot;</span> <span style="color:#644a9b;">cat</span>
0473 <span style="color:#bf0303;">bla</span>
0474 <span style="color:#ca60ca;">'</span>
0475 <span style="color:#0057ae;">r</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">$(</span><span style="color:#0095ff;font-weight:bold;">xxx</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">@</span> <span style="color:#b08000;">2</span><span style="color:#ca60ca;">&gt;&amp;</span><span style="color:#b08000;">1</span><span style="color:#0057ae;">)</span>
0476 
0477 <span style="color:#898887;"># branches</span>
0478 <span style="color:#644a9b;">cat</span> a<span style="font-weight:bold;">|</span><span style="color:#644a9b;">cat</span>
0479 <span style="color:#644a9b;">cat</span> a<span style="font-weight:bold;">&amp;</span><span style="color:#644a9b;">cat</span>
0480 <span style="color:#644a9b;">cat</span> a<span style="font-weight:bold;">||</span><span style="color:#644a9b;">cat</span>
0481 <span style="color:#644a9b;">cat</span> a<span style="font-weight:bold;">&amp;&amp;</span><span style="color:#644a9b;">cat</span>
0482 <span style="color:#644a9b;">cat</span> a<span style="font-weight:bold;">;</span><span style="color:#644a9b;">cat</span>
0483 <span style="color:#644a9b;">cat</span> a <span style="font-weight:bold;">|</span> <span style="color:#644a9b;">cat</span>
0484 <span style="color:#644a9b;">cat</span> a <span style="font-weight:bold;">&amp;</span> <span style="color:#644a9b;">cat</span>
0485 <span style="color:#644a9b;">cat</span> a <span style="font-weight:bold;">||</span> <span style="color:#644a9b;">cat</span>
0486 <span style="color:#644a9b;">cat</span> a <span style="font-weight:bold;">&amp;&amp;</span> <span style="color:#644a9b;">cat</span>
0487 <span style="color:#644a9b;">cat</span> a <span style="font-weight:bold;">;</span> <span style="color:#644a9b;">cat</span>
0488 <span style="color:#644a9b;">cat</span> a<span style="color:#bf0303;">'a'</span><span style="font-weight:bold;">;</span><span style="color:#644a9b;">cat</span>
0489 
0490 <span style="color:#898887;"># substitutions</span>
0491 <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#bf0303;">''</span> <span style="color:#bf0303;">'a'</span> <span style="color:#bf0303;">'\'</span> <span style="color:#bf0303;">&quot;&quot;</span> <span style="color:#bf0303;">&quot;a&quot;</span> <span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">\\</span><span style="color:#bf0303;">&quot;</span> <span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">a</span><span style="color:#bf0303;">&quot;</span> <span style="color:#bf0303;">&quot;a&quot;&quot;a&quot;</span><span style="color:#bf0303;">'a''a'</span> a<span style="color:#bf0303;">'b'</span>c a<span style="color:#bf0303;">&quot;b&quot;</span>c a<span style="color:#bf0303;">$'</span><span style="color:#0057ae;">\n</span><span style="color:#bf0303;">'</span>c
0492 <span style="color:#644a9b;font-weight:bold;">echo</span> a!bc a{a}b a<span style="color:#0057ae;">{b</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">c}</span>d a<span style="color:#0057ae;">{b</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">{d</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">e}}</span>d a<span style="color:#0057ae;">\ </span>b
0493 <span style="color:#644a9b;font-weight:bold;">echo</span> a<span style="color:#0057ae;">$</span><span style="color:#0057ae;">bc</span> a<span style="color:#0057ae;">$</span><span style="color:#0057ae;">b</span>/c a<span style="color:#0057ae;">${</span><span style="color:#0057ae;">b</span><span style="color:#0057ae;">}</span>c a<span style="color:#0057ae;">$((</span><span style="color:#0057ae;">b</span><span style="color:#ca60ca;">-</span><span style="color:#b08000;">3</span><span style="color:#0057ae;">))</span>c a<span style="color:#0057ae;">$(</span><span style="color:#0095ff;font-weight:bold;">b</span><span style="color:#0057ae;">)</span>c a<span style="color:#0057ae;">$(</span><span style="color:#0095ff;font-weight:bold;">a</span> b c<span style="color:#0057ae;">)</span>c
0494 <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">a</span><span style="color:#ca60ca;">[*]</span><span style="color:#0057ae;">}</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">a</span><span style="color:#ca60ca;">[@]</span><span style="color:#0057ae;">}</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">a</span><span style="color:#ca60ca;">[</span><span style="color:#0057ae;">${</span><span style="color:#0057ae;">b</span><span style="color:#0057ae;">}</span><span style="color:#ca60ca;">]</span><span style="color:#0057ae;">}</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">a</span><span style="color:#ca60ca;">:-</span><span style="color:#bf0303;">x</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">z</span><span style="color:#0057ae;">}</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">a</span><span style="color:#ca60ca;">/</span><span style="color:#ff5500;">g</span><span style="color:#0057ae;">}</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">a</span><span style="color:#ca60ca;">//</span><span style="color:#ff5500;">f</span><span style="color:#ca60ca;">/</span><span style="color:#bf0303;">f</span><span style="color:#0057ae;">}</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">a</span><span style="color:#ca60ca;">//</span><span style="color:#ff5500;">f</span><span style="color:#006e28;">*</span><span style="color:#ca60ca;">/</span>f<span style="color:#006e28;">*</span><span style="color:#0057ae;">}</span>
0495 <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">!</span><span style="color:#0057ae;">}</span> <span style="color:#0057ae;">${</span><span style="color:#ca60ca;">!</span><span style="color:#bf0303;">a</span><span style="color:#0057ae;">}</span> <span style="color:#0057ae;">${</span><span style="color:#ca60ca;">#</span><span style="color:#0057ae;">a</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">1</span><span style="color:#ca60ca;">]</span><span style="color:#0057ae;">}</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">a</span><span style="color:#ca60ca;">:</span><span style="color:#b08000;">1</span><span style="color:#ca60ca;">:</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">b</span><span style="color:#0057ae;">}</span> <span style="color:#0057ae;">$((</span><span style="color:#ca60ca;">++</span><span style="color:#0057ae;">i</span><span style="font-weight:bold;">,</span><span style="color:#0057ae;">i</span><span style="color:#ca60ca;">--</span><span style="color:#0057ae;">))</span>
0496 <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">a</span><span style="color:#ca60ca;">:^</span><span style="color:#bf0303;">v</span><span style="color:#0057ae;">}</span> <span style="color:#0057ae;">${</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">a</span><span style="color:#ca60ca;">:/#%</span><span style="color:#ff5500;">a</span><span style="color:#006e28;">#?*</span><span style="color:#ca60ca;">/</span><span style="color:#bf0303;">bla</span><span style="color:#0057ae;">}</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">x</span><span style="color:#ca60ca;">#</span><span style="color:#006e28;">??</span><span style="color:#ca60ca;">(#i)</span><span style="color:#0057ae;">}</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">das</span><span style="color:#ca60ca;">:-</span><span style="color:#bf0303;">{}&lt;a.zsh</span><span style="color:#0057ae;">}</span>
0497 <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">f</span><span style="color:#0057ae;">)</span><span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$(</span><span style="color:#ca60ca;">&lt;</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">1</span><span style="color:#0057ae;">)</span><span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">}</span> <span style="color:#0057ae;">${${(</span><span style="color:#ca60ca;">Az</span><span style="color:#0057ae;">)</span><span style="color:#0057ae;">l</span><span style="color:#0057ae;">}</span><span style="color:#ca60ca;">[</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">2</span><span style="color:#ca60ca;">]</span><span style="color:#0057ae;">}</span> <span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">f</span><span style="color:#0057ae;">)</span><span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$(</span><span style="color:#644a9b;font-weight:bold;">eval</span> <span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">q</span><span style="color:#0057ae;">)</span><span style="color:#0057ae;">@</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">2</span><span style="color:#ca60ca;">,</span><span style="color:#b08000;">$</span><span style="color:#ca60ca;">]</span><span style="color:#0057ae;">})</span><span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">}</span>
0498 <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">@</span><span style="color:#0057ae;">)</span><span style="color:#0057ae;">foo</span><span style="color:#0057ae;">}</span> <span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">@</span><span style="color:#0057ae;">)</span><span style="color:#0057ae;">foo</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">1</span><span style="color:#ca60ca;">,</span><span style="color:#b08000;">2</span><span style="color:#ca60ca;">]</span><span style="color:#0057ae;">}</span> <span style="color:#0057ae;">${${(</span><span style="color:#ca60ca;">A</span><span style="color:#0057ae;">)</span><span style="color:#0057ae;">name</span><span style="color:#0057ae;">}</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">1</span><span style="color:#ca60ca;">]</span><span style="color:#0057ae;">}</span> <span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">AA</span><span style="color:#0057ae;">)</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">name</span><span style="color:#ca60ca;">=</span><span style="color:#bf0303;">...</span><span style="color:#0057ae;">}</span> <span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">Q</span><span style="color:#0057ae;">)${(</span><span style="color:#ca60ca;">z</span><span style="color:#0057ae;">)</span><span style="color:#0057ae;">foo</span><span style="color:#0057ae;">}}</span>
0499 <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">ps.</span><span style="color:#0057ae;">$sep</span><span style="color:#ca60ca;">.</span><span style="color:#0057ae;">)</span><span style="color:#0057ae;">val</span><span style="color:#0057ae;">}</span> <span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">ps.</span><span style="color:#bf0303;">${sep}</span><span style="color:#ca60ca;">.</span><span style="color:#0057ae;">)</span><span style="color:#0057ae;">val</span><span style="color:#0057ae;">}</span> <span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">s.</span><span style="color:#bf0303;">$sep</span><span style="color:#ca60ca;">.</span><span style="color:#0057ae;">)</span><span style="color:#0057ae;">val</span><span style="color:#0057ae;">}</span> <span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">s.</span><span style="color:#bf0303;">)(</span><span style="color:#ca60ca;">.</span><span style="color:#0057ae;">)</span><span style="color:#0057ae;">val</span><span style="color:#0057ae;">}</span>
0500 <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">pr:</span><span style="color:#b08000;">2</span><span style="color:#ca60ca;">+</span><span style="color:#b08000;">3</span><span style="color:#ca60ca;">::</span><span style="color:#bf0303;">_</span><span style="color:#ca60ca;">::</span><span style="color:#0057ae;">$d</span><span style="color:#ca60ca;">:</span><span style="color:#0057ae;">)</span><span style="color:#0057ae;">var</span><span style="color:#0057ae;">}</span> <span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">r:</span><span style="color:#b08000;">2</span><span style="color:#ca60ca;">+</span><span style="color:#b08000;">3</span><span style="color:#ca60ca;">::</span><span style="color:#bf0303;">_</span><span style="color:#ca60ca;">::</span><span style="color:#bf0303;">$d</span><span style="color:#ca60ca;">:</span><span style="color:#0057ae;">)</span><span style="color:#0057ae;">var</span><span style="color:#0057ae;">}</span>
0501 <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">${${</span><span style="color:#ca60ca;">:-</span><span style="color:#bf0303;">=cat</span><span style="color:#0057ae;">}</span><span style="color:#ca60ca;">:</span><span style="color:#0057ae;">h}</span>
0502 <span style="color:#0057ae;">$</span><span style="color:#0057ae;">foo</span><span style="color:#0057ae;">:h</span><span style="color:#b08000;">34</span><span style="color:#0057ae;">:a:gs</span><span style="color:#ca60ca;">/</span><span style="color:#bf0303;">dfs</span><span style="color:#ca60ca;">/</span><span style="color:#bf0303;">fds</span><span style="color:#ca60ca;">/</span><span style="color:#0057ae;">:s</span><span style="color:#ca60ca;">/</span><span style="color:#bf0303;">fds</span><span style="color:#ca60ca;">/</span><span style="color:#bf0303;">d'd'f</span> xyz <span style="color:#0057ae;">$</span><span style="color:#0057ae;">foo</span>: <span style="color:#0057ae;">$</span><span style="color:#0057ae;">foo</span>:O <span style="color:#0057ae;">$</span><span style="color:#0057ae;">foo</span><span style="color:#0057ae;">:A</span>
0503 <span style="color:#0057ae;">3</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">foo</span><span style="color:#0057ae;">:Q</span>QQ <span style="color:#0095ff;font-weight:bold;">xyz</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">a</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">3</span><span style="color:#ca60ca;">,</span><span style="color:#b08000;">$</span><span style="color:#ca60ca;">]</span><span style="color:#0057ae;">:h</span><span style="color:#b08000;">3</span><span style="color:#0057ae;">:t</span><span style="color:#b08000;">1</span><span style="color:#0057ae;">:e</span>
0504 <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">${${</span><span style="color:#ca60ca;">~</span><span style="color:#0057ae;">foo</span><span style="color:#0057ae;">}</span><span style="color:#ca60ca;">//</span><span style="color:#0057ae;">\*</span><span style="color:#ca60ca;">/</span><span style="color:#006e28;">*</span>.c<span style="color:#0057ae;">}</span>
0505 <span style="color:#644a9b;font-weight:bold;">echo</span> !$ !!:$ !<span style="color:#006e28;">*</span> !!:<span style="color:#006e28;">*</span> !-2:2 !:-3 !:2<span style="color:#006e28;">*</span> !:2- !:2-3 !<span style="color:#006e28;">^</span> !:1 !!:1
0506 <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">bg</span><span style="color:#ca60ca;">[</span>blue<span style="color:#ca60ca;">]</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">fg</span><span style="color:#ca60ca;">[</span>yellow<span style="color:#ca60ca;">]</span><span style="color:#bf0303;">highlight a message&quot;</span>
0507 <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">bg</span><span style="color:#ca60ca;">[</span>red<span style="color:#ca60ca;">]</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">fg</span><span style="color:#ca60ca;">[</span>black<span style="color:#ca60ca;">]</span><span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">l:</span><span style="color:#b08000;">42</span><span style="color:#ca60ca;">::</span><span style="color:#bf0303;">-</span><span style="color:#ca60ca;">:</span><span style="color:#0057ae;">)}</span><span style="color:#bf0303;">&quot;</span>
0508 <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">${${(</span><span style="color:#ca60ca;">@</span><span style="color:#0057ae;">)</span><span style="color:#0057ae;">foo</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">2</span><span style="color:#ca60ca;">,</span><span style="color:#b08000;">4</span><span style="color:#ca60ca;">]</span><span style="color:#0057ae;">}</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">2</span><span style="color:#ca60ca;">]</span><span style="color:#0057ae;">}</span><span style="color:#bf0303;">&quot;</span>
0509 <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">j::</span><span style="color:#0057ae;">)${(</span><span style="color:#ca60ca;">@Oa</span><span style="color:#0057ae;">)${(</span><span style="color:#ca60ca;">s::</span><span style="color:#0057ae;">)</span><span style="color:#ca60ca;">:-</span><span style="color:#bf0303;">hello</span><span style="color:#0057ae;">}}}</span><span style="color:#bf0303;">&quot;</span>
0510 <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">j::</span><span style="color:#0057ae;">)${(</span><span style="color:#ca60ca;">@Oa</span><span style="color:#0057ae;">)${(</span><span style="color:#ca60ca;">s::</span><span style="color:#0057ae;">)</span><span style="color:#ca60ca;">:-</span><span style="color:#bf0303;">hello</span><span style="color:#0057ae;">}}}</span><span style="color:#bf0303;">&quot;</span>
0511 <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#bf0303;">&quot;&lt;a href='</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">url</span><span style="color:#bf0303;">'&gt;</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">anchortext</span><span style="color:#bf0303;">&lt;/a&gt;&quot;</span>
0512 <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">$((</span> <span style="color:#0057ae;">sin</span>(<span style="color:#b08000;">1</span><span style="color:#ca60ca;">/</span><span style="color:#b08000;">4.0</span>)<span style="color:#ca60ca;">**</span><span style="color:#b08000;">2</span> <span style="color:#ca60ca;">+</span> <span style="color:#0057ae;">cos</span>(<span style="color:#b08000;">1</span><span style="color:#ca60ca;">/</span><span style="color:#b08000;">4.0</span>)<span style="color:#ca60ca;">**</span><span style="color:#b08000;">2</span> <span style="color:#ca60ca;">-</span> <span style="color:#b08000;">1</span> <span style="color:#0057ae;">))</span>
0513 <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">a</span><span style="color:#ca60ca;">[</span><span style="color:#0057ae;">${</span><span style="color:#0057ae;">RANDOM</span><span style="color:#0057ae;">}</span><span style="color:#ca60ca;">%</span><span style="color:#b08000;">1000</span><span style="color:#ca60ca;">]</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">a</span><span style="color:#ca60ca;">[</span><span style="color:#0057ae;">${</span><span style="color:#0057ae;">RANDOM</span><span style="color:#0057ae;">}</span><span style="color:#ca60ca;">%</span><span style="color:#b08000;">11</span><span style="color:#ca60ca;">+</span><span style="color:#b08000;">10</span><span style="color:#ca60ca;">]</span>
0514 <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">convtable</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">158</span><span style="color:#ca60ca;">]</span>
0515 <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">array</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">0</span><span style="color:#ca60ca;">]:</span> <span style="color:#ca60ca;">-</span><span style="color:#b08000;">7</span> <span style="color:#ca60ca;">:</span> <span style="color:#ca60ca;">+</span>  <span style="color:#b08000;">22</span>  <span style="color:#0057ae;">}</span>  <span style="color:#0057ae;">${</span><span style="color:#0057ae;">array</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">1</span><span style="color:#ca60ca;">]:</span> num  <span style="color:#0057ae;">}</span>
0516 <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">parameter</span><span style="color:#ca60ca;">##</span><span style="color:#bf0303;">word</span><span style="color:#0057ae;">}</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">parameter</span><span style="color:#ca60ca;">%%</span><span style="color:#bf0303;">word</span><span style="color:#0057ae;">}</span>
0517 <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">f</span> <span style="color:#bf0303;">' # $fred'</span>
0518 <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">f</span><span style="color:#0057ae;">:e</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">f</span><span style="color:#0057ae;">:h</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">f</span><span style="color:#0057ae;">:h:h</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">f</span><span style="color:#0057ae;">:r</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">f</span><span style="color:#0057ae;">:t</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">f</span><span style="color:#0057ae;">:t:r</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">file</span><span style="color:#0057ae;">:r</span>
0519 <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">C</span><span style="color:#0057ae;">)</span><span style="color:#0057ae;">foo</span><span style="color:#ca60ca;">:</span><span style="color:#0057ae;">gs</span><span style="color:#ca60ca;">/</span><span style="color:#bf0303;">-</span><span style="color:#ca60ca;">/</span><span style="color:#bf0303;"> </span><span style="color:#ca60ca;">/:</span><span style="color:#0057ae;">r}</span> <span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">M</span><span style="color:#0057ae;">)</span><span style="color:#0057ae;">0</span><span style="color:#ca60ca;">%%</span><span style="color:#006e28;">&lt;-&gt;</span><span style="color:#0057ae;">}</span> <span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">j/</span><span style="color:#bf0303;">x</span><span style="color:#ca60ca;">/s/</span><span style="color:#bf0303;">x</span><span style="color:#ca60ca;">/</span><span style="color:#0057ae;">)</span><span style="color:#0057ae;">foo</span><span style="color:#0057ae;">}</span> <span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">l:</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">COLUMNS</span><span style="color:#ca60ca;">::</span><span style="color:#bf0303;">-</span><span style="color:#ca60ca;">:</span><span style="color:#0057ae;">)}</span>
0520 <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">l:</span><span style="color:#b08000;">3</span><span style="color:#ca60ca;">::</span><span style="color:#bf0303;">0</span><span style="color:#ca60ca;">:</span><span style="color:#0057ae;">)${</span><span style="color:#0057ae;">RANDOM</span><span style="color:#0057ae;">}}</span> <span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">s/</span><span style="color:#bf0303;">x</span><span style="color:#ca60ca;">/</span><span style="color:#0057ae;">)</span><span style="color:#0057ae;">foo</span><span style="color:#ca60ca;">%%</span><span style="color:#bf0303;">1</span><span style="color:#006e28;">*</span><span style="color:#0057ae;">}</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">0</span><span style="color:#ca60ca;">##</span><span style="color:#006e28;">*[</span><span style="color:#bf0303;">!0</span><span style="color:#ca60ca;">-</span><span style="color:#bf0303;">9</span><span style="color:#006e28;">]</span><span style="color:#0057ae;">}</span>
0521 <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">a</span><span style="color:#ca60ca;">:</span><span style="color:#b08000;">2</span><span style="color:#ca60ca;">:</span><span style="color:#b08000;">2</span><span style="color:#0057ae;">}</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">a</span><span style="color:#ca60ca;">:</span><span style="color:#b08000;">2</span><span style="color:#0057ae;">}</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">a</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">1</span><span style="color:#ca60ca;">,</span><span style="color:#b08000;">3</span><span style="color:#ca60ca;">]</span><span style="color:#0057ae;">}</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">d</span><span style="color:#ca60ca;">/#</span><span style="color:#006e28;">?</span><span style="color:#ca60ca;">/</span><span style="color:#0057ae;">}</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">d</span><span style="color:#ca60ca;">/%</span><span style="color:#006e28;">?</span><span style="color:#ca60ca;">/</span><span style="color:#0057ae;">}</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">d</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">1</span><span style="color:#ca60ca;">,</span><span style="color:#b08000;">-2</span><span style="color:#ca60ca;">]</span><span style="color:#0057ae;">}</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">d</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">2</span><span style="color:#ca60ca;">,</span><span style="color:#b08000;">$</span><span style="color:#ca60ca;">]</span><span style="color:#0057ae;">}</span>
0522 <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">d</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">2</span><span style="color:#ca60ca;">,</span><span style="color:#b08000;">-1</span><span style="color:#ca60ca;">]</span><span style="color:#0057ae;">}</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">file</span><span style="color:#ca60ca;">##</span><span style="color:#006e28;">*</span><span style="color:#bf0303;">/</span><span style="color:#0057ae;">}</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">file</span><span style="color:#ca60ca;">%</span><span style="color:#bf0303;">.</span><span style="color:#006e28;">*</span><span style="color:#0057ae;">}</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">texfilepath</span><span style="color:#ca60ca;">%</span><span style="color:#bf0303;">/</span><span style="color:#006e28;">*</span><span style="color:#bf0303;">.</span><span style="color:#006e28;">*</span><span style="color:#0057ae;">}</span> <span style="color:#006e28;">*</span><span style="color:#ca60ca;">(f:</span>u+rx<span style="color:#ca60ca;">,</span>o-x<span style="color:#ca60ca;">:)</span>
0523 <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#006e28;">*</span><span style="color:#ca60ca;">(f:</span>u+rx<span style="color:#ca60ca;">:)</span> <span style="color:#006e28;">**</span>/<span style="color:#006e28;">*</span><span style="color:#ca60ca;">(@-^./=%p)</span> <span style="color:#006e28;">**</span>/<span style="color:#006e28;">*</span><span style="color:#ca60ca;">(@-^./=%p)</span> convert_csv.php<span style="color:#ca60ca;">(</span><span style="color:#ca60ca;">:</span><span style="color:#0057ae;">a</span><span style="color:#ca60ca;">)</span>
0524 <span style="color:#644a9b;font-weight:bold;">cd</span> <span style="color:#0057ae;">$(</span><span style="color:#644a9b;">locate</span> <span style="color:#0057ae;">-l1</span> <span style="color:#0057ae;">-r</span> <span style="color:#bf0303;">&quot;/zoo.txt$&quot;</span><span style="color:#0057ae;">)</span><span style="color:#ca60ca;">(</span><span style="color:#ca60ca;">:</span><span style="color:#0057ae;">h</span><span style="color:#ca60ca;">)</span> <span style="color:#898887;"># cd to directory of first occurence of a file zoo.txt</span>
0525 <span style="color:#644a9b;font-weight:bold;">cd</span> <span style="color:#0057ae;">${$(</span><span style="color:#0095ff;font-weight:bold;">!!</span><span style="color:#0057ae;">)</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">3</span><span style="color:#ca60ca;">]:</span><span style="color:#0057ae;">h}</span>  <span style="color:#898887;"># cd to 3rd in list</span>
0526 <span style="color:#644a9b;font-weight:bold;">cd</span> <span style="color:#0057ae;">${$(</span><span style="color:#644a9b;">locate</span> zoo.txt<span style="color:#0057ae;">)</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">1</span><span style="color:#ca60ca;">]:</span><span style="color:#0057ae;">h}</span>
0527 <span style="color:#644a9b;font-weight:bold;">cd</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">drive</span><span style="color:#0057ae;">}</span>/inetpub/wwwdev/www.some.co.uk/
0528 <span style="color:#644a9b;font-weight:bold;">cd</span> <span style="color:#006e28;">**</span>/<span style="color:#006e28;">*</span>.php<span style="color:#ca60ca;">(.o</span>m<span style="color:#ca60ca;">[</span><span style="color:#b08000;">1</span><span style="color:#ca60ca;">]:</span><span style="color:#0057ae;">h</span><span style="color:#ca60ca;">)</span> <span style="color:#898887;"># cd to directory of newest php file</span>
0529 <span style="color:#644a9b;font-weight:bold;">cd</span> <span style="color:#0057ae;">-</span>
0530 <span style="color:#644a9b;font-weight:bold;">cd</span> /tmp/test/<span style="font-weight:bold;">;</span><span style="color:#644a9b;">touch</span> <span style="color:#0057ae;">{</span><span style="color:#b08000;">1</span><span style="color:#0057ae;">..</span><span style="color:#b08000;">5</span><span style="color:#0057ae;">}</span> <span style="color:#0057ae;">{6</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">7</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">8</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">12}</span> <span style="color:#0057ae;">{</span><span style="color:#b08000;">00</span><span style="color:#0057ae;">..</span><span style="color:#b08000;">03</span><span style="color:#0057ae;">}</span>
0531 <span style="color:#644a9b;font-weight:bold;">cd</span> <span style="color:#006e28;">~</span>www/admin
0532 <span style="color:#644a9b;">chmod</span> g+w <span style="color:#006e28;">**</span>/<span style="color:#006e28;">*</span>
0533 <span style="color:#644a9b;">chmod</span> someuser /<span style="color:#006e28;">**</span>/<span style="color:#006e28;">*(</span><span style="color:#ff5500;">D</span><span style="color:#006e28;">^</span><span style="color:#ff5500;">u:</span><span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">j.</span><span style="color:#bf0303;">:u:</span><span style="color:#ca60ca;">.</span><span style="color:#0057ae;">)${(</span><span style="color:#ca60ca;">f</span><span style="color:#0057ae;">)</span><span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$(</span><span style="color:#ca60ca;">&lt;</span>/etc/passwd<span style="color:#0057ae;">)</span><span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">}</span><span style="color:#ca60ca;">%%</span><span style="color:#bf0303;">:</span><span style="color:#006e28;">*</span><span style="color:#0057ae;">}</span><span style="color:#ff5500;">:</span><span style="color:#006e28;">)</span>
0534 <span style="color:#644a9b;">cp</span> <span style="color:#006e28;">*</span>.mp3<span style="color:#ca60ca;">(m</span>h<span style="color:#b08000;">-4</span><span style="color:#ca60ca;">)</span> /tmp <span style="color:#898887;"># copy files less than 4 hours old</span>
0535 <span style="color:#644a9b;">cp</span> <span style="color:#0057ae;">-a</span> file1 file   <span style="color:#898887;"># -a transfer  permissions etc of file1 to file2preserve</span>
0536 <span style="color:#644a9b;">file</span> <span style="color:#006e28;">**</span>/<span style="color:#006e28;">*</span><span style="color:#ca60ca;">(D@)</span> <span style="font-weight:bold;">|</span> <span style="color:#644a9b;">fgrep</span> broken
0537 <span style="color:#644a9b;">file</span> <span style="color:#006e28;">**</span>/<span style="color:#006e28;">*</span><span style="color:#ca60ca;">(D@)</span> <span style="font-weight:bold;">|</span> <span style="color:#644a9b;">fgrep</span> broken
0538 <span style="color:#0057ae;">file</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">${</span><span style="color:#0057ae;">1</span><span style="color:#ca60ca;">/#</span><span style="color:#0057ae;">\/</span><span style="color:#ca60ca;">/</span><span style="color:#bf0303;">C:</span><span style="color:#0057ae;">\/</span><span style="color:#0057ae;">}</span> <span style="color:#898887;"># substitute / with c:/ Beginning of string</span>
0539 <span style="color:#0057ae;">file</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">${</span><span style="color:#0057ae;">1</span><span style="color:#ca60ca;">/%</span><span style="color:#0057ae;">\/</span><span style="color:#ca60ca;">/</span><span style="color:#bf0303;">C:</span><span style="color:#0057ae;">\/</span><span style="color:#0057ae;">}</span> <span style="color:#898887;"># substitute / with c:/ End of string</span>
0540 <span style="color:#0057ae;">file</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">${</span><span style="color:#0057ae;">1</span><span style="color:#ca60ca;">/</span><span style="color:#0057ae;">\/</span><span style="color:#ca60ca;">/</span><span style="color:#bf0303;">C:</span><span style="color:#0057ae;">\/</span><span style="color:#0057ae;">}</span> <span style="color:#898887;"># substitute / with c:/ ANYWHERE in string</span>
0541 <span style="color:#0057ae;">filelst</span><span style="color:#ca60ca;">+=</span><span style="color:#0057ae;">(</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">x)</span>
0542 <span style="color:#0057ae;">filelst</span><span style="color:#ca60ca;">[</span><span style="color:#0057ae;">$((</span><span style="color:#0057ae;">$</span><span style="color:#ca60ca;">#</span><span style="color:#0057ae;">filelst</span><span style="color:#ca60ca;">+</span><span style="color:#b08000;">1</span><span style="color:#0057ae;">))</span><span style="color:#ca60ca;">]</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">x</span>
0543 <span style="color:#0057ae;">files</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">(</span><span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">f</span><span style="color:#0057ae;">)</span><span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$(</span><span style="color:#0095ff;font-weight:bold;">egrepcmd1l</span><span style="color:#0057ae;">)</span><span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">}</span> <span style="color:#0057ae;">)</span>
0544 <span style="color:#0057ae;">files</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">(</span><span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">f</span><span style="color:#0057ae;">)</span><span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$(</span><span style="color:#644a9b;">ls</span> <span style="color:#006e28;">*</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">*</span><span style="color:#006e28;">*</span><span style="color:#0057ae;">)</span><span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">}</span><span style="color:#ca60ca;">(.N)</span><span style="color:#0057ae;">)</span> <span style="color:#898887;"># &quot;)`</span>
0545 <span style="color:#0057ae;">files</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">(</span><span style="color:#006e28;">**</span>/<span style="color:#006e28;">*</span><span style="color:#ca60ca;">(ND.L</span><span style="color:#b08000;">0</span><span style="color:#ca60ca;">m</span><span style="color:#b08000;">+0</span><span style="color:#ca60ca;">m</span><span style="color:#b08000;">-2</span><span style="color:#ca60ca;">)</span><span style="color:#0057ae;">)</span>
0546 <span style="color:#644a9b;">mkdir</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">f</span><span style="color:#0057ae;">:h</span><span style="font-weight:bold;">;</span><span style="color:#644a9b;">touch</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">f</span>
0547 <span style="color:#644a9b;">mv</span> Licence<span style="color:#0057ae;">\ </span>to<span style="color:#0057ae;">\ </span>Print<span style="color:#0057ae;">\ </span>Money.pdf !<span style="color:#006e28;">#^</span>:gs/<span style="color:#0057ae;">\\</span> //
0548 <span style="color:#0057ae;">path</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">(</span><span style="color:#0057ae;">${</span><span style="color:#0057ae;">path</span><span style="color:#ca60ca;">:#</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">path_to_remove</span><span style="color:#0057ae;">}</span><span style="color:#0057ae;">)</span>
0549 <span style="color:#0057ae;">path</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">(</span><span style="color:#0057ae;">${</span><span style="color:#0057ae;">path</span><span style="color:#ca60ca;">:|</span><span style="color:#bf0303;">excl</span><span style="color:#0057ae;">}</span><span style="color:#0057ae;">)</span>
0550 <span style="color:#0057ae;">pattern</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">b</span><span style="color:#0057ae;">)</span><span style="color:#0057ae;">str</span><span style="color:#0057ae;">}</span>
0551 <span style="color:#0057ae;">pattern</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">q</span><span style="color:#0057ae;">)</span><span style="color:#0057ae;">str</span><span style="color:#0057ae;">}</span>
0552 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">aa</span><span style="color:#ca60ca;">[</span>one<span style="color:#0057ae;">\&quot;</span>two<span style="color:#0057ae;">\&quot;</span>three<span style="color:#0057ae;">\&quot;</span>quotes<span style="color:#ca60ca;">]</span><span style="color:#bf0303;">&quot;</span>
0553 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">bg</span><span style="color:#ca60ca;">[</span>cyan<span style="color:#ca60ca;">]</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">fg</span><span style="color:#ca60ca;">[</span>blue<span style="color:#ca60ca;">]</span><span style="color:#bf0303;">Welcome to man zsh-lovers&quot;</span> <span style="color:#ca60ca;">&gt;&gt;</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">TTY</span>
0554 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">$((</span> <span style="color:#ca60ca;">[</span>#8<span style="color:#ca60ca;">]</span> <span style="color:#0057ae;">x</span> <span style="color:#ca60ca;">=</span> <span style="color:#b08000;">32</span><span style="font-weight:bold;">,</span> <span style="color:#0057ae;">y</span> <span style="color:#ca60ca;">=</span> <span style="color:#b08000;">32</span> <span style="color:#0057ae;">))</span>
0555 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">$((${${(</span><span style="color:#ca60ca;">z</span><span style="color:#0057ae;">)${(</span><span style="color:#ca60ca;">f</span><span style="color:#0057ae;">)</span><span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$(</span><span style="color:#644a9b;font-weight:bold;">dirs</span> <span style="color:#0057ae;">-v</span><span style="color:#0057ae;">)</span><span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">}</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">-1</span><span style="color:#ca60ca;">]</span><span style="color:#0057ae;">}</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">1</span><span style="color:#ca60ca;">]</span><span style="color:#0057ae;">}</span> <span style="color:#ca60ca;">+</span> <span style="color:#b08000;">1</span><span style="color:#0057ae;">))</span> <span style="color:#898887;"># or</span>
0556 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">$(</span><span style="color:#644a9b;font-weight:bold;">history</span> <span style="color:#0057ae;">-n</span> <span style="color:#0057ae;">-1</span><span style="font-weight:bold;">|</span><span style="color:#644a9b;">sed</span> <span style="color:#bf0303;">'s/.* //'</span><span style="color:#0057ae;">)</span>
0557 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">aa</span><span style="color:#ca60ca;">[</span><span style="color:#006e28;">(</span><span style="color:#ff5500;">e</span><span style="color:#006e28;">)</span><span style="color:#ca60ca;">*</span><span style="color:#ca60ca;">]</span>
0558 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">ass_array</span><span style="color:#ca60ca;">[</span>one<span style="color:#ca60ca;">]</span>
0559 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">x</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">y</span>
0560 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">${</span><span style="color:#ca60ca;">#</span><span style="color:#0057ae;">path</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">1</span><span style="color:#ca60ca;">]</span><span style="color:#0057ae;">}</span>       <span style="color:#898887;"># length of first element in path array</span>
0561 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">${</span><span style="color:#ca60ca;">#</span><span style="color:#0057ae;">path</span><span style="color:#0057ae;">}</span>          <span style="color:#898887;"># length of &quot;path&quot; array</span>
0562 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">${$(</span> <span style="color:#644a9b;">date</span> <span style="color:#0057ae;">)</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">2</span><span style="color:#ca60ca;">,</span><span style="color:#b08000;">4</span><span style="color:#ca60ca;">]</span><span style="color:#0057ae;">}</span> <span style="color:#898887;"># Print words two to four of output of ’date’:</span>
0563 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">${$(</span><span style="color:#0095ff;font-weight:bold;">/sbin/ifconfig</span> tun0<span style="color:#0057ae;">)</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">6</span><span style="color:#ca60ca;">]</span><span style="color:#0057ae;">}</span>
0564 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">${${$(</span> <span style="color:#0057ae;">LC_ALL</span><span style="color:#ca60ca;">=</span>C <span style="color:#0095ff;font-weight:bold;">/sbin/ifconfig</span> lo <span style="color:#0057ae;">)</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">6</span><span style="color:#ca60ca;">]</span><span style="color:#0057ae;">}</span><span style="color:#ca60ca;">#</span><span style="color:#bf0303;">addr:</span><span style="color:#0057ae;">}</span>
0565 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">${${$(</span><span style="color:#0057ae;">LC_ALL</span><span style="color:#ca60ca;">=</span>C <span style="color:#0095ff;font-weight:bold;">/sbin/ifconfig</span> eth0<span style="color:#0057ae;">)</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">7</span><span style="color:#ca60ca;">]</span><span style="color:#0057ae;">}</span><span style="color:#ca60ca;">:</span><span style="color:#0057ae;">gs</span><span style="color:#ca60ca;">/</span><span style="color:#bf0303;">addr:</span><span style="color:#ca60ca;">//</span><span style="color:#0057ae;">}</span>
0566 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">${${(</span><span style="color:#ca60ca;">Cs:</span><span style="color:#bf0303;">-</span><span style="color:#ca60ca;">:</span><span style="color:#0057ae;">)</span><span style="color:#ca60ca;">:-</span><span style="color:#bf0303;">fred-goat-dog.jpg</span><span style="color:#0057ae;">}</span><span style="color:#ca60ca;">%</span><span style="color:#bf0303;">.</span><span style="color:#006e28;">*</span><span style="color:#0057ae;">}</span>
0567 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">${${(</span><span style="color:#ca60ca;">z</span><span style="color:#0057ae;">)$(</span><span style="color:#644a9b;font-weight:bold;">history</span> <span style="color:#0057ae;">-n</span> <span style="color:#0057ae;">-1</span><span style="color:#0057ae;">)}</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">-1</span><span style="color:#ca60ca;">]</span><span style="color:#0057ae;">}</span>
0568 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">${${(</span><span style="color:#ca60ca;">z</span><span style="color:#0057ae;">)</span><span style="color:#0057ae;">history</span><span style="color:#ca60ca;">[</span><span style="color:#0057ae;">$((</span><span style="color:#0057ae;">HISTCMD</span><span style="color:#ca60ca;">-</span><span style="color:#b08000;">1</span><span style="color:#0057ae;">))</span><span style="color:#ca60ca;">]</span><span style="color:#0057ae;">}</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">-1</span><span style="color:#ca60ca;">]</span><span style="color:#0057ae;">}</span>
0569 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">L</span><span style="color:#0057ae;">)</span><span style="color:#0057ae;">s</span><span style="color:#ca60ca;">//</span><span style="color:#ff5500;"> </span><span style="color:#ca60ca;">/</span><span style="color:#bf0303;">-</span><span style="color:#0057ae;">}</span>.jpg
0570 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">L</span><span style="color:#0057ae;">)</span><span style="color:#0057ae;">s</span><span style="color:#ca60ca;">:</span><span style="color:#0057ae;">gs</span><span style="color:#ca60ca;">/</span><span style="color:#bf0303;"> </span><span style="color:#ca60ca;">/</span><span style="color:#bf0303;">-</span><span style="color:#ca60ca;">/</span><span style="color:#0057ae;">}</span>.jpg
0571 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">S</span><span style="color:#0057ae;">)</span><span style="color:#0057ae;">foo</span><span style="color:#ca60ca;">//</span><span style="color:#0057ae;">${</span><span style="color:#ca60ca;">~</span><span style="color:#0057ae;">sub</span><span style="color:#0057ae;">}</span><span style="color:#ca60ca;">/</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">rep</span><span style="color:#0057ae;">}</span>
0572 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">k</span><span style="color:#0057ae;">)</span><span style="color:#0057ae;">ass_array</span><span style="color:#0057ae;">}</span> <span style="color:#898887;"># prints keys</span>
0573 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">v</span><span style="color:#0057ae;">)</span><span style="color:#0057ae;">ass_array</span><span style="color:#0057ae;">}</span> <span style="color:#898887;"># prints values</span>
0574 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">JUNK</span><span style="color:#ca60ca;">/%</span><span style="color:#ff5500;">.</span><span style="color:#ca60ca;">/</span><span style="color:#bf0303;">_</span><span style="color:#0057ae;">}</span>                 <span style="color:#898887;"># substitute last . for a _</span>
0575 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">JUNK</span><span style="color:#ca60ca;">/</span><span style="color:#ff5500;">.</span><span style="color:#ca60ca;">(#e)</span><span style="color:#ca60ca;">/</span><span style="color:#bf0303;">_</span><span style="color:#0057ae;">}</span>              <span style="color:#898887;"># substitute last . for a _</span>
0576 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">arr</span><span style="color:#ca60ca;">//</span><span style="color:#ca60ca;">(#m)</span><span style="color:#006e28;">[</span><span style="color:#bf0303;">aeiou</span><span style="color:#006e28;">]</span><span style="color:#ca60ca;">/</span><span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">U</span><span style="color:#0057ae;">)</span><span style="color:#0057ae;">MATCH</span><span style="color:#0057ae;">}}</span>
0577 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">array</span><span style="color:#ca60ca;">:</span><span style="color:#0057ae;">t}</span>
0578 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">foo</span><span style="color:#ca60ca;">%%</span><span style="color:#bf0303;">$'</span><span style="color:#0057ae;">\n</span><span style="color:#bf0303;">'</span><span style="color:#0057ae;">}</span>                <span style="color:#898887;"># strip out a trailing carriage return</span>
0579 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">foo</span><span style="color:#ca60ca;">//</span><span style="color:#bf0303;">$'</span><span style="color:#0057ae;">\n</span><span style="color:#bf0303;">'</span><span style="color:#0057ae;">}</span>                <span style="color:#898887;"># strip out any carriage returns (some systems use \r)</span>
0580 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">foo</span><span style="color:#ca60ca;">//</span><span style="color:#0057ae;">${</span><span style="color:#ca60ca;">~</span><span style="color:#0057ae;">sub</span><span style="color:#0057ae;">}</span><span style="color:#ca60ca;">/</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">rep</span><span style="color:#0057ae;">}</span>
0581 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">foo</span><span style="color:#ca60ca;">:</span> <span style="color:#b08000;">1</span> <span style="color:#ca60ca;">+</span> <span style="color:#b08000;">2</span><span style="color:#0057ae;">}</span>
0582 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">foo</span><span style="color:#ca60ca;">:</span><span style="color:#0057ae;">$((</span> <span style="color:#b08000;">1</span> <span style="color:#ca60ca;">+</span> <span style="color:#b08000;">2</span><span style="color:#0057ae;">))}</span>
0583 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">foo</span><span style="color:#ca60ca;">:</span><span style="color:#0057ae;">$(</span><span style="color:#644a9b;font-weight:bold;">echo</span> 1 + 2<span style="color:#0057ae;">)}</span>
0584 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">foo</span><span style="color:#ca60ca;">:</span><span style="color:#b08000;">3</span><span style="color:#0057ae;">}</span>
0585 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">param</span><span style="color:#ca60ca;">:</span><span style="color:#0057ae;">&amp;}</span>   <span style="color:#006e28;">(</span><span style="color:#ff5500;">last substitute</span><span style="color:#006e28;">)</span>
0586 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">somevar</span><span style="color:#ca60ca;">//</span><span style="color:#006e28;">[</span><span style="color:#ca60ca;">^</span><span style="color:#006e28;">[:</span><span style="color:#ff5500;">alnum</span><span style="color:#006e28;">:]]</span><span style="color:#ca60ca;">/</span><span style="color:#bf0303;">_</span><span style="color:#0057ae;">}</span>   <span style="color:#898887;"># replace all non-alphanumerics with _ the // indicates global substitution</span>
0587 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">string</span><span style="color:#ca60ca;">[</span><span style="color:#006e28;">(</span><span style="color:#ff5500;">r</span><span style="color:#006e28;">)</span>d<span style="color:#ca60ca;">?</span><span style="color:#ca60ca;">,</span><span style="color:#006e28;">(</span><span style="color:#ff5500;">r</span><span style="color:#006e28;">)</span>h<span style="color:#ca60ca;">?</span><span style="color:#ca60ca;">]</span><span style="color:#0057ae;">}</span>
0588 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#bf0303;">'\e[1;34m fred'</span>
0589 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#006e28;">(*</span><span style="color:#ff5500;">/</span><span style="color:#006e28;">)#</span>zsh_us.ps
0590 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#006e28;">*</span><span style="color:#ca60ca;">(e:</span>age 2006/10/04 2006/10/09<span style="color:#ca60ca;">:)</span>
0591 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#006e28;">**</span>/<span style="color:#006e28;">*</span><span style="color:#ca60ca;">(/^F)</span> <span style="font-weight:bold;">|</span> <span style="color:#644a9b;">xargs</span> <span style="color:#0057ae;">-n1</span> <span style="color:#0057ae;">-t</span> rmdir <span style="color:#898887;">#delete empty directories</span>
0592 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#006e28;">*</span>.c<span style="color:#ca60ca;">(e_</span><span style="color:#bf0303;">'[[ ! -e $REPLY:r.o ]]'</span><span style="color:#ca60ca;">_)</span>
0593 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">-C</span> 1 <span style="color:#0057ae;">$</span><span style="color:#0057ae;">X</span>           <span style="color:#898887;"># print each array element on it's own line</span>
0594 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">-l</span> <span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">s.</span><span style="color:#bf0303;">:</span><span style="color:#ca60ca;">.</span><span style="color:#0057ae;">)</span><span style="color:#0057ae;">line</span><span style="color:#0057ae;">}</span><span style="color:#bf0303;">&quot;</span>
0595 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">-l</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">MATCH</span> X <span style="color:#0057ae;">$</span><span style="color:#0057ae;">match</span>
0596 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">-l</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">accum</span>
0597 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">-l</span> <span style="color:#006e28;">*</span><span style="color:#ca60ca;">(n</span><span style="color:#ca60ca;">:</span><span style="color:#0057ae;">t</span><span style="color:#ca60ca;">)</span>      <span style="color:#898887;"># order by name strip directory</span>
0598 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">-l</span> <span style="color:#006e28;">**</span>/<span style="color:#006e28;">*</span><span style="color:#ca60ca;">(-@)</span>
0599 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">-l</span> <span style="color:#006e28;">**</span>/<span style="color:#006e28;">*</span><span style="color:#ca60ca;">(O</span>n<span style="color:#ca60ca;">:</span><span style="color:#0057ae;">t</span><span style="color:#ca60ca;">)</span>  <span style="color:#898887;"># recursive reverse order by name, strip directory</span>
0600 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">-r</span> <span style="color:#0057ae;">--</span> <span style="color:#0057ae;">$</span><span style="color:#ca60ca;">^</span><span style="color:#0057ae;">X</span>.<span style="color:#0057ae;">$</span><span style="color:#ca60ca;">^</span><span style="color:#0057ae;">Y</span>
0601 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">-r</span> <span style="color:#0057ae;">--</span> <span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">qq</span><span style="color:#0057ae;">)</span><span style="color:#0057ae;">m</span><span style="color:#0057ae;">}</span> <span style="color:#ca60ca;">&gt;</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">nameoffile</span>      <span style="color:#898887;"># save it</span>
0602 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">-rC1</span> /tmp/foo<span style="color:#006e28;">*</span><span style="color:#ca60ca;">(u</span><span style="color:#b08000;">0</span><span style="color:#ca60ca;">^@</span><span style="color:#ca60ca;">:</span><span style="color:#0057ae;">t</span><span style="color:#ca60ca;">)</span>
0603 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">-rC1</span> b<span style="color:#006e28;">*</span>.pro<span style="color:#ca60ca;">(#q</span><span style="color:#ca60ca;">:</span><span style="color:#0057ae;">s</span><span style="color:#ca60ca;">/</span><span style="color:#ff5500;">pro</span><span style="color:#ca60ca;">/</span><span style="color:#bf0303;">shmo</span><span style="color:#ca60ca;">/</span><span style="color:#ca60ca;">)(#q.</span><span style="color:#ca60ca;">:</span><span style="color:#0057ae;">s</span><span style="color:#ca60ca;">/</span><span style="color:#ff5500;">builtin</span><span style="color:#ca60ca;">/</span><span style="color:#bf0303;">shmiltin</span><span style="color:#ca60ca;">/</span><span style="color:#ca60ca;">)</span>
0604 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">-rC2</span> <span style="color:#0057ae;">--</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">1</span><span style="color:#ca60ca;">:</span>[...]<span style="color:#0057ae;">}</span>/<span style="color:#006e28;">*</span><span style="color:#ca60ca;">(D</span><span style="color:#ca60ca;">:</span><span style="color:#0057ae;">t</span><span style="color:#ca60ca;">)</span>
0605 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">-rl</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">HOME</span>/<span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">l:</span><span style="color:#b08000;">20</span><span style="color:#ca60ca;">::</span><span style="color:#bf0303;">?</span><span style="color:#ca60ca;">:</span><span style="color:#0057ae;">)</span><span style="color:#ca60ca;">~:-</span><span style="color:#0057ae;">}</span><span style="color:#006e28;">*</span>
0606 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">-rl</span> <span style="color:#0057ae;">--</span> <span style="color:#0057ae;">${${</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">mapfile</span><span style="color:#ca60ca;">[</span><span style="color:#ca60ca;">/</span>etc<span style="color:#ca60ca;">/</span>passwd<span style="color:#ca60ca;">]</span><span style="color:#0057ae;">}</span><span style="color:#ca60ca;">:#</span><span style="color:#006e28;">*</span><span style="color:#ca60ca;">(#i)</span><span style="color:#bf0303;">root</span><span style="color:#006e28;">*</span><span style="color:#0057ae;">}</span>
0607 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">-rl</span> /<span style="color:#006e28;">**</span>/<span style="color:#006e28;">*~^*</span>/path<span style="color:#006e28;">(|</span><span style="color:#ff5500;">/</span><span style="color:#006e28;">*)</span>
0608 <span style="color:#644a9b;font-weight:bold;">print</span> {<span style="color:#0057ae;">$((</span><span style="color:#b08000;">##</span><span style="color:#b08000;">n</span><span style="color:#0057ae;">))</span>..<span style="color:#0057ae;">$((</span><span style="color:#b08000;">##</span><span style="color:#b08000;">y</span><span style="color:#0057ae;">))</span>}P<span style="color:#0057ae;">\ </span>10P <span style="font-weight:bold;">|</span> <span style="color:#644a9b;">dc</span>
0609 <span style="color:#644a9b;font-weight:bold;">print</span> root@192.168.168.157:<span style="color:#0057ae;">${</span><span style="color:#0057ae;">PWD</span><span style="color:#ca60ca;">/</span><span style="color:#ff5500;">test</span><span style="color:#ca60ca;">/</span><span style="color:#bf0303;">live</span><span style="color:#0057ae;">}</span>v
0610 
0611 
0612 <span style="color:#898887;"># conditions</span>
0613 <span style="color:#644a9b;font-weight:bold;">[</span> a <span style="color:#644a9b;font-weight:bold;">]</span>
0614 <span style="color:#644a9b;font-weight:bold;">[</span> <span style="color:#006e28;">-f</span> f<span style="color:#bf0303;">'f'</span>f <span style="color:#644a9b;font-weight:bold;">]</span>
0615 <span style="color:#644a9b;font-weight:bold;">[</span> <span style="color:#006e28;">-f</span> f]<span style="color:#bf0303;">'f'</span>f] <span style="color:#644a9b;font-weight:bold;">]</span>
0616 <span style="color:#644a9b;font-weight:bold;">[</span> <span style="color:#006e28;">-t</span> 13 <span style="color:#644a9b;font-weight:bold;">]</span>
0617 <span style="color:#644a9b;font-weight:bold;">[</span> <span style="color:#006e28;">-t</span> 13] <span style="color:#644a9b;font-weight:bold;">]</span>
0618 <span style="color:#644a9b;font-weight:bold;">[</span> <span style="color:#006e28;">-t</span> 13] <span style="color:#644a9b;font-weight:bold;">]</span>
0619 <span style="color:#644a9b;font-weight:bold;">[</span> <span style="color:#006e28;">-v</span> abc <span style="color:#644a9b;font-weight:bold;">]</span>
0620 <span style="color:#644a9b;font-weight:bold;">[</span> <span style="color:#006e28;">-z</span> abc <span style="color:#644a9b;font-weight:bold;">]</span>
0621 <span style="color:#644a9b;font-weight:bold;">[</span> abc <span style="color:#006e28;">-ef</span> abc <span style="color:#644a9b;font-weight:bold;">]</span>
0622 <span style="color:#644a9b;font-weight:bold;">[</span> abc <span style="color:#006e28;">-ef</span> abc <span style="color:#644a9b;font-weight:bold;">]</span>
0623 <span style="color:#644a9b;font-weight:bold;">[</span> abc-ef <span style="color:#006e28;">-ef</span> abc-ef <span style="color:#644a9b;font-weight:bold;">]</span>
0624 <span style="color:#644a9b;font-weight:bold;">[</span> abc <span style="color:#006e28;">==</span> abc <span style="color:#644a9b;font-weight:bold;">]</span>
0625 <span style="color:#644a9b;font-weight:bold;">[</span> abc <span style="color:#bf0303;text-decoration:underline;">&lt;</span> abc <span style="color:#644a9b;font-weight:bold;">]</span>
0626 <span style="color:#644a9b;font-weight:bold;">[</span> abc <span style="color:#006e28;">-eq</span> abc <span style="color:#644a9b;font-weight:bold;">]</span>
0627 <span style="font-weight:bold;">[[</span> abc <span style="color:#006e28;">-eq</span> abc <span style="font-weight:bold;">]]</span>
0628 <span style="color:#644a9b;font-weight:bold;">[</span> 1+2 <span style="color:#006e28;">-eq</span> 1+2 <span style="color:#644a9b;font-weight:bold;">]</span>
0629 <span style="font-weight:bold;">[[</span> 1+2 <span style="color:#006e28;">-eq</span> 1+2 <span style="font-weight:bold;">]]</span>
0630 <span style="color:#644a9b;font-weight:bold;">[</span> a <span style="color:#006e28;">=</span> b <span style="color:#bf0303;text-decoration:underline;">c</span> <span style="color:#0095ff;font-weight:bold;">]</span>
0631 <span style="color:#644a9b;font-weight:bold;">[</span> <span style="color:#006e28;">-z</span> 1 <span style="color:#006e28;">-a</span> 1 <span style="color:#006e28;">-eq</span> 1 <span style="color:#644a9b;font-weight:bold;">]</span>
0632 <span style="color:#644a9b;font-weight:bold;">[</span> 2 <span style="color:#006e28;">-eq</span> 1 <span style="color:#006e28;">-o</span> 1 <span style="color:#006e28;">-eq</span> 1 <span style="color:#644a9b;font-weight:bold;">]</span>
0633 <span style="font-weight:bold;">(</span> <span style="color:#644a9b;font-weight:bold;">[</span> a <span style="color:#006e28;">=</span> b <span style="color:#644a9b;font-weight:bold;">]</span> <span style="font-weight:bold;">)</span>
0634 <span style="font-weight:bold;">(</span><span style="color:#644a9b;font-weight:bold;">[</span> a <span style="color:#006e28;">=</span> b <span style="color:#644a9b;font-weight:bold;">]</span><span style="font-weight:bold;">)</span>
0635 <span style="font-weight:bold;">[[</span> a <span style="color:#006e28;">=</span> b <span style="color:#bf0303;text-decoration:underline;">c</span> <span style="color:#0095ff;font-weight:bold;">]]</span>
0636 <span style="font-weight:bold;">[[</span> x <span style="color:#006e28;">=~</span> <span style="color:#ff5500;">a</span><span style="color:#ca60ca;">(</span><span style="color:#ff5500;">b c</span><span style="color:#006e28;">|</span><span style="color:#ca60ca;">$)</span><span style="color:#bf0303;">' '</span><span style="color:#0057ae;">{</span><span style="color:#b08000;">1</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">}</span><span style="color:#ca60ca;">[</span><span style="color:#ff5500;">a</span><span style="color:#ca60ca;">[.</span><span style="color:#0057ae;">digit</span><span style="color:#ca60ca;">.]</span><span style="color:#ca60ca;">]</span> <span style="font-weight:bold;">]]</span>
0637 <span style="font-weight:bold;">[[</span> x <span style="color:#006e28;">=~</span> <span style="color:#ca60ca;">[</span> <span style="color:#bf0303;text-decoration:underline;">] </span><span style="color:#0095ff;font-weight:bold;">]]</span>
0638 <span style="font-weight:bold;">[[</span> x <span style="color:#006e28;">=~</span> <span style="color:#ca60ca;">([</span><span style="color:#ff5500;"> </span><span style="color:#ca60ca;">])</span> <span style="font-weight:bold;">]]</span>
0639 <span style="font-weight:bold;">[[</span> x <span style="color:#006e28;">=~</span> <span style="color:#ca60ca;">[</span> <span style="font-weight:bold;">]]</span>
0640 <span style="font-weight:bold;">[[</span> x <span style="color:#006e28;">=~</span> <span style="color:#ca60ca;">([)</span> <span style="font-weight:bold;">]]</span>
0641 <span style="font-weight:bold;">[[</span> <span style="color:#ca60ca;">(</span>a <span style="color:#006e28;">=~</span> <span style="color:#ff5500;">a</span><span style="color:#ca60ca;">)</span> <span style="font-weight:bold;">]]</span>
0642 <span style="font-weight:bold;">[[</span> <span style="color:#ca60ca;">(</span>a <span style="color:#006e28;">=~</span>
0643 <span style="color:#ff5500;">a</span><span style="color:#ca60ca;">)</span> <span style="font-weight:bold;">]]</span>
0644 <span style="font-weight:bold;">[[</span> a <span style="color:#006e28;">=~</span> <span style="color:#ff5500;">a</span> <span style="font-weight:bold;">||</span> a <span style="color:#006e28;">-eq</span> 2 <span style="font-weight:bold;">]]</span>
0645 <span style="font-weight:bold;">[[</span> <span style="color:#ca60ca;">(</span>a <span style="color:#006e28;">=~</span> <span style="color:#ff5500;">a</span><span style="color:#ca60ca;">)</span> <span style="font-weight:bold;">||</span> a <span style="color:#006e28;">-eq</span> 2 <span style="font-weight:bold;">]]</span>
0646 <span style="font-weight:bold;">[[</span> a<span style="color:#006e28;">&lt;</span>b <span style="font-weight:bold;">]]</span>
0647 <span style="font-weight:bold;">[[</span> a <span style="color:#006e28;">&lt;</span>b <span style="font-weight:bold;">]]</span>
0648 <span style="font-weight:bold;">[[</span> a<span style="color:#006e28;">&lt;</span> b <span style="font-weight:bold;">]]</span>
0649 <span style="font-weight:bold;">[[</span> a <span style="color:#006e28;">&lt;</span> b <span style="font-weight:bold;">]]</span>
0650 <span style="font-weight:bold;">[[</span><span style="color:#ca60ca;">(</span><span style="color:#006e28;">!</span> <span style="color:#006e28;">-d</span> .<span style="color:#ca60ca;">)</span><span style="font-weight:bold;">]]</span>
0651 <span style="font-weight:bold;">[[</span> <span style="color:#006e28;">!</span> <span style="color:#006e28;">-d</span> . <span style="font-weight:bold;">]]</span>
0652 <span style="font-weight:bold;">[[</span> <span style="color:#006e28;">!</span><span style="color:#ca60ca;">(</span><span style="color:#006e28;">-d</span> .<span style="color:#ca60ca;">)</span> <span style="font-weight:bold;">]]</span>
0653 <span style="font-weight:bold;">[[</span> <span style="color:#006e28;">-f</span> a <span style="font-weight:bold;">||</span> <span style="color:#006e28;">-f</span> b <span style="font-weight:bold;">]]</span>
0654 <span style="font-weight:bold;">[[</span> <span style="color:#006e28;">-f</span> a<span style="font-weight:bold;">||</span><span style="color:#006e28;">-f</span> b <span style="font-weight:bold;">]]</span>
0655 <span style="font-weight:bold;">[[</span> <span style="color:#006e28;">!</span> <span style="color:#ca60ca;">(</span>a <span style="color:#006e28;">-eq</span> b<span style="color:#ca60ca;">)</span> <span style="font-weight:bold;">]]</span>
0656 <span style="color:#644a9b;font-weight:bold;">[</span> <span style="color:#006e28;">-d</span> <span style="font-weight:bold;">`</span><span style="color:#644a9b;font-weight:bold;">echo</span> .<span style="font-weight:bold;">`</span>] <span style="color:#644a9b;font-weight:bold;">]</span>
0657 <span style="font-weight:bold;">[[</span> <span style="color:#006e28;">-d</span> <span style="font-weight:bold;">`</span><span style="color:#644a9b;font-weight:bold;">echo</span> .<span style="font-weight:bold;">`</span>]] <span style="font-weight:bold;">]]</span>
0658 <span style="font-weight:bold;">[[</span> a <span style="color:#006e28;">!=</span> b <span style="font-weight:bold;">&amp;&amp;</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">a</span><span style="color:#0057ae;">}</span>a <span style="color:#006e28;">=</span> b<span style="color:#0057ae;">${</span><span style="color:#0057ae;">b</span><span style="color:#0057ae;">}</span> <span style="font-weight:bold;">]]</span>
0659 <span style="font-weight:bold;">[[</span>
0660   1 <span style="color:#006e28;">-eq</span> 2
0661 <span style="font-weight:bold;">]]</span>
0662 <span style="font-weight:bold;">[[</span>
0663   1
0664   <span style="color:#006e28;">-eq</span>
0665   2
0666 <span style="font-weight:bold;">]]</span>
0667 <span style="font-weight:bold;">[[</span> -<span style="color:#bf0303;">&quot;&quot;</span><span style="color:#ca60ca;">(#i)</span>* <span style="color:#006e28;">==</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">x</span> <span style="font-weight:bold;">]]</span>
0668 <span style="font-weight:bold;">[[</span> <span style="font-weight:bold;">]]</span>
0669 <span style="font-weight:bold;">[[</span> <span style="color:#006e28;">-f</span> <span style="font-weight:bold;">]]</span>
0670 <span style="font-weight:bold;">[[</span> <span style="color:#006e28;">-f</span> &lt;0-99&gt; <span style="font-weight:bold;">]]</span>
0671 <span style="font-weight:bold;">[[</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">1</span> <span style="color:#006e28;">==</span> <span style="color:#006e28;">&lt;-&gt;</span> <span style="font-weight:bold;">]]</span>
0672 <span style="font-weight:bold;">[[</span> ?*&lt;0-99&gt; <span style="color:#006e28;">=</span> <span style="color:#006e28;">&lt;</span><span style="color:#b08000;">0</span><span style="color:#006e28;">-</span><span style="color:#b08000;">99</span><span style="color:#006e28;">&gt;</span> <span style="font-weight:bold;">]]</span>
0673 <span style="font-weight:bold;">[[</span> -f <span style="color:#006e28;">=</span> <span style="color:#006e28;">?*&lt;</span><span style="color:#b08000;">0</span><span style="color:#006e28;">-</span><span style="color:#b08000;">99</span><span style="color:#006e28;">&gt;</span> <span style="font-weight:bold;">]]</span>
0674 <span style="font-weight:bold;">[[</span> a/sa[s <span style="color:#006e28;">=</span> dsad<span style="color:#006e28;">?*&lt;</span><span style="color:#b08000;">0</span><span style="color:#006e28;">-</span><span style="color:#b08000;">9</span><span style="color:#006e28;">&gt;</span>dsa<span style="color:#0057ae;">$</span><span style="color:#0057ae;">ds</span> <span style="font-weight:bold;">]]</span>
0675 <span style="font-weight:bold;">[[</span> a/sa[s <span style="color:#006e28;">=</span> dsad<span style="color:#006e28;">?*&lt;</span><span style="color:#b08000;">0</span><span style="color:#006e28;">-</span><span style="color:#b08000;">9</span><span style="color:#006e28;">&gt;</span>ds/a<span style="color:#0057ae;">$</span><span style="color:#0057ae;">ds</span> <span style="font-weight:bold;">]]</span>
0676 <span style="font-weight:bold;">[[</span> a <span style="color:#006e28;">=~</span> <span style="color:#ff5500;">&lt;1-2&gt;a&lt;-&gt;a&lt;-2&gt;a&lt;2-&gt;a</span><span style="color:#ca60ca;">([</span><span style="color:#ff5500;">!d</span><span style="color:#ca60ca;">]</span><span style="color:#ff5500;">a</span><span style="color:#006e28;">?</span><span style="color:#ff5500;">s</span><span style="color:#ca60ca;">[</span><span style="color:#ff5500;">x</span><span style="color:#ca60ca;">[:</span><span style="color:#0057ae;">alnum</span><span style="color:#ca60ca;">:]</span><span style="color:#ca60ca;">]</span><span style="color:#006e28;">|</span><span style="color:#ff5500;">d</span><span style="color:#006e28;">?</span><span style="color:#ca60ca;">)</span><span style="color:#ff5500;">p</span> <span style="font-weight:bold;">]]</span>
0677 <span style="font-weight:bold;">[[</span> <span style="color:#006e28;">-n</span> file*<span style="color:#ca60ca;">(#qN)</span> <span style="font-weight:bold;">]]</span>
0678 <span style="font-weight:bold;">[[</span> <span style="color:#ca60ca;">(</span> <span style="color:#006e28;">-f</span> foo <span style="font-weight:bold;">||</span> <span style="color:#006e28;">-f</span> bar <span style="color:#ca60ca;">)</span> <span style="font-weight:bold;">&amp;&amp;</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">report</span> <span style="color:#006e28;">=</span> y<span style="color:#006e28;">*</span> <span style="font-weight:bold;">]]</span> <span style="font-weight:bold;">&amp;&amp;</span> <span style="color:#644a9b;font-weight:bold;">print</span> File exists.
0679 <span style="font-weight:bold;">[[</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">str</span> <span style="color:#006e28;">=</span> <span style="color:#0057ae;">${</span><span style="color:#ca60ca;">~</span><span style="color:#0057ae;">pattern</span><span style="color:#0057ae;">}</span> <span style="font-weight:bold;">]]</span>
0680 <span style="font-weight:bold;">[[</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">str</span> <span style="color:#006e28;">=</span> <span style="color:#0057ae;">${</span><span style="color:#ca60ca;">~</span><span style="color:#0057ae;">pattern</span><span style="color:#0057ae;">}</span> <span style="font-weight:bold;">]]</span>
0681 <span style="font-weight:bold;">[[</span> <span style="color:#bf0303;">&quot;?&quot;</span> <span style="color:#006e28;">=</span> <span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">~j.</span><span style="color:#bf0303;">|</span><span style="color:#ca60ca;">.</span><span style="color:#0057ae;">)</span><span style="color:#0057ae;">array</span><span style="color:#0057ae;">}</span> <span style="font-weight:bold;">]]</span>
0682 <span style="font-weight:bold;">(</span> <span style="font-weight:bold;">[[</span> a <span style="color:#006e28;">=</span> b <span style="font-weight:bold;">]]</span> <span style="font-weight:bold;">)</span>
0683 <span style="font-weight:bold;">([[</span> a <span style="color:#006e28;">=</span> b <span style="font-weight:bold;">]])</span>
0684 
0685 <span style="font-weight:bold;">[[</span> <span style="color:#898887;">#comm1</span>
0686  <span style="color:#898887;">#comm2</span>
0687  <span style="color:#006e28;">!</span> <span style="color:#898887;">#comm3</span>
0688  p[1] <span style="color:#898887;">#comm4</span>
0689  <span style="color:#006e28;">==</span> <span style="color:#898887;">#comm5</span>
0690  p<span style="color:#006e28;">[</span><span style="color:#bf0303;">2</span><span style="color:#006e28;">]</span> <span style="color:#898887;">#comm6</span>
0691  <span style="color:#898887;">#comm7</span>
0692  <span style="color:#898887;">#comm8</span>
0693 <span style="font-weight:bold;">]]</span>
0694 
0695 <span style="font-weight:bold;">[[</span> <span style="color:#898887;">#comm1</span>
0696  <span style="color:#898887;">#comm2</span>
0697  <span style="color:#006e28;">-f</span> <span style="color:#898887;">#comme3</span>
0698  <span style="color:#898887;">#comm4</span>
0699  p[2] <span style="color:#898887;">#comm5</span>
0700  <span style="color:#898887;">#comm6</span>
0701  <span style="color:#898887;">#comm7</span>
0702 <span style="font-weight:bold;">]]</span>
0703 
0704 <span style="color:#644a9b;font-weight:bold;">[</span> a <span style="color:#006e28;">-eq</span> 2 <span style="color:#644a9b;font-weight:bold;">]</span> <span style="font-weight:bold;">||</span> <span style="color:#644a9b;font-weight:bold;">[</span> a <span style="color:#006e28;">-eq</span> 2] <span style="color:#644a9b;font-weight:bold;">]</span> <span style="font-weight:bold;">&amp;&amp;</span> <span style="font-weight:bold;">[[</span> a <span style="color:#006e28;">-eq</span> 2 <span style="font-weight:bold;">]]</span> <span style="font-weight:bold;">||</span> <span style="font-weight:bold;">[[</span> a <span style="color:#006e28;">!=</span> b <span style="font-weight:bold;">]]</span><span style="font-weight:bold;">;</span>
0705 <span style="color:#644a9b;font-weight:bold;">[</span> a <span style="color:#006e28;">-eq</span> 2 <span style="color:#644a9b;font-weight:bold;">]</span><span style="font-weight:bold;">||</span><span style="color:#644a9b;font-weight:bold;">[</span> a <span style="color:#006e28;">-eq</span> 2] <span style="color:#644a9b;font-weight:bold;">]</span><span style="font-weight:bold;">&amp;&amp;</span><span style="font-weight:bold;">[[</span> a <span style="color:#006e28;">-eq</span> 2 <span style="font-weight:bold;">]]</span><span style="font-weight:bold;">||</span><span style="font-weight:bold;">[[</span> a <span style="color:#006e28;">!=</span> b <span style="font-weight:bold;">]]</span><span style="font-weight:bold;">;</span>
0706 
0707 <span style="font-weight:bold;">((</span><span style="color:#b08000;">3</span><span style="color:#ca60ca;">+</span><span style="color:#b08000;">1</span><span style="color:#ca60ca;">+</span><span style="color:#0057ae;">a</span><span style="color:#ca60ca;">+</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">c</span><span style="color:#ca60ca;">*</span>(<span style="color:#0057ae;">x</span>) <span style="color:#ca60ca;">&amp;</span> <span style="color:#b08000;">0x4342_2fd</span><span style="color:#ca60ca;">+</span><span style="color:#b08000;">03</span><span style="color:#ca60ca;">-</span><span style="color:#b08000;">08_5</span><span style="color:#ca60ca;">/</span><span style="color:#0057ae;">23#</span><span style="color:#b08000;">D9a@_</span><span style="color:#ca60ca;">^</span><span style="color:#b08000;">8</span><span style="font-weight:bold;">))</span>
0708 <span style="font-weight:bold;">((</span><span style="color:#b08000;">1.3</span><span style="color:#ca60ca;">/</span>(<span style="color:#b08000;">2</span><span style="color:#ca60ca;">-</span>(<span style="color:#0057ae;">a</span><span style="color:#ca60ca;">-</span><span style="color:#b08000;">4</span>))<span style="font-weight:bold;">))</span>
0709 
0710 <span style="color:#898887;"># they are not arithmetic evaluations...</span>
0711 <span style="font-weight:bold;">((</span><span style="color:#0095ff;font-weight:bold;">cmd</span> <span style="font-weight:bold;">&amp;&amp;</span> <span style="color:#0095ff;font-weight:bold;">cmd</span><span style="font-weight:bold;">)</span> <span style="font-weight:bold;">||</span> <span style="color:#0095ff;font-weight:bold;">cmd</span><span style="font-weight:bold;">)</span>
0712 <span style="color:#0057ae;">$(</span><span style="font-weight:bold;">(</span><span style="color:#0095ff;font-weight:bold;">cmd</span> <span style="font-weight:bold;">&amp;&amp;</span> <span style="color:#0095ff;font-weight:bold;">cmd</span><span style="font-weight:bold;">)</span> <span style="font-weight:bold;">||</span> <span style="color:#0095ff;font-weight:bold;">cmd</span><span style="color:#0057ae;">)</span>
0713 <span style="font-weight:bold;">((</span><span style="color:#0057ae;">cmd</span> <span style="font-weight:bold;">&amp;&amp;</span>
0714 <span style="color:#0057ae;">cmd</span><span style="font-weight:bold;">)</span> <span style="font-weight:bold;">||</span> <span style="color:#0095ff;font-weight:bold;">cmd</span><span style="font-weight:bold;">)</span>
0715 <span style="color:#0057ae;">$((</span><span style="color:#0057ae;">cmd</span> <span style="font-weight:bold;">&amp;&amp;</span>
0716 <span style="color:#0057ae;">cmd</span><span style="color:#0057ae;">)</span> <span style="font-weight:bold;">||</span> <span style="color:#0095ff;font-weight:bold;">cmd</span><span style="color:#0057ae;">)</span>
0717 
0718 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">$((</span> <span style="color:#ca60ca;">[</span>#_<span style="color:#ca60ca;">]</span> <span style="color:#0057ae;">sqrt</span>(<span style="color:#b08000;">1e7</span>) <span style="color:#b08000;">0__39</span> <span style="color:#b08000;">1423e23</span> <span style="color:#b08000;">.2443</span> <span style="color:#b08000;">43.34</span> <span style="color:#b08000;">34.43e4</span> <span style="color:#ca60ca;">.</span><span style="color:#0057ae;">d</span><span style="color:#0057ae;">))</span>
0719 
0720 <span style="font-weight:bold;">{</span> <span style="color:#644a9b;font-weight:bold;">echo</span>
0721     <span style="color:#644a9b;font-weight:bold;">echo</span>
0722 <span style="font-weight:bold;">}</span>
0723 <span style="font-weight:bold;">{</span> <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="font-weight:bold;">;</span> <span style="font-weight:bold;">}</span>
0724 <span style="font-weight:bold;">{</span> <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="font-weight:bold;">}</span>
0725 <span style="font-weight:bold;">{</span><span style="color:#644a9b;font-weight:bold;">echo</span><span style="font-weight:bold;">}</span>
0726 <span style="font-weight:bold;">{</span><span style="color:#644a9b;">ls</span> f<span style="font-weight:bold;">}</span> <span style="font-weight:bold;">always</span> <span style="font-weight:bold;">{</span><span style="color:#644a9b;">ls</span><span style="font-weight:bold;">}</span>
0727 <span style="font-weight:bold;">{</span><span style="color:#644a9b;font-weight:bold;">echo</span> {a}<span style="font-weight:bold;">}</span>
0728 <span style="color:#0095ff;font-weight:bold;">}echo</span>
0729 <span style="color:#644a9b;font-weight:bold;">echo</span> {a} {a/b} a{b}/c a/b{c} a/{b} a/{b}c d/{{a}}
0730 <span style="color:#644a9b;font-weight:bold;">echo</span> {a{a{a}}}
0731 <span style="color:#644a9b;font-weight:bold;">echo</span> {a{a{a}a}a}a
0732 <span style="color:#644a9b;font-weight:bold;">echo</span> {a
0733 <span style="color:#644a9b;font-weight:bold;">echo</span> a<span style="color:#bf0303;text-decoration:underline;">}</span>
0734 <span style="color:#644a9b;font-weight:bold;">echo</span>{a}
0735 <span style="color:#644a9b;font-weight:bold;">echo</span>{a{a{a}}}
0736 <span style="color:#644a9b;font-weight:bold;">echo</span>{a{a{a}a}a}a
0737 <span style="color:#644a9b;font-weight:bold;">echo</span>{a
0738 <span style="color:#644a9b;font-weight:bold;">echo</span><span style="color:#bf0303;text-decoration:underline;">}</span>
0739 
0740 <span style="font-weight:bold;">{</span> <span style="font-weight:bold;">{</span><span style="color:#644a9b;font-weight:bold;">echo</span> a<span style="font-weight:bold;">}</span> <span style="font-weight:bold;">}</span>
0741 <span style="font-weight:bold;">{</span> <span style="font-weight:bold;">{</span><span style="color:#644a9b;font-weight:bold;">echo</span> a}a<span style="font-weight:bold;">}</span> <span style="font-weight:bold;">}</span>
0742 <span style="font-weight:bold;">{</span> <span style="font-weight:bold;">{</span> <span style="color:#644a9b;font-weight:bold;">echo</span> a <span style="font-weight:bold;">}</span> <span style="font-weight:bold;">}</span>
0743 <span style="font-weight:bold;">{</span> <span style="font-weight:bold;">{</span> <span style="color:#644a9b;font-weight:bold;">echo</span> a}a <span style="font-weight:bold;">}</span> <span style="font-weight:bold;">}</span>
0744 
0745 <span style="font-weight:bold;">{</span> <span style="font-weight:bold;">{</span><span style="color:#644a9b;font-weight:bold;">echo</span> a/b<span style="font-weight:bold;">}</span> <span style="font-weight:bold;">}</span>
0746 <span style="font-weight:bold;">{</span> <span style="font-weight:bold;">{</span><span style="color:#644a9b;font-weight:bold;">echo</span> a/b}a<span style="font-weight:bold;">}</span> <span style="font-weight:bold;">}</span>
0747 <span style="font-weight:bold;">{</span> <span style="font-weight:bold;">{</span> <span style="color:#644a9b;font-weight:bold;">echo</span> a/b <span style="font-weight:bold;">}</span> <span style="font-weight:bold;">}</span>
0748 <span style="font-weight:bold;">{</span> <span style="font-weight:bold;">{</span> <span style="color:#644a9b;font-weight:bold;">echo</span> a/b}a <span style="font-weight:bold;">}</span> <span style="font-weight:bold;">}</span>
0749 
0750 <span style="font-weight:bold;">{</span> <span style="font-weight:bold;">{</span><span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#ca60ca;">&gt;</span>a/b<span style="font-weight:bold;">}</span> <span style="font-weight:bold;">}</span>
0751 <span style="font-weight:bold;">{</span> <span style="font-weight:bold;">{</span><span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#ca60ca;">&gt;</span>a/b}a<span style="font-weight:bold;">}</span> <span style="font-weight:bold;">}</span>
0752 <span style="font-weight:bold;">{</span> <span style="font-weight:bold;">{</span> <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#ca60ca;">&gt;</span>a/b <span style="font-weight:bold;">}</span> <span style="font-weight:bold;">}</span>
0753 <span style="font-weight:bold;">{</span> <span style="font-weight:bold;">{</span> <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#ca60ca;">&gt;</span>a/b}a <span style="font-weight:bold;">}</span> <span style="font-weight:bold;">}</span>
0754 
0755 <span style="font-weight:bold;">{</span><span style="color:#0095ff;font-weight:bold;">ab}c</span><span style="font-weight:bold;">}</span>
0756 <span style="font-weight:bold;">{</span><span style="color:#0095ff;font-weight:bold;">a,b}c</span><span style="font-weight:bold;">}</span>
0757 <span style="font-weight:bold;">{</span><span style="color:#0095ff;font-weight:bold;">ab</span><span style="font-weight:bold;">}</span><span style="color:#006e28;">[</span><span style="color:#bf0303;">}</span>
0758 <span style="font-weight:bold;">{</span><span style="color:#0095ff;font-weight:bold;">a,b</span><span style="font-weight:bold;">}</span><span style="color:#006e28;">[</span><span style="color:#bf0303;">}</span>
0759 
0760 <span style="color:#644a9b;">cat</span> <span style="color:#ca60ca;">&gt;</span>f<span style="color:#0057ae;">{</span>oo<span style="color:#ca60ca;">,</span>ar<span style="color:#0057ae;">}</span>
0761 
0762 <span style="font-weight:bold;">(</span><span style="color:#644a9b;font-weight:bold;">echo</span> <span style="font-weight:bold;">;</span> <span style="color:#644a9b;font-weight:bold;">echo</span><span style="font-weight:bold;">)</span>
0763 <span style="font-weight:bold;">(</span><span style="color:#644a9b;font-weight:bold;">echo</span>
0764     <span style="color:#644a9b;font-weight:bold;">echo</span><span style="font-weight:bold;">)</span>
0765 <span style="font-weight:bold;">(</span><span style="color:#644a9b;font-weight:bold;">echo</span> a<span style="font-weight:bold;">)</span>
0766 <span style="color:#644a9b;font-weight:bold;">test</span> a <span style="color:#0057ae;">-eq</span> b
0767 
0768 <span style="color:#898887;"># functions</span>
0769 <span style="color:#644a9b;">a()</span> <span style="font-weight:bold;">{</span> <span style="color:#644a9b;font-weight:bold;">echo</span> x<span style="font-weight:bold;">;</span> <span style="font-weight:bold;">}</span>
0770 <span style="color:#644a9b;">a  ()</span> <span style="font-weight:bold;">{</span> <span style="color:#644a9b;font-weight:bold;">echo</span> x<span style="font-weight:bold;">;</span> <span style="font-weight:bold;">}</span>
0771 <span style="font-weight:bold;">function</span> <span style="color:#644a9b;">f</span> <span style="font-weight:bold;">{</span> <span style="color:#644a9b;font-weight:bold;">echo</span> x<span style="font-weight:bold;">;</span> <span style="font-weight:bold;">}</span>
0772 <span style="color:#644a9b;">kde.org()</span> <span style="font-weight:bold;">{</span> <span style="color:#644a9b;font-weight:bold;">echo</span> x<span style="font-weight:bold;">;</span> <span style="font-weight:bold;">}</span>
0773 <span style="color:#644a9b;">--func()</span> <span style="font-weight:bold;">{</span> <span style="color:#644a9b;font-weight:bold;">echo</span> x<span style="font-weight:bold;">;</span> <span style="font-weight:bold;">}</span>
0774 <span style="color:#644a9b;font-weight:bold;">noglob</span> <span style="font-weight:bold;">function</span> <span style="color:#644a9b;">f</span> <span style="font-weight:bold;">{</span> <span style="color:#644a9b;font-weight:bold;">echo</span> x<span style="font-weight:bold;">;</span> <span style="font-weight:bold;">}</span>
0775 
0776 <span style="color:#898887;"># variables</span>
0777 <span style="color:#0057ae;">a</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">(</span>a b c<span style="color:#0057ae;">)</span>
0778 <span style="color:#0057ae;">a</span><span style="color:#ca60ca;">=</span><span style="color:#bf0303;">'a'</span>
0779 <span style="color:#0057ae;">a</span><span style="color:#ca60ca;">+=</span>b
0780 <span style="color:#0057ae;">a</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">1</span><span style="color:#ca60ca;">]</span><span style="color:#ca60ca;">=</span><span style="color:#bf0303;">'a'</span>
0781 <span style="color:#0057ae;">a</span><span style="color:#ca60ca;">[</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">i</span><span style="color:#ca60ca;">]</span><span style="color:#ca60ca;">=</span><span style="color:#bf0303;">'x'</span>
0782 <span style="color:#0057ae;">a</span><span style="color:#ca60ca;">[</span><span style="color:#0057ae;">$((</span>
0783     <span style="color:#b08000;">2</span><span style="color:#ca60ca;">+</span><span style="color:#b08000;">4</span>
0784 <span style="color:#0057ae;">))</span><span style="color:#ca60ca;">]</span><span style="color:#ca60ca;">=</span><span style="color:#bf0303;">'x'</span>
0785 <span style="color:#0057ae;">a</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">(</span><span style="color:#ca60ca;">[</span>a<span style="color:#ca60ca;">]</span><span style="color:#0057ae;">=</span>2 <span style="font-weight:bold;">`</span><span style="color:#644a9b;font-weight:bold;">echo</span><span style="font-weight:bold;">`</span> -s <span style="color:#bf0303;text-decoration:underline;">&gt;</span> <span style="color:#bf0303;">'ds'</span><span style="color:#0057ae;">)</span>
0786 <span style="color:#0057ae;">a</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">(</span><span style="color:#898887;">#comment</span>
0787 value<span style="color:#006e28;">#</span>nocomment <span style="color:#898887;">#comment)</span>
0788 <span style="color:#0057ae;">)</span>
0789 <span style="color:#0057ae;">a</span><span style="color:#ca60ca;">=</span>a <span style="color:#644a9b;">cat</span>
0790 <span style="color:#0057ae;">a</span><span style="color:#ca60ca;">=</span><span style="font-weight:bold;">`</span><span style="color:#644a9b;">ls</span><span style="font-weight:bold;">`</span> <span style="color:#644a9b;">cat</span>
0791 <span style="color:#0057ae;">a</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">2</span><span style="color:#ca60ca;">+</span><span style="color:#b08000;">3</span><span style="color:#ca60ca;">][</span>d<span style="color:#ca60ca;">]</span><span style="color:#ca60ca;">=</span>5
0792 
0793 <span style="color:#898887;"># control structure</span>
0794 <span style="font-weight:bold;">for</span> name <span style="font-weight:bold;">in</span> a b c <span style="color:#0057ae;">{d</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">e}</span> <span style="font-weight:bold;">;</span> <span style="font-weight:bold;">do</span> <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="font-weight:bold;">;</span> <span style="font-weight:bold;">done</span>
0795 <span style="font-weight:bold;">for</span> name<span style="font-weight:bold;">;</span> <span style="font-weight:bold;">do</span> <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="font-weight:bold;">;</span> <span style="font-weight:bold;">done</span>
0796 <span style="font-weight:bold;">for</span> name do echo <span style="font-weight:bold;">;</span> <span style="font-weight:bold;">done</span>
0797 <span style="font-weight:bold;">for</span> <span style="font-weight:bold;">((</span><span style="color:#0057ae;">i</span><span style="color:#ca60ca;">=</span><span style="color:#b08000;">0</span><span style="font-weight:bold;">;</span><span style="color:#0057ae;">i</span><span style="color:#ca60ca;">&lt;</span><span style="color:#b08000;">5</span><span style="font-weight:bold;">;</span><span style="color:#ca60ca;">++</span><span style="color:#0057ae;">i</span><span style="font-weight:bold;">))</span> <span style="font-weight:bold;">;</span> <span style="font-weight:bold;">do</span> <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">i</span> <span style="font-weight:bold;">;</span> <span style="font-weight:bold;">done</span>
0798 <span style="font-weight:bold;">for</span> <span style="font-weight:bold;">((</span><span style="color:#0057ae;">i</span><span style="color:#ca60ca;">=</span><span style="color:#b08000;">1</span><span style="font-weight:bold;">;</span><span style="color:#0057ae;">$</span><span style="color:#ca60ca;">#</span><span style="color:#0057ae;">A</span><span style="color:#ca60ca;">[</span>i<span style="color:#ca60ca;">]</span><span style="font-weight:bold;">;</span><span style="color:#0057ae;">i</span><span style="color:#ca60ca;">++</span><span style="font-weight:bold;">))</span> <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">A</span><span style="color:#ca60ca;">[</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">i</span><span style="color:#ca60ca;">]</span>
0799 <span style="font-weight:bold;">for</span> c <span style="font-weight:bold;">(</span><span style="color:#0057ae;">{</span><span style="color:#b08000;">1</span><span style="color:#0057ae;">..</span><span style="color:#b08000;">50</span><span style="color:#0057ae;">}</span><span style="font-weight:bold;">)</span> <span style="font-weight:bold;">{</span><span style="color:#0095ff;font-weight:bold;">php</span> ./test.php<span style="font-weight:bold;">;</span> <span style="color:#644a9b;">sleep</span> 5<span style="font-weight:bold;">;</span><span style="font-weight:bold;">}</span>
0800 <span style="font-weight:bold;">for</span> count <span style="font-weight:bold;">in</span> <span style="color:#0057ae;">{</span><span style="color:#b08000;">1</span><span style="color:#0057ae;">..</span><span style="color:#b08000;">10</span><span style="color:#0057ae;">}</span><span style="font-weight:bold;">;</span> <span style="font-weight:bold;">do</span> <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">count</span> <span style="font-weight:bold;">;</span> <span style="font-weight:bold;">done</span>
0801 <span style="font-weight:bold;">for</span> f <span style="font-weight:bold;">(</span><span style="color:#006e28;">*</span><span style="color:#ca60ca;">(.)</span><span style="font-weight:bold;">)</span> <span style="color:#644a9b;">mv</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">f</span> fixed_<span style="color:#0057ae;">$</span><span style="color:#0057ae;">f</span>
0802 <span style="font-weight:bold;">for</span> f <span style="font-weight:bold;">(</span><span style="color:#006e28;">**</span>/x<span style="font-weight:bold;">)</span> <span style="color:#644a9b;">cp</span> newx <span style="color:#0057ae;">$</span><span style="color:#0057ae;">f</span>
0803 <span style="font-weight:bold;">for</span> f <span style="font-weight:bold;">(</span><span style="color:#006e28;">*</span>.txt<span style="font-weight:bold;">)</span> <span style="font-weight:bold;">{</span> <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">f</span> <span style="font-weight:bold;">}</span>
0804 <span style="font-weight:bold;">for</span> f <span style="font-weight:bold;">in</span> <span style="color:#006e28;">**</span>/x<span style="font-weight:bold;">;</span> <span style="font-weight:bold;">do</span><span style="font-weight:bold;">;</span><span style="color:#644a9b;">cp</span> newx <span style="color:#0057ae;">$</span><span style="color:#0057ae;">f</span><span style="font-weight:bold;">;</span> <span style="font-weight:bold;">done</span>
0805 <span style="font-weight:bold;">for</span> f <span style="font-weight:bold;">in</span> <span style="color:#006e28;">*</span>/include/dbcommon.php<span style="font-weight:bold;">;</span> <span style="font-weight:bold;">do</span><span style="font-weight:bold;">;</span><span style="color:#644a9b;">cp</span> dbcommon.php <span style="color:#0057ae;">$</span><span style="color:#0057ae;">f</span><span style="font-weight:bold;">;</span> <span style="font-weight:bold;">done</span>
0806 <span style="font-weight:bold;">for</span> file <span style="font-weight:bold;">(</span><span style="color:#006e28;">*</span><span style="color:#ca60ca;">(ND-.)</span><span style="font-weight:bold;">)</span> <span style="color:#0057ae;">IFS</span><span style="color:#ca60ca;">=</span> <span style="color:#644a9b;font-weight:bold;">read</span> <span style="color:#0057ae;">-re</span> <span style="color:#ca60ca;">&lt;</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">file</span>
0807 <span style="font-weight:bold;">for</span> i <span style="font-weight:bold;">(</span>./<span style="color:#006e28;">*</span>.mp3<span style="font-weight:bold;">){</span><span style="color:#0095ff;font-weight:bold;">mpg321</span> <span style="color:#0057ae;">--w</span> <span style="color:#0057ae;">-</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">i</span> <span style="color:#ca60ca;">&gt;</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">i</span><span style="color:#ca60ca;">:</span><span style="color:#0057ae;">r}</span>.wav<span style="font-weight:bold;">}</span>
0808 <span style="font-weight:bold;">for</span> i <span style="font-weight:bold;">in</span> <span style="color:#006e28;">*</span><span style="color:#ca60ca;">(.)</span><span style="font-weight:bold;">;</span> <span style="color:#644a9b;">mv</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">i</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">i</span><span style="color:#ca60ca;">:</span><span style="color:#0057ae;">u}</span> <span style="color:#898887;"># `bar to `BAR</span>
0809 <span style="font-weight:bold;">for</span> i <span style="font-weight:bold;">in</span> <span style="color:#006e28;">**</span>/<span style="color:#006e28;">*</span><span style="color:#ca60ca;">(D@)</span><span style="font-weight:bold;">;</span> <span style="font-weight:bold;">[[</span> <span style="color:#006e28;">-f</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">i</span> <span style="font-weight:bold;">||</span> <span style="color:#006e28;">-d</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">i</span> <span style="font-weight:bold;">]]</span> <span style="font-weight:bold;">||</span> <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">i</span>
0810 <span style="font-weight:bold;">for</span> i <span style="font-weight:bold;">in</span> <span style="color:#006e28;">**</span>/<span style="color:#006e28;">*</span>.gif<span style="font-weight:bold;">;</span> <span style="color:#0095ff;font-weight:bold;">convert</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">i</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">i</span><span style="color:#0057ae;">:r</span>.jpg
0811 <span style="font-weight:bold;">for</span> i <span style="font-weight:bold;">in</span> <span style="color:#0057ae;">{3</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">4}</span><span style="font-weight:bold;">;</span> <span style="color:#644a9b;">sed</span> s/flag=2/flag=<span style="color:#0057ae;">$</span><span style="color:#0057ae;">i</span>/ fred.txt <span style="color:#ca60ca;">&gt;</span> fred<span style="color:#0057ae;">$</span><span style="color:#0057ae;">i</span>.txt
0812 <span style="font-weight:bold;">for</span> ip <span style="font-weight:bold;">(</span><span style="color:#0057ae;">{</span><span style="color:#b08000;">217</span><span style="color:#0057ae;">..</span><span style="color:#b08000;">219</span><span style="color:#0057ae;">}</span> 225<span style="font-weight:bold;">)</span> <span style="font-weight:bold;">{</span><span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">-n</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">ip</span> <span style="font-weight:bold;">;</span><span style="color:#644a9b;">ping</span> <span style="color:#0057ae;">-n</span> 1 11.2.2.<span style="color:#0057ae;">$</span><span style="color:#0057ae;">ip</span><span style="font-weight:bold;">|</span> <span style="color:#644a9b;">grep</span> Received<span style="font-weight:bold;">}</span>
0813 <span style="font-weight:bold;">for</span> user <span style="font-weight:bold;">(</span><span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">k</span><span style="color:#0057ae;">)</span><span style="color:#0057ae;">f</span><span style="color:#0057ae;">}</span><span style="font-weight:bold;">)</span> <span style="font-weight:bold;">{</span><span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">-rn</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">f</span><span style="color:#ca60ca;">[</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">user</span><span style="color:#ca60ca;">]</span><span style="font-weight:bold;">|</span><span style="color:#0095ff;font-weight:bold;">mailx</span> <span style="color:#0057ae;">-s</span> <span style="color:#bf0303;">&quot;...&quot;</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">user</span><span style="font-weight:bold;">}</span>
0814 <span style="font-weight:bold;">for</span> x <span style="font-weight:bold;">(</span> 1 2 <span style="color:#0057ae;">{</span><span style="color:#b08000;">7</span><span style="color:#0057ae;">..</span><span style="color:#b08000;">4</span><span style="color:#0057ae;">}</span> a b c <span style="color:#0057ae;">{</span>p<span style="color:#0057ae;">..</span>n<span style="color:#0057ae;">}</span> <span style="color:#006e28;">*</span>.php<span style="font-weight:bold;">)</span> <span style="font-weight:bold;">{</span><span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">x</span><span style="font-weight:bold;">}</span>
0815 <span style="font-weight:bold;">select</span> name <span style="font-weight:bold;">in</span> a <span style="font-weight:bold;">;</span> <span style="font-weight:bold;">do</span> <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="font-weight:bold;">;</span> <span style="font-weight:bold;">done</span>
0816 <span style="font-weight:bold;">select</span> name<span style="font-weight:bold;">;</span> <span style="font-weight:bold;">do</span> <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="font-weight:bold;">;</span> <span style="font-weight:bold;">done</span>
0817 <span style="font-weight:bold;">if</span> <span style="color:#644a9b;font-weight:bold;">:</span> <span style="font-weight:bold;">;</span> <span style="font-weight:bold;">then</span> <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="font-weight:bold;">;</span> <span style="font-weight:bold;">elif</span> <span style="font-weight:bold;">[[</span> : <span style="font-weight:bold;">]]</span> <span style="font-weight:bold;">;</span> <span style="font-weight:bold;">then</span> <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="font-weight:bold;">;</span> <span style="font-weight:bold;">else</span> <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="font-weight:bold;">;</span> <span style="font-weight:bold;">fi</span>
0818 <span style="font-weight:bold;">if</span> <span style="color:#644a9b;font-weight:bold;">[</span> <span style="color:#0057ae;">$</span><span style="color:#ca60ca;">#</span> <span style="color:#006e28;">-gt</span> 0 <span style="color:#644a9b;font-weight:bold;">]</span><span style="font-weight:bold;">;</span><span style="font-weight:bold;">then</span> <span style="color:#0057ae;">string</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">*</span><span style="font-weight:bold;">;</span><span style="font-weight:bold;">else</span><span style="font-weight:bold;">;</span><span style="color:#0057ae;">string</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">$(</span><span style="color:#0095ff;font-weight:bold;">getclip</span><span style="color:#0057ae;">)</span><span style="font-weight:bold;">;</span><span style="font-weight:bold;">fi</span>
0819 <span style="font-weight:bold;">if</span> <span style="color:#644a9b;font-weight:bold;">[</span> <span style="color:#0057ae;">$</span><span style="color:#ca60ca;">#</span> <span style="color:#006e28;">-gt</span> 0 <span style="color:#644a9b;font-weight:bold;">]</span><span style="font-weight:bold;">;</span><span style="font-weight:bold;">then</span> <span style="color:#0057ae;">string</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">*</span><span style="font-weight:bold;">;</span><span style="font-weight:bold;">else</span><span style="font-weight:bold;">;</span><span style="color:#0057ae;">string</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">$(</span><span style="color:#0095ff;font-weight:bold;">getclip</span><span style="color:#0057ae;">)</span><span style="font-weight:bold;">;</span><span style="font-weight:bold;">fi</span> <span style="color:#898887;"># get parameter OR paste buffer</span>
0820 <span style="font-weight:bold;">if</span> <span style="font-weight:bold;">[[</span> <span style="color:#ca60ca;">((</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">x</span> <span style="color:#006e28;">-lt</span> 8<span style="color:#ca60ca;">)</span> <span style="font-weight:bold;">&amp;&amp;</span> <span style="color:#ca60ca;">(</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">y</span> <span style="color:#006e28;">-ge</span> 32<span style="color:#ca60ca;">))</span> <span style="font-weight:bold;">||</span> <span style="color:#ca60ca;">((</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">z</span> <span style="color:#006e28;">-gt</span> 32<span style="color:#ca60ca;">)</span> <span style="font-weight:bold;">&amp;&amp;</span> <span style="color:#ca60ca;">(</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">w</span> <span style="color:#006e28;">-eq</span> 16<span style="color:#ca60ca;">))</span> <span style="font-weight:bold;">]]</span> <span style="font-weight:bold;">;</span> <span style="font-weight:bold;">then</span> <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#bf0303;">&quot;complex combinations&quot;</span><span style="font-weight:bold;">;</span> <span style="font-weight:bold;">fi</span>
0821 <span style="font-weight:bold;">if</span> <span style="color:#644a9b;font-weight:bold;">builtin</span> cd <span style="color:#0057ae;">$</span><span style="color:#0057ae;">1</span> <span style="color:#ca60ca;">&amp;&gt;</span> /dev/null <span style="font-weight:bold;">;</span> <span style="font-weight:bold;">then</span> <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="font-weight:bold;">;</span> <span style="font-weight:bold;">fi</span>
0822 <span style="font-weight:bold;">if</span> <span style="color:#644a9b;">grep</span> <span style="color:#0057ae;">-iq</span> <span style="color:#bf0303;">'matching'</span> <span style="color:#006e28;">*</span>.php <span style="font-weight:bold;">;</span><span style="font-weight:bold;">then</span> <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#bf0303;">&quot;Found&quot;</span> <span style="font-weight:bold;">;</span><span style="font-weight:bold;">else</span> <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#bf0303;">&quot;Not Found&quot;</span><span style="font-weight:bold;">;</span> <span style="color:#0057ae;">fim</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">(</span><span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">@Q</span><span style="color:#0057ae;">)${(</span><span style="color:#ca60ca;">z</span><span style="color:#0057ae;">)</span><span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$(</span><span style="color:#644a9b;">cat</span> <span style="color:#0057ae;">--</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">nameoffile</span><span style="color:#0057ae;">)</span><span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">}}</span><span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">)</span> <span style="font-weight:bold;">fi</span>
0823 <span style="font-weight:bold;">while</span> <span style="color:#644a9b;font-weight:bold;">:</span> <span style="font-weight:bold;">||</span> <span style="color:#644a9b;font-weight:bold;">:</span> <span style="font-weight:bold;">;</span> <span style="font-weight:bold;">do</span> <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="font-weight:bold;">;</span> <span style="font-weight:bold;">done</span>
0824 <span style="font-weight:bold;">while</span> <span style="font-weight:bold;">(</span><span style="color:#644a9b;font-weight:bold;">true</span><span style="font-weight:bold;">){</span><span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">-n</span> .<span style="font-weight:bold;">;</span><span style="color:#644a9b;">sleep</span> 1<span style="font-weight:bold;">}</span>
0825 <span style="font-weight:bold;">while</span> <span style="font-weight:bold;">(</span><span style="color:#644a9b;font-weight:bold;">true</span><span style="font-weight:bold;">){</span><span style="color:#644a9b;font-weight:bold;">echo</span> .<span style="font-weight:bold;">;</span><span style="color:#644a9b;">sleep</span> 1<span style="font-weight:bold;">}</span>
0826 <span style="font-weight:bold;">while</span> <span style="color:#644a9b;font-weight:bold;">true</span> <span style="font-weight:bold;">;</span><span style="font-weight:bold;">do</span> <span style="color:#644a9b;">date</span><span style="font-weight:bold;">;</span> <span style="color:#644a9b;">sleep</span> 5<span style="font-weight:bold;">;</span> <span style="font-weight:bold;">done</span> <span style="color:#898887;"># forever</span>
0827 <span style="font-weight:bold;">while</span> <span style="color:#644a9b;font-weight:bold;">true</span><span style="font-weight:bold;">;</span> <span style="font-weight:bold;">do</span> <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#bf0303;">&quot;infinite loop&quot;</span><span style="font-weight:bold;">;</span> <span style="color:#644a9b;">sleep</span> 5<span style="font-weight:bold;">;</span> <span style="font-weight:bold;">done</span>
0828 <span style="font-weight:bold;">until</span> <span style="color:#644a9b;font-weight:bold;">:</span> <span style="font-weight:bold;">;</span> <span style="color:#644a9b;font-weight:bold;">:</span> <span style="font-weight:bold;">;</span> <span style="font-weight:bold;">do</span> <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="font-weight:bold;">;</span> <span style="font-weight:bold;">done</span>
0829 <span style="font-weight:bold;">case</span> a <span style="font-weight:bold;">in</span> <span style="color:#ff5500;">a</span><span style="font-weight:bold;">)</span> <span style="font-weight:bold;">esac</span>
0830 <span style="font-weight:bold;">case</span> a <span style="font-weight:bold;">in</span> <span style="color:#ff5500;">a</span><span style="font-weight:bold;">)</span> <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="font-weight:bold;">;</span> <span style="font-weight:bold;">esac</span>
0831 <span style="font-weight:bold;">case</span> pwd <span style="font-weight:bold;">in</span> <span style="font-weight:bold;">(</span><span style="color:#ff5500;">patt1</span><span style="font-weight:bold;">)</span> <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="font-weight:bold;">;</span> <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="font-weight:bold;">;;</span> <span style="font-weight:bold;">(</span><span style="color:#ff5500;">patt</span><span style="color:#006e28;">*</span><span style="font-weight:bold;">)</span> <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="font-weight:bold;">;&amp;</span> <span style="color:#ff5500;">patt</span><span style="color:#006e28;">?</span><span style="font-weight:bold;">|</span><span style="color:#ff5500;">patt</span><span style="font-weight:bold;">)</span> <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="font-weight:bold;">;|</span>
0832 <span style="color:#ff5500;">patt</span><span style="font-weight:bold;">)</span> <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="font-weight:bold;">;;</span> <span style="font-weight:bold;">esac</span>
0833 <span style="font-weight:bold;">repeat</span> <span style="color:#b08000;">1</span><span style="color:#ca60ca;">+</span><span style="color:#b08000;">2</span><span style="color:#ca60ca;">+</span><span style="font-weight:bold;">`</span><span style="color:#644a9b;font-weight:bold;">echo</span> 1<span style="font-weight:bold;">`</span><span style="color:#ca60ca;">+</span><span style="color:#b08000;">23</span> <span style="font-weight:bold;">do</span> <span style="color:#644a9b;font-weight:bold;">echo</span> pl<span style="font-weight:bold;">;</span> <span style="font-weight:bold;">done</span>
0834 <span style="font-weight:bold;">repeat</span> <span style="color:#b08000;">3</span> <span style="color:#0095ff;font-weight:bold;">time</span> sleep 3   <span style="color:#898887;"># single command</span>
0835 <span style="font-weight:bold;">repeat</span> <span style="color:#b08000;">5</span> <span style="font-weight:bold;">;</span><span style="font-weight:bold;">do</span> <span style="color:#644a9b;">date</span><span style="font-weight:bold;">;</span> <span style="color:#644a9b;">sleep</span> 5<span style="font-weight:bold;">;</span> <span style="font-weight:bold;">done</span> <span style="color:#898887;"># multi</span>
0836 <span style="font-weight:bold;">foreach</span> x y z <span style="font-weight:bold;">(</span> a <span style="font-weight:bold;">`</span><span style="color:#0095ff;font-weight:bold;">a</span> b<span style="font-weight:bold;">`</span><span style="font-weight:bold;">;</span> c <span style="font-weight:bold;">)</span> <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="font-weight:bold;">;</span><span style="font-weight:bold;">end</span>
0837 <span style="font-weight:bold;">for</span> x y <span style="font-weight:bold;">(</span> a b bc d ds <span style="font-weight:bold;">)</span> <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">x</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">y</span>
0838 <span style="font-weight:bold;">for</span> x y <span style="font-weight:bold;">in</span> a b c <span style="font-weight:bold;">;</span> <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">x</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">y</span>
0839 <span style="font-weight:bold;">for</span> x y <span style="font-weight:bold;">;</span> <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">x</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">y</span>
0840 <span style="font-weight:bold;">case</span> w <span style="font-weight:bold;">{</span> <span style="color:#ff5500;">a</span><span style="font-weight:bold;">)</span> <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="font-weight:bold;">;&amp;</span> <span style="font-weight:bold;">(</span><span style="color:#ff5500;">b</span><span style="color:#006e28;">?</span><span style="font-weight:bold;">)</span> <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="font-weight:bold;">}</span>
0841 <span style="font-weight:bold;">case</span> a <span style="font-weight:bold;">in</span>
0842 <span style="color:#898887;">#a) echo ;;</span>
0843 <span style="color:#ff5500;">a</span><span style="color:#006e28;">#</span><span style="font-weight:bold;">)</span> <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="font-weight:bold;">;;</span>
0844 <span style="font-weight:bold;">esac</span>
0845 
0846 <span style="font-weight:bold;">for</span> name <span style="font-weight:bold;">in</span> a
0847  <span style="color:#0095ff;font-weight:bold;">b</span> c <span style="font-weight:bold;">;</span>
0848 <span style="font-weight:bold;">do</span>
0849 <span style="color:#644a9b;font-weight:bold;">echo</span>
0850 <span style="font-weight:bold;">done</span>
0851 
0852 <span style="font-weight:bold;">case</span> a <span style="font-weight:bold;">in</span>
0853   <span style="color:#ff5500;">a</span><span style="color:#0057ae;">\(</span> <span style="font-weight:bold;">|</span> <span style="color:#ff5500;">b</span><span style="color:#006e28;">*</span><span style="color:#ff5500;">c</span><span style="color:#006e28;">?</span> <span style="font-weight:bold;">)</span> <span style="color:#644a9b;font-weight:bold;">echo</span>
0854   <span style="font-weight:bold;">(</span><span style="color:#0095ff;font-weight:bold;">b</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">c</span><span style="font-weight:bold;">)</span> <span style="color:#898887;"># no pattern</span>
0855   <span style="font-weight:bold;">;;</span>
0856   <span style="font-weight:bold;">(</span><span style="color:#ff5500;">b</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">c</span><span style="font-weight:bold;">)</span> <span style="font-weight:bold;">;;</span>
0857   <span style="color:#898887;"># no pattern</span>
0858   <span style="font-weight:bold;">(</span><span style="color:#ff5500;">b</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">c</span><span style="font-weight:bold;">)</span>
0859 <span style="font-weight:bold;">esac</span>
0860 
0861 <span style="font-weight:bold;">case</span> <span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">1</span><span style="color:#bf0303;">&quot;</span> <span style="font-weight:bold;">in</span>
0862  <span style="color:#bf0303;">&quot;a&quot;</span><span style="font-weight:bold;">)</span> <span style="color:#0095ff;font-weight:bold;">run_a</span><span style="font-weight:bold;">|&amp;</span><span style="color:#0095ff;font-weight:bold;">a</span><span style="font-weight:bold;">;;</span>
0863  <span style="color:#bf0303;">&quot;b&quot;</span><span style="font-weight:bold;">)</span> <span style="color:#0095ff;font-weight:bold;">run_b</span><span style="font-weight:bold;">;;</span>
0864  <span style="color:#bf0303;">&quot;c&quot;</span><span style="font-weight:bold;">)</span> <span style="color:#0095ff;font-weight:bold;">run_c</span><span style="font-weight:bold;">;;</span>
0865  <span style="color:#006e28;">*</span><span style="font-weight:bold;">)</span> <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#bf0303;">&quot;Plase choose between 'a', 'b' or 'c'&quot;</span> <span style="font-weight:bold;">&amp;&amp;</span> <span style="color:#644a9b;font-weight:bold;">exit</span> 1<span style="font-weight:bold;">;;</span>
0866 <span style="font-weight:bold;">esac</span>
0867 
0868 <span style="font-weight:bold;">case</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">ans</span> <span style="font-weight:bold;">in</span>
0869  <span style="color:#ff5500;">1</span><span style="font-weight:bold;">|</span><span style="color:#ff5500;">a</span><span style="font-weight:bold;">)</span> <span style="color:#0095ff;font-weight:bold;">sdba</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">key</span><span style="font-weight:bold;">;;</span>
0870  <span style="color:#ff5500;">2</span><span style="font-weight:bold;">|</span><span style="color:#ff5500;">f</span><span style="font-weight:bold;">)</span> <span style="color:#0095ff;font-weight:bold;">sdbf</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">key</span><span style="font-weight:bold;">;;</span>
0871  <span style="color:#ff5500;">3</span><span style="font-weight:bold;">|</span><span style="color:#ff5500;">i</span><span style="font-weight:bold;">)</span> <span style="color:#0095ff;font-weight:bold;">sdbi</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">key</span><span style="font-weight:bold;">;;</span>
0872  <span style="color:#006e28;">*</span><span style="font-weight:bold;">)</span> <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#bf0303;">&quot;wrong answer </span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">ans</span><span style="color:#bf0303;">\n&quot;</span> <span style="font-weight:bold;">;;</span>
0873 <span style="font-weight:bold;">esac</span>
0874 
0875 <span style="font-weight:bold;">case</span> <span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">ans</span><span style="color:#bf0303;">&quot;</span> <span style="font-weight:bold;">in</span>
0876  <span style="color:#ff5500;">2</span><span style="font-weight:bold;">|</span><span style="color:#0057ae;">${</span><span style="color:#0057ae;">prog</span><span style="color:#0057ae;">}</span><span style="color:#ff5500;">9</span><span style="font-weight:bold;">)</span> <span style="color:#644a9b;font-weight:bold;">cd</span> <span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$(</span><span style="color:#644a9b;">cat</span> /c/aam/<span style="color:#0057ae;">${</span><span style="color:#0057ae;">prog</span><span style="color:#0057ae;">}</span>9<span style="color:#0057ae;">)</span><span style="color:#bf0303;">&quot;</span> <span style="font-weight:bold;">;;</span>
0877  <span style="color:#006e28;">**</span><span style="font-weight:bold;">)</span> <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#bf0303;">&quot;wrong number </span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">ans</span><span style="color:#bf0303;">\n&quot;</span> <span style="font-weight:bold;">;;</span>
0878 <span style="font-weight:bold;">esac</span>
0879 
0880 <span style="font-weight:bold;">select</span> f <span style="font-weight:bold;">in</span> <span style="color:#0057ae;">$(</span><span style="color:#644a9b;">ls</span> <span style="color:#006e28;">**</span>/<span style="color:#006e28;">*</span>.tex <span style="font-weight:bold;">|</span><span style="color:#644a9b;">egrep</span> <span style="color:#0057ae;">-i</span> <span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">${</span><span style="color:#0057ae;">param</span><span style="color:#0057ae;">}</span><span style="color:#bf0303;">[^/]*.tex&quot;</span><span style="color:#0057ae;">)</span>
0881 <span style="font-weight:bold;">do</span>
0882  <span style="font-weight:bold;">if</span> <span style="font-weight:bold;">[[</span> <span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">REPLY</span><span style="color:#bf0303;">&quot;</span> <span style="color:#006e28;">=</span> q <span style="font-weight:bold;">]]</span>
0883  <span style="font-weight:bold;">then</span>
0884     <span style="font-weight:bold;">break</span>
0885  <span style="font-weight:bold;">elif</span> <span style="font-weight:bold;">[[</span> <span style="color:#006e28;">-n</span> <span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">f</span><span style="color:#bf0303;">&quot;</span> <span style="font-weight:bold;">]]</span><span style="font-weight:bold;">;</span> <span style="font-weight:bold;">then</span>
0886     <span style="color:#0095ff;font-weight:bold;">gvim</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">f</span>
0887  <span style="font-weight:bold;">fi</span>
0888 <span style="font-weight:bold;">done</span>
0889 
0890 <span style="font-weight:bold;">for</span> d <span style="font-weight:bold;">(</span>. ./<span style="color:#006e28;">**</span>/<span style="color:#006e28;">*</span><span style="color:#ca60ca;">(N/m</span><span style="color:#b08000;">-2</span><span style="color:#ca60ca;">)</span><span style="font-weight:bold;">)</span> <span style="font-weight:bold;">{</span>
0891   <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">-r</span> <span style="color:#0057ae;">--</span> <span style="color:#bf0303;">$'</span><span style="color:#0057ae;">\n</span><span style="color:#bf0303;">'</span><span style="color:#0057ae;">${</span><span style="color:#0057ae;">d</span><span style="color:#0057ae;">}</span>:
0892   <span style="color:#644a9b;font-weight:bold;">cd</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">d</span> <span style="font-weight:bold;">&amp;&amp;</span> <span style="font-weight:bold;">{</span>
0893      <span style="color:#0057ae;">l</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">(</span><span style="color:#006e28;">*</span><span style="color:#ca60ca;">(Nm</span><span style="color:#b08000;">-2</span><span style="color:#ca60ca;">)</span><span style="color:#0057ae;">)</span>
0894      <span style="font-weight:bold;">((</span><span style="color:#0057ae;">$</span><span style="color:#ca60ca;">#</span><span style="color:#0057ae;">l</span><span style="font-weight:bold;">))</span> <span style="font-weight:bold;">&amp;&amp;</span> <span style="color:#644a9b;">ls</span> <span style="color:#0057ae;">-ltd</span> <span style="color:#0057ae;">--</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">l</span>
0895      <span style="color:#644a9b;font-weight:bold;">cd</span> <span style="color:#006e28;">~</span>-
0896   <span style="font-weight:bold;">}</span>
0897 <span style="font-weight:bold;">}</span>
0898 
0899 <span style="font-weight:bold;">for</span> f <span style="font-weight:bold;">in</span> http://zsh.sunsite.dk/Guide/zshguide<span style="color:#0057ae;">{</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">{</span><span style="color:#b08000;">01</span><span style="color:#0057ae;">..</span><span style="color:#b08000;">08</span><span style="color:#0057ae;">}}</span>.html<span style="font-weight:bold;">;</span> <span style="font-weight:bold;">do</span>
0900     <span style="color:#644a9b;">lynx</span> <span style="color:#0057ae;">-source</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">f</span> <span style="color:#ca60ca;">&gt;</span><span style="color:#0057ae;">${</span><span style="color:#0057ae;">f</span><span style="color:#ca60ca;">:</span><span style="color:#0057ae;">t}</span>
0901 <span style="font-weight:bold;">done</span>
0902 
0903 <span style="font-weight:bold;">for</span> f <span style="font-weight:bold;">in</span> ./<span style="color:#006e28;">**</span>/<span style="color:#006e28;">*</span><span style="color:#ca60ca;">(-@)</span><span style="font-weight:bold;">;</span> <span style="font-weight:bold;">do</span>
0904     <span style="color:#644a9b;font-weight:bold;">stat</span> +link <span style="color:#0057ae;">-A</span> l <span style="color:#0057ae;">$</span><span style="color:#0057ae;">f</span>
0905     <span style="font-weight:bold;">(</span><span style="color:#644a9b;font-weight:bold;">cd</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">f</span><span style="color:#0057ae;">:h</span> <span style="font-weight:bold;">&amp;</span> <span style="font-weight:bold;">[[</span> <span style="color:#006e28;">-e</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">l</span>.gz <span style="font-weight:bold;">]])</span> <span style="font-weight:bold;">&amp;</span> <span style="color:#644a9b;">ln</span> <span style="color:#0057ae;">-sf</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">l</span>.gz <span style="color:#0057ae;">$</span><span style="color:#0057ae;">f</span>
0906 <span style="font-weight:bold;">done</span>
0907 
0908 <span style="font-weight:bold;">for</span> <span style="font-weight:bold;">((</span><span style="color:#0057ae;">i</span><span style="color:#ca60ca;">=</span><span style="color:#b08000;">1</span><span style="font-weight:bold;">;</span> <span style="color:#0057ae;">i</span> <span style="color:#ca60ca;">&lt;=</span> <span style="color:#0057ae;">$</span><span style="color:#ca60ca;">#</span><span style="color:#0057ae;">fpath</span><span style="font-weight:bold;">;</span> <span style="color:#ca60ca;">++</span><span style="color:#0057ae;">i</span><span style="font-weight:bold;">))</span><span style="font-weight:bold;">;</span> <span style="font-weight:bold;">do</span>
0909     <span style="color:#0057ae;">dir</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">fpath</span><span style="color:#ca60ca;">[</span>i<span style="color:#ca60ca;">]</span>
0910     <span style="color:#0057ae;">zwc</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">${</span><span style="color:#0057ae;">dir</span><span style="color:#ca60ca;">:</span><span style="color:#0057ae;">t}</span>.zwc
0911     <span style="font-weight:bold;">if</span> <span style="font-weight:bold;">[[</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">dir</span> <span style="color:#006e28;">==</span> <span style="color:#006e28;">(</span><span style="color:#ff5500;">.</span><span style="color:#006e28;">|</span><span style="color:#ff5500;">..</span><span style="color:#006e28;">)</span> <span style="font-weight:bold;">||</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">dir</span> <span style="color:#006e28;">==</span> <span style="color:#006e28;">(</span><span style="color:#ff5500;">.</span><span style="color:#006e28;">|</span><span style="color:#ff5500;">..</span><span style="color:#006e28;">)</span>/<span style="color:#006e28;">*</span> <span style="font-weight:bold;">]]</span><span style="font-weight:bold;">;</span> <span style="font-weight:bold;">then</span>
0912         <span style="font-weight:bold;">continue</span>
0913     <span style="font-weight:bold;">fi</span>
0914     <span style="color:#0057ae;">files</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">(</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">dir</span>/<span style="color:#006e28;">*</span><span style="color:#ca60ca;">(N-.)</span><span style="color:#0057ae;">)</span>
0915     <span style="font-weight:bold;">if</span> <span style="font-weight:bold;">[[</span> <span style="color:#006e28;">-w</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">dir</span><span style="color:#0057ae;">:h</span> <span style="font-weight:bold;">&amp;&amp;</span> <span style="color:#006e28;">-n</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">files</span> <span style="font-weight:bold;">]]</span><span style="font-weight:bold;">;</span> <span style="font-weight:bold;">then</span>
0916         <span style="color:#0057ae;">files</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">(</span><span style="color:#0057ae;">${${(</span><span style="color:#ca60ca;">M</span><span style="color:#0057ae;">)</span><span style="color:#0057ae;">files</span><span style="color:#ca60ca;">%</span><span style="color:#bf0303;">/</span><span style="color:#006e28;">*</span><span style="color:#bf0303;">/</span><span style="color:#006e28;">*</span><span style="color:#0057ae;">}</span><span style="color:#ca60ca;">#</span><span style="color:#bf0303;">/</span><span style="color:#0057ae;">}</span><span style="color:#0057ae;">)</span>
0917         <span style="font-weight:bold;">if</span> <span style="font-weight:bold;">(</span> <span style="color:#644a9b;font-weight:bold;">cd</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">dir</span><span style="color:#0057ae;">:h</span> <span style="font-weight:bold;">&amp;&amp;</span>
0918             <span style="color:#0095ff;font-weight:bold;">zrecompile</span> <span style="color:#0057ae;">-p</span> <span style="color:#0057ae;">-U</span> <span style="color:#0057ae;">-z</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">zwc</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">files</span> <span style="font-weight:bold;">)</span><span style="font-weight:bold;">;</span> <span style="font-weight:bold;">then</span>
0919         <span style="color:#0057ae;">fpath</span><span style="color:#ca60ca;">[</span>i<span style="color:#ca60ca;">]</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">fpath</span><span style="color:#ca60ca;">[</span>i<span style="color:#ca60ca;">]</span>.zwc
0920         <span style="font-weight:bold;">fi</span>
0921     <span style="font-weight:bold;">fi</span>
0922 <span style="font-weight:bold;">done</span>
0923 
0924 <span style="font-weight:bold;">if</span> <span style="color:#644a9b;font-weight:bold;">ztcp</span> pwspc 2811<span style="font-weight:bold;">;</span> <span style="font-weight:bold;">then</span>
0925     <span style="color:#0057ae;">tcpfd</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">REPLY</span>
0926     <span style="color:#644a9b;">handler()</span> <span style="font-weight:bold;">{</span>
0927         <span style="color:#644a9b;font-weight:bold;">zle</span> <span style="color:#0057ae;">-I</span>
0928         <span style="color:#644a9b;font-weight:bold;">local</span> <span style="color:#0057ae;">line</span>
0929         <span style="font-weight:bold;">if</span> <span style="color:#006e28;">! </span><span style="color:#644a9b;font-weight:bold;">read</span> <span style="color:#0057ae;">-r</span> <span style="color:#0057ae;">line</span> <span style="color:#ca60ca;">&lt;&amp;</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">1</span><span style="font-weight:bold;">;</span> <span style="font-weight:bold;">then</span>
0930             <span style="color:#898887;"># select marks this fd if we reach EOF,</span>
0931             <span style="color:#898887;"># so handle this specially.</span>
0932             <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#bf0303;">&quot;[Read on fd </span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">1</span><span style="color:#bf0303;"> failed, removing.]&quot;</span> <span style="color:#ca60ca;">&gt;&amp;</span><span style="color:#b08000;">2</span>
0933             <span style="color:#644a9b;font-weight:bold;">zle</span> <span style="color:#0057ae;">-F</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">1</span>
0934             <span style="font-weight:bold;">return</span> <span style="color:#b08000;">1</span>
0935         <span style="font-weight:bold;">fi</span>
0936         <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">-r</span> <span style="color:#0057ae;">-</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">line</span>
0937     <span style="font-weight:bold;">}</span>
0938     <span style="color:#644a9b;font-weight:bold;">zle</span> <span style="color:#0057ae;">-F</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">tcpfd</span> handler
0939 <span style="font-weight:bold;">fi</span>
0940 
0941 <span style="font-weight:bold;">while</span> <span style="font-weight:bold;">[[</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">?</span> <span style="color:#006e28;">-eq</span> 0 <span style="font-weight:bold;">]]</span> <span style="font-weight:bold;">do</span>
0942     <span style="color:#0057ae;">b</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">(</span><span style="color:#0057ae;">$</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">ZPCRE_OP)</span>
0943     <span style="color:#0057ae;">accum</span><span style="color:#ca60ca;">+=</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">MATCH</span>
0944     <span style="color:#0095ff;font-weight:bold;">pcre_match</span> <span style="color:#0057ae;">-b</span> <span style="color:#0057ae;">-n</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">b</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">2</span><span style="color:#ca60ca;">]</span> <span style="color:#0057ae;">--</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">string</span>
0945 <span style="font-weight:bold;">done</span>
0946 
0947 <span style="color:#898887;"># bug #380229</span>
0948 <span style="color:#0057ae;">${</span><span style="color:#0057ae;">str</span><span style="color:#ca60ca;">:</span><span style="color:#0057ae;">$((${</span><span style="color:#ca60ca;">#</span><span style="color:#0057ae;">a</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">1</span><span style="color:#ca60ca;">]</span><span style="color:#0057ae;">}</span><span style="color:#ca60ca;">+</span><span style="color:#b08000;">1</span><span style="color:#0057ae;">))}</span>
0949 
0950 <span style="color:#898887;"># from http://zshwiki.org/home/examples/hardstatus</span>
0951 <span style="font-weight:bold;">function</span> <span style="color:#644a9b;">title</span> <span style="font-weight:bold;">{</span>
0952   <span style="font-weight:bold;">if</span> <span style="font-weight:bold;">[[</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">TERM</span> <span style="color:#006e28;">==</span> <span style="color:#bf0303;">&quot;screen&quot;</span> <span style="font-weight:bold;">]]</span><span style="font-weight:bold;">;</span> <span style="font-weight:bold;">then</span>
0953     <span style="color:#898887;"># Use these two for GNU Screen:</span>
0954     <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">-nR</span> <span style="color:#bf0303;">$'</span><span style="color:#0057ae;">\033</span><span style="color:#bf0303;">k'</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">1</span><span style="color:#bf0303;">$'</span><span style="color:#0057ae;">\033</span><span style="color:#bf0303;">'</span><span style="color:#0057ae;">\\</span>
0955 
0956     <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">-nR</span> <span style="color:#bf0303;">$'</span><span style="color:#0057ae;">\033</span><span style="color:#bf0303;">]0;'</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">2</span><span style="color:#bf0303;">$'</span><span style="color:#0057ae;">\a</span><span style="color:#bf0303;">'</span>
0957   <span style="font-weight:bold;">elif</span> <span style="font-weight:bold;">[[</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">TERM</span> <span style="color:#006e28;">==</span> <span style="color:#bf0303;">&quot;xterm&quot;</span> <span style="font-weight:bold;">||</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">TERM</span> <span style="color:#006e28;">==</span> <span style="color:#bf0303;">&quot;rxvt&quot;</span> <span style="font-weight:bold;">]]</span><span style="font-weight:bold;">;</span> <span style="font-weight:bold;">then</span>
0958     <span style="color:#898887;"># Use this one instead for XTerms:</span>
0959     <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">-nR</span> <span style="color:#bf0303;">$'</span><span style="color:#0057ae;">\033</span><span style="color:#bf0303;">]0;'</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">*</span><span style="color:#bf0303;">$'</span><span style="color:#0057ae;">\a</span><span style="color:#bf0303;">'</span>
0960   <span style="font-weight:bold;">fi</span>
0961 <span style="font-weight:bold;">}</span>
0962 
0963 <span style="font-weight:bold;">function</span> <span style="color:#644a9b;">precmd</span> <span style="font-weight:bold;">{</span>
0964   <span style="color:#0095ff;font-weight:bold;">title</span> zsh <span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">PWD</span><span style="color:#bf0303;">&quot;</span>
0965 <span style="font-weight:bold;">}</span>
0966 
0967 <span style="font-weight:bold;">function</span> <span style="color:#644a9b;">preexec</span> <span style="font-weight:bold;">{</span>
0968   <span style="color:#644a9b;font-weight:bold;">emulate</span> <span style="color:#0057ae;">-L</span> zsh
0969   <span style="color:#644a9b;font-weight:bold;">local</span> <span style="color:#0057ae;">-a</span> <span style="color:#0057ae;">cmd</span><span style="font-weight:bold;">;</span> <span style="color:#0057ae;">cmd</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">(</span><span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">z</span><span style="color:#0057ae;">)</span><span style="color:#0057ae;">1</span><span style="color:#0057ae;">}</span><span style="color:#0057ae;">)</span>
0970   <span style="color:#0095ff;font-weight:bold;">title</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">cmd</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">1</span><span style="color:#ca60ca;">]</span><span style="color:#0057ae;">:t</span> <span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">cmd</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">2</span><span style="color:#ca60ca;">,</span><span style="color:#b08000;">-1</span><span style="color:#ca60ca;">]</span><span style="color:#bf0303;">&quot;</span>
0971 <span style="font-weight:bold;">}</span>
0972 
0973 <span style="font-weight:bold;">function</span> <span style="color:#644a9b;">ddump</span><span style="color:#ca60ca;">()</span><span style="font-weight:bold;">{</span><span style="color:#644a9b;">diff</span> <span style="color:#0057ae;">-w</span> <span style="color:#006e28;">~</span>dump/<span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">1</span><span style="color:#bf0303;">&quot;</span> <span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">1</span><span style="color:#bf0303;">&quot;</span><span style="font-weight:bold;">}</span>   <span style="color:#898887;"># diff local file with new one in dump</span>
0974 <span style="font-weight:bold;">function</span> <span style="color:#644a9b;">g</span><span style="color:#0057ae;">{</span><span style="color:#b08000;">0</span><span style="color:#0057ae;">..</span><span style="color:#b08000;">9</span><span style="color:#0057ae;">}</span> <span style="font-weight:bold;">{</span> <span style="color:#0095ff;font-weight:bold;">gmark</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">0</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">*</span> <span style="font-weight:bold;">}</span>          <span style="color:#898887;"># declaring multiple functions</span>
0975 <span style="font-weight:bold;">function</span> <span style="color:#644a9b;">hello_function</span> <span style="font-weight:bold;">{</span> <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#bf0303;">&quot;hello world&quot;</span> <span style="font-weight:bold;">;</span> <span style="color:#644a9b;font-weight:bold;">zle</span> .accept-line<span style="font-weight:bold;">}</span>
0976 <span style="font-weight:bold;">function</span> <span style="color:#644a9b;">scd</span><span style="color:#ca60ca;">()</span><span style="font-weight:bold;">{</span><span style="color:#644a9b;font-weight:bold;">setopt</span> nonomatch<span style="font-weight:bold;">;</span><span style="color:#0057ae;">e</span><span style="color:#ca60ca;">=</span>/dev/null<span style="font-weight:bold;">;</span><span style="color:#644a9b;font-weight:bold;">cd</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">1</span><span style="color:#ca60ca;">(/)</span> <span style="color:#ca60ca;">&amp;&gt;</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">e</span><span style="font-weight:bold;">||</span><span style="color:#644a9b;font-weight:bold;">cd</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">1</span><span style="color:#006e28;">*</span><span style="color:#ca60ca;">(/)</span> <span style="color:#ca60ca;">&amp;&gt;</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">e</span><span style="font-weight:bold;">||</span><span style="color:#644a9b;font-weight:bold;">cd</span> <span style="color:#006e28;">*</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">1</span><span style="color:#ca60ca;">(/)</span> <span style="color:#ca60ca;">&amp;&gt;</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">e</span><span style="font-weight:bold;">||</span><span style="color:#644a9b;font-weight:bold;">cd</span> <span style="color:#006e28;">*</span><span style="color:#0057ae;">${</span><span style="color:#0057ae;">1</span><span style="color:#0057ae;">}</span><span style="color:#006e28;">*</span><span style="color:#ca60ca;">(/)</span> <span style="color:#ca60ca;">&amp;&gt;</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">e</span><span style="font-weight:bold;">||</span><span style="color:#644a9b;font-weight:bold;">echo</span> sorry<span style="font-weight:bold;">}</span>
0977 <span style="font-weight:bold;">function</span> <span style="color:#644a9b;">vx</span><span style="color:#0057ae;">{</span><span style="color:#b08000;">0</span><span style="color:#0057ae;">..</span><span style="color:#b08000;">9</span><span style="color:#0057ae;">}</span> <span style="font-weight:bold;">{</span><span style="color:#0095ff;font-weight:bold;">gvim.exe</span> c:/aax/<span style="color:#0057ae;">${</span><span style="color:#0057ae;">0</span><span style="color:#ca60ca;">/#</span><span style="color:#ff5500;">v</span><span style="color:#ca60ca;">/</span><span style="color:#0057ae;">}</span> <span style="font-weight:bold;">&amp;</span><span style="font-weight:bold;">}</span>
0978 <span style="font-weight:bold;">function</span> <span style="color:#0057ae;">{xyt</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">xyy}</span> <span style="font-weight:bold;">{</span> <span style="font-weight:bold;">if</span> <span style="color:#644a9b;font-weight:bold;">[</span> <span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">0</span><span style="color:#bf0303;">&quot;</span> <span style="color:#006e28;">=</span> <span style="color:#bf0303;">&quot;xyy&quot;</span> <span style="color:#644a9b;font-weight:bold;">]</span><span style="font-weight:bold;">;</span> <span style="font-weight:bold;">then</span> <span style="color:#644a9b;font-weight:bold;">echo</span> run xyy code<span style="font-weight:bold;">;</span> <span style="font-weight:bold;">else</span>  <span style="color:#644a9b;font-weight:bold;">echo</span> run xyt code<span style="font-weight:bold;">;</span> <span style="font-weight:bold;">fi</span> <span style="font-weight:bold;">;</span> <span style="color:#644a9b;font-weight:bold;">echo</span> run common code <span style="font-weight:bold;">}</span> <span style="color:#898887;">#</span>
0979 
0980 <span style="color:#898887;"># creating a family of functions</span>
0981 <span style="color:#898887;"># generate hrefs from url</span>
0982 <span style="font-weight:bold;">function</span> <span style="color:#644a9b;">href</span><span style="color:#0057ae;">{</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">s}</span>
0983 <span style="font-weight:bold;">{</span>
0984     <span style="color:#898887;"># href creates an HTML hyperlink from a URL</span>
0985     <span style="color:#898887;"># hrefs creates an HTML hyperlink from a URL with modified anchor text</span>
0986     <span style="color:#0057ae;">PROGNAME</span><span style="color:#ca60ca;">=</span><span style="font-weight:bold;">`</span><span style="color:#644a9b;">basename</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">0</span><span style="font-weight:bold;">`</span>
0987     <span style="color:#0057ae;">url</span><span style="color:#ca60ca;">=</span><span style="font-weight:bold;">`</span><span style="color:#644a9b;">cat</span> /dev/clipboard<span style="font-weight:bold;">`</span>
0988     <span style="font-weight:bold;">if</span> <span style="color:#644a9b;font-weight:bold;">[</span> <span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">PROGNAME</span><span style="color:#bf0303;">&quot;</span> <span style="color:#006e28;">=</span> <span style="color:#bf0303;">&quot;href&quot;</span> <span style="color:#644a9b;font-weight:bold;">]</span> <span style="font-weight:bold;">;</span> <span style="font-weight:bold;">then</span>
0989         <span style="color:#0057ae;">href</span><span style="color:#ca60ca;">=</span><span style="color:#bf0303;">&quot;&lt;a href='</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">url</span><span style="color:#bf0303;">'&gt;</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">url</span><span style="color:#bf0303;">&quot;</span>
0990     <span style="font-weight:bold;">elif</span> <span style="color:#644a9b;font-weight:bold;">[</span> <span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">PROGNAME</span><span style="color:#bf0303;">&quot;</span> <span style="color:#006e28;">=</span> <span style="color:#bf0303;">&quot;hrefs&quot;</span> <span style="color:#644a9b;font-weight:bold;">]</span> <span style="font-weight:bold;">;</span> <span style="font-weight:bold;">then</span>
0991         <span style="color:#0057ae;">anchortext</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">${${(</span><span style="color:#ca60ca;">C</span><span style="color:#0057ae;">)</span><span style="color:#0057ae;">url</span><span style="color:#ca60ca;">//</span><span style="color:#006e28;">[</span><span style="color:#bf0303;">_</span><span style="color:#ca60ca;">-</span><span style="color:#006e28;">]</span><span style="color:#ca60ca;">/</span><span style="color:#bf0303;"> </span><span style="color:#0057ae;">}</span><span style="color:#ca60ca;">:</span><span style="color:#0057ae;">t}</span>
0992         <span style="color:#0057ae;">href</span><span style="color:#ca60ca;">=</span><span style="color:#bf0303;">&quot;&lt;a href='</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">url</span><span style="color:#bf0303;">'&gt;</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">anchortext</span><span style="color:#bf0303;">&quot;</span>
0993     <span style="font-weight:bold;">fi</span>
0994     <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">-n</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">col</span>
0995     <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">href</span> <span style="color:#ca60ca;">&gt;</span> /dev/clipboard <span style="font-weight:bold;">|</span> <span style="color:#644a9b;">more</span>
0996 <span style="font-weight:bold;">}</span>
0997 
0998 <span style="color:#898887;"># create vim scratch files va,vb to vz</span>
0999 <span style="font-weight:bold;">function</span> <span style="color:#644a9b;">vx</span><span style="color:#0057ae;">{a</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">b</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">c</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">d</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">e</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">f</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">g</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">h</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">i</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">j</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">k</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">l</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">m</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">n</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">o</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">q</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">r</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">s</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">t</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">u</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">v</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">w</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">x</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">y</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">z}</span>
1000 <span style="font-weight:bold;">{</span>
1001     <span style="color:#0057ae;">scratchfile</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">${</span><span style="color:#0057ae;">0</span><span style="color:#ca60ca;">/#</span><span style="color:#ff5500;">v</span><span style="color:#ca60ca;">/</span><span style="color:#0057ae;">}</span>
1002     <span style="color:#0095ff;font-weight:bold;">gvim.exe</span> c:/aax/<span style="color:#0057ae;">$</span><span style="color:#0057ae;">scratchfile</span> <span style="font-weight:bold;">&amp;</span>
1003 <span style="font-weight:bold;">}</span>
1004 
1005 <span style="color:#644a9b;">VDF()</span><span style="font-weight:bold;">{</span><span style="color:#644a9b;font-weight:bold;">cd</span> <span style="color:#006e28;">*</span><span style="color:#ca60ca;">(/o</span>m<span style="color:#ca60ca;">[</span><span style="color:#b08000;">1</span><span style="color:#ca60ca;">]</span><span style="color:#ca60ca;">)</span><span style="font-weight:bold;">;</span><span style="color:#0057ae;">F</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">$(</span><span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#006e28;">*</span><span style="color:#ca60ca;">(.o</span>m<span style="color:#ca60ca;">[</span><span style="color:#b08000;">1</span><span style="color:#ca60ca;">]</span><span style="color:#ca60ca;">)</span><span style="color:#0057ae;">)</span><span style="font-weight:bold;">;</span><span style="color:#644a9b;">vi</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">F</span><span style="font-weight:bold;">}</span>
1006 <span style="color:#644a9b;">cyg()</span><span style="font-weight:bold;">{</span><span style="color:#0057ae;">reply</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">(</span><span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$(</span><span style="color:#0095ff;font-weight:bold;">cygpath</span> <span style="color:#0057ae;">-m</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">REPLY</span><span style="color:#0057ae;">)</span><span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">)</span><span style="font-weight:bold;">}</span>
1007 <span style="color:#644a9b;">f  ()</span><span style="font-weight:bold;">{</span><span style="font-weight:bold;">for</span> i<span style="font-weight:bold;">;</span> <span style="font-weight:bold;">do</span> <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">i</span><span style="font-weight:bold;">;</span><span style="font-weight:bold;">done</span><span style="font-weight:bold;">}</span>
1008 <span style="color:#0057ae;">fg_light_red</span><span style="color:#ca60ca;">=</span><span style="color:#bf0303;">$'%{</span><span style="color:#0057ae;">\e</span><span style="color:#bf0303;">[1;31m%}'</span>
1009 <span style="color:#644a9b;">fn()</span> <span style="font-weight:bold;">{</span> <span style="color:#644a9b;font-weight:bold;">setopt</span> localtraps<span style="font-weight:bold;">;</span> <span style="color:#644a9b;font-weight:bold;">trap</span> <span style="color:#bf0303;">''</span> INT<span style="font-weight:bold;">;</span> <span style="color:#644a9b;">sleep</span> 3<span style="font-weight:bold;">;</span> <span style="font-weight:bold;">}</span>
1010 <span style="color:#644a9b;">nt()</span> <span style="font-weight:bold;">{</span> <span style="font-weight:bold;">[[</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">REPLY</span> <span style="color:#006e28;">-nt</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">NTREF</span> <span style="font-weight:bold;">]]</span> <span style="font-weight:bold;">}</span>
1011 <span style="color:#644a9b;">preexec()</span><span style="font-weight:bold;">{</span> <span style="color:#644a9b;font-weight:bold;">echo</span> using <span style="color:#0057ae;">$</span><span style="color:#0057ae;">@</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">1</span><span style="color:#ca60ca;">]</span><span style="font-weight:bold;">}</span>
1012 <span style="color:#644a9b;">take()</span><span style="font-weight:bold;">{</span><span style="color:#644a9b;font-weight:bold;">[</span> <span style="color:#0057ae;">$</span><span style="color:#ca60ca;">#</span> <span style="color:#006e28;">-eq</span> 1 <span style="color:#644a9b;font-weight:bold;">]</span>  <span style="font-weight:bold;">&amp;&amp;</span> <span style="color:#644a9b;">mkdir</span> <span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">1</span><span style="color:#bf0303;">&quot;</span> <span style="font-weight:bold;">&amp;&amp;</span> <span style="color:#644a9b;font-weight:bold;">cd</span> <span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">1</span><span style="color:#bf0303;">&quot;</span><span style="font-weight:bold;">}</span> <span style="color:#898887;"># create a directory and move to it in one go</span>
1013 
1014 <span style="color:#0095ff;font-weight:bold;">caption</span> always <span style="color:#bf0303;">&quot;%3n %t%? (%u)%?%?: %h%?&quot;</span>
1015 
1016 <span style="color:#644a9b;">preexec()</span> <span style="font-weight:bold;">{</span>
1017   <span style="color:#644a9b;font-weight:bold;">emulate</span> <span style="color:#0057ae;">-L</span> zsh
1018   <span style="color:#644a9b;font-weight:bold;">local</span> <span style="color:#0057ae;">-a</span> <span style="color:#0057ae;">cmd</span><span style="font-weight:bold;">;</span> <span style="color:#0057ae;">cmd</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">(</span><span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">z</span><span style="color:#0057ae;">)</span><span style="color:#0057ae;">1</span><span style="color:#0057ae;">}</span><span style="color:#0057ae;">)</span>             <span style="color:#898887;"># Re-parse the command line</span>
1019 
1020   <span style="color:#898887;"># Construct a command that will output the desired job number.</span>
1021   <span style="font-weight:bold;">case</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">cmd</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">1</span><span style="color:#ca60ca;">]</span> <span style="font-weight:bold;">in</span>
1022       <span style="color:#ff5500;">fg</span><span style="font-weight:bold;">)</span>
1023         <span style="font-weight:bold;">if</span> <span style="font-weight:bold;">((</span> <span style="color:#0057ae;">$</span><span style="color:#ca60ca;">#</span><span style="color:#0057ae;">cmd</span> <span style="color:#ca60ca;">==</span> <span style="color:#b08000;">1</span> <span style="font-weight:bold;">))</span><span style="font-weight:bold;">;</span> <span style="font-weight:bold;">then</span>
1024           <span style="color:#898887;"># No arguments, must find the current job</span>
1025           <span style="color:#0057ae;">cmd</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">(</span>builtin jobs -l %+<span style="color:#0057ae;">)</span>
1026         <span style="font-weight:bold;">else</span>
1027           <span style="color:#898887;"># Replace the command name, ignore extra args.</span>
1028           <span style="color:#0057ae;">cmd</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">(</span>builtin jobs -l <span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">Q</span><span style="color:#0057ae;">)</span><span style="color:#0057ae;">cmd</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">2</span><span style="color:#ca60ca;">]</span><span style="color:#0057ae;">}</span><span style="color:#0057ae;">)</span>
1029         <span style="font-weight:bold;">fi;;</span>
1030        <span style="color:#ff5500;">%</span><span style="color:#006e28;">*</span><span style="font-weight:bold;">)</span> <span style="color:#0057ae;">cmd</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">(</span>builtin jobs -l <span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">Q</span><span style="color:#0057ae;">)</span><span style="color:#0057ae;">cmd</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">1</span><span style="color:#ca60ca;">]</span><span style="color:#0057ae;">}</span><span style="color:#0057ae;">)</span><span style="font-weight:bold;">;;</span> <span style="color:#898887;"># Same as &quot;else&quot; above</span>
1031        <span style="color:#ff5500;">exec</span><span style="font-weight:bold;">)</span> <span style="color:#644a9b;font-weight:bold;">shift</span> cmd<span style="font-weight:bold;">;&amp;</span> <span style="color:#898887;"># If the command is 'exec', drop that, because</span>
1032           <span style="color:#898887;"># we'd rather just see the command that is being</span>
1033           <span style="color:#898887;"># exec'd. Note the ;&amp; to fall through.</span>
1034        <span style="color:#006e28;">*</span><span style="font-weight:bold;">)</span>  <span style="color:#0095ff;font-weight:bold;">title</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">cmd</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">1</span><span style="color:#ca60ca;">]</span><span style="color:#0057ae;">:t</span> <span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">cmd</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">2</span><span style="color:#ca60ca;">,</span><span style="color:#b08000;">-1</span><span style="color:#ca60ca;">]</span><span style="color:#bf0303;">&quot;</span>    <span style="color:#898887;"># Not resuming a job,</span>
1035           <span style="font-weight:bold;">return;;</span>                        <span style="color:#898887;"># so we're all done</span>
1036       <span style="font-weight:bold;">esac</span>
1037 
1038   <span style="color:#644a9b;font-weight:bold;">local</span> <span style="color:#0057ae;">-A</span> <span style="color:#0057ae;">jt</span><span style="font-weight:bold;">;</span> <span style="color:#0057ae;">jt</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">(</span><span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">kv</span><span style="color:#0057ae;">)</span><span style="color:#0057ae;">jobtexts</span><span style="color:#0057ae;">}</span><span style="color:#0057ae;">)</span>       <span style="color:#898887;"># Copy jobtexts for subshell</span>
1039 
1040   <span style="color:#898887;"># Run the command, read its output, and look up the jobtext.</span>
1041   <span style="color:#898887;"># Could parse $rest here, but $jobtexts (via $jt) is easier.</span>
1042   <span style="color:#0057ae;">$</span><span style="color:#0057ae;">cmd</span> <span style="color:#ca60ca;">&gt;&gt;(</span><span style="color:#644a9b;font-weight:bold;">read</span> <span style="color:#0057ae;">num</span> <span style="color:#0057ae;">rest</span>
1043           <span style="color:#0057ae;">cmd</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">(</span><span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">z</span><span style="color:#0057ae;">)${(</span><span style="color:#ca60ca;">e</span><span style="color:#0057ae;">)</span><span style="color:#ca60ca;">:-</span><span style="color:#0057ae;">\$</span><span style="color:#bf0303;">jt</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">num</span><span style="color:#0057ae;">}}</span><span style="color:#0057ae;">)</span>
1044           <span style="color:#0095ff;font-weight:bold;">title</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">cmd</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">1</span><span style="color:#ca60ca;">]</span><span style="color:#0057ae;">:t</span> <span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">cmd</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">2</span><span style="color:#ca60ca;">,</span><span style="color:#b08000;">-1</span><span style="color:#ca60ca;">]</span><span style="color:#bf0303;">&quot;</span><span style="color:#ca60ca;">)</span> <span style="color:#b08000;">2</span><span style="color:#ca60ca;">&gt;</span>/dev/null
1045 <span style="font-weight:bold;">}</span>
1046 
1047 <span style="font-weight:bold;">function</span> <span style="color:#644a9b;">precmd</span><span style="color:#ca60ca;">()</span> <span style="font-weight:bold;">{</span>
1048   <span style="color:#0095ff;font-weight:bold;">title</span> zsh <span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">IDENTITY</span><span style="color:#bf0303;">:</span><span style="color:#0057ae;">$(</span><span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">-P</span> %<span style="color:#006e28;">~</span><span style="color:#0057ae;">)</span><span style="color:#bf0303;">&quot;</span>
1049 <span style="font-weight:bold;">}</span>
1050 
1051 <span style="color:#bf0303;">&quot;%{^[]0;screen ^En (^Et) ^G%}&quot;</span>
1052 
1053 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">-nRP</span> <span style="color:#bf0303;">$'</span><span style="color:#0057ae;">\033</span><span style="color:#bf0303;">k%(!.#\[.)'</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">1</span><span style="color:#bf0303;">$'%'</span>$<span style="color:#0057ae;">\(\(</span>20<span style="color:#0057ae;">\-</span><span style="color:#0057ae;">${</span><span style="color:#ca60ca;">#</span><span style="color:#0057ae;">1</span><span style="color:#0057ae;">}</span><span style="color:#0057ae;">\)\)</span><span style="color:#bf0303;">$'&lt; ..&lt;'</span><span style="color:#0057ae;">${${</span><span style="color:#0057ae;">2</span><span style="color:#ca60ca;">:+</span><span style="color:#0057ae;">${${${</span><span style="color:#0057ae;">@</span><span style="color:#ca60ca;">[</span><span style="color:#0057ae;">${</span><span style="color:#ca60ca;">#</span><span style="color:#0057ae;">${</span><span style="color:#0057ae;">@</span><span style="color:#0057ae;">}}</span><span style="color:#ca60ca;">]##</span><span style="color:#bf0303;">/</span><span style="color:#006e28;">*</span><span style="color:#bf0303;">/</span><span style="color:#0057ae;">}</span><span style="color:#ca60ca;">/#/</span><span style="color:#bf0303;"> </span><span style="color:#0057ae;">}</span><span style="color:#ca60ca;">:-</span><span style="color:#0057ae;">}}</span><span style="color:#ca60ca;">//</span><span style="color:#0057ae;">\&quot;</span><span style="color:#ca60ca;">/</span><span style="color:#0057ae;">}</span><span style="color:#bf0303;">$'%(!.\].)</span><span style="color:#0057ae;">\033</span><span style="color:#bf0303;">'</span><span style="color:#0057ae;">\\</span>
1054 
1055 <span style="color:#644a9b;">c()</span> <span style="font-weight:bold;">{</span> <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">-E</span> <span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$(</span><span style="color:#ca60ca;">&lt;</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">1</span><span style="color:#0057ae;">)</span><span style="color:#bf0303;">&quot;</span> <span style="font-weight:bold;">}</span>
1056 <span style="color:#644a9b;">col()</span> <span style="font-weight:bold;">{</span> <span style="font-weight:bold;">for</span> l <span style="font-weight:bold;">in</span> <span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">f</span><span style="color:#0057ae;">)</span><span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$(</span><span style="color:#ca60ca;">&lt;</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">1</span><span style="color:#0057ae;">)</span><span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">}</span> <span style="font-weight:bold;">;</span> <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">${${(</span><span style="color:#ca60ca;">Az</span><span style="color:#0057ae;">)</span><span style="color:#0057ae;">l</span><span style="color:#0057ae;">}</span><span style="color:#ca60ca;">[</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">2</span><span style="color:#ca60ca;">]</span><span style="color:#0057ae;">}</span> <span style="font-weight:bold;">}</span>
1057 <span style="color:#644a9b;">colx()</span> <span style="font-weight:bold;">{</span> <span style="font-weight:bold;">for</span> l <span style="font-weight:bold;">in</span> <span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">f</span><span style="color:#0057ae;">)</span><span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$(</span><span style="color:#644a9b;font-weight:bold;">eval</span> <span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">q</span><span style="color:#0057ae;">)</span><span style="color:#0057ae;">@</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">2</span><span style="color:#ca60ca;">,</span><span style="color:#b08000;">$</span><span style="color:#ca60ca;">]</span><span style="color:#0057ae;">})</span><span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">}</span> <span style="font-weight:bold;">;</span> <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">${${(</span><span style="color:#ca60ca;">Az</span><span style="color:#0057ae;">)</span><span style="color:#0057ae;">l</span><span style="color:#0057ae;">}</span><span style="color:#ca60ca;">[</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">1</span><span style="color:#ca60ca;">]</span><span style="color:#0057ae;">}</span> <span style="font-weight:bold;">}</span>
1058 
1059 <span style="font-weight:bold;">[[</span> <span style="color:#006e28;">-r</span> /etc/ssh/ssh_known_hosts <span style="font-weight:bold;">]]</span> <span style="font-weight:bold;">&amp;&amp;</span> <span style="color:#0057ae;">_global_ssh_hosts</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">(</span><span style="color:#0057ae;">${${${${(</span><span style="color:#ca60ca;">f</span><span style="color:#0057ae;">)</span><span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$(</span><span style="color:#ca60ca;">&lt;</span>/etc/ssh/ssh_known_hosts<span style="color:#0057ae;">)</span><span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">}</span><span style="color:#ca60ca;">:#</span><span style="color:#006e28;">[</span><span style="color:#0057ae;">\|</span><span style="color:#006e28;">]*</span><span style="color:#0057ae;">}</span><span style="color:#ca60ca;">%%</span><span style="color:#0057ae;">\ </span><span style="color:#006e28;">*</span><span style="color:#0057ae;">}</span><span style="color:#ca60ca;">%%</span><span style="color:#bf0303;">,</span><span style="color:#006e28;">*</span><span style="color:#0057ae;">}</span><span style="color:#0057ae;">)</span> <span style="font-weight:bold;">||</span> <span style="color:#0057ae;">_global_ssh_hosts</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">()</span>
1060 <span style="color:#0057ae;">_ssh_hosts</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">(</span><span style="color:#0057ae;">${${${${(</span><span style="color:#ca60ca;">f</span><span style="color:#0057ae;">)</span><span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$(</span><span style="color:#ca60ca;">&lt;</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">HOME</span>/.ssh/known_hosts<span style="color:#0057ae;">)</span><span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">}</span><span style="color:#ca60ca;">:#</span><span style="color:#006e28;">[</span><span style="color:#0057ae;">\|</span><span style="color:#006e28;">]*</span><span style="color:#0057ae;">}</span><span style="color:#ca60ca;">%%</span><span style="color:#0057ae;">\ </span><span style="color:#006e28;">*</span><span style="color:#0057ae;">}</span><span style="color:#ca60ca;">%%</span><span style="color:#bf0303;">,</span><span style="color:#006e28;">*</span><span style="color:#0057ae;">}</span><span style="color:#0057ae;">)</span> <span style="font-weight:bold;">||</span> <span style="color:#0057ae;">_ssh_hosts</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">()</span>
1061 <span style="color:#0057ae;">_ssh_config</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">(</span><span style="color:#0057ae;">$(</span><span style="color:#644a9b;">cat</span> ~/.ssh/config <span style="font-weight:bold;">|</span> <span style="color:#644a9b;">sed</span> <span style="color:#0057ae;">-ne</span> <span style="color:#bf0303;">'s/Host[=\t ]//p'</span><span style="color:#0057ae;">)</span><span style="color:#0057ae;">)</span> <span style="font-weight:bold;">||</span> <span style="color:#0057ae;">_ssh_config</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">()</span>
1062 <span style="color:#644a9b;font-weight:bold;">:</span> <span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">A</span><span style="color:#0057ae;">)</span><span style="color:#0057ae;">_etc_hosts</span><span style="color:#ca60ca;">:=</span><span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">s:</span><span style="color:#bf0303;"> </span><span style="color:#ca60ca;">:</span><span style="color:#0057ae;">)${(</span><span style="color:#ca60ca;">ps:</span><span style="color:#bf0303;">\t</span><span style="color:#ca60ca;">:</span><span style="color:#0057ae;">)${${(</span><span style="color:#ca60ca;">f</span><span style="color:#0057ae;">)</span><span style="color:#ca60ca;">~~</span><span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$(</span><span style="color:#ca60ca;">&lt;</span>/etc/hosts<span style="color:#0057ae;">)</span><span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">}</span><span style="color:#ca60ca;">%%</span><span style="color:#0057ae;">\#</span><span style="color:#006e28;">*</span><span style="color:#0057ae;">}</span><span style="color:#ca60ca;">##</span><span style="color:#006e28;">[</span><span style="color:#bf0303;">:blank:</span><span style="color:#006e28;">]#[</span><span style="color:#ca60ca;">^</span><span style="color:#006e28;">[:</span><span style="color:#ff5500;">blank</span><span style="color:#006e28;">:]]#</span><span style="color:#0057ae;">}}}</span> <span style="font-weight:bold;">||</span> <span style="color:#0057ae;">_etc_hosts</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">()</span>
1063 
1064 <span style="color:#0057ae;">prefix</span><span style="color:#ca60ca;">=</span><span style="color:#bf0303;">'(I:'</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">@</span><span style="color:#ca60ca;">[</span><span style="color:#0057ae;">$((</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">i</span><span style="color:#ca60ca;">+</span><span style="color:#b08000;">1</span><span style="color:#0057ae;">))</span><span style="color:#ca60ca;">]</span><span style="color:#bf0303;">':)'</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">prefix</span> <span style="font-weight:bold;">||</span> <span style="color:#0057ae;">prefix</span><span style="color:#ca60ca;">=</span><span style="color:#bf0303;">'${('</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">tmp</span><span style="color:#bf0303;">'I:'</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">@</span><span style="color:#ca60ca;">[</span><span style="color:#0057ae;">$((</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">i</span><span style="color:#ca60ca;">+</span><span style="color:#b08000;">1</span><span style="color:#0057ae;">))</span><span style="color:#ca60ca;">]</span><span style="color:#bf0303;">':'</span><span style="color:#0057ae;">${</span><span style="color:#0057ae;">prefix</span><span style="color:#ca60ca;">[</span><span style="color:#0057ae;">$((</span><span style="color:#0057ae;">$</span><span style="color:#ca60ca;">#</span><span style="color:#0057ae;">tmp</span><span style="color:#ca60ca;">+</span><span style="color:#b08000;">4</span><span style="color:#0057ae;">))</span><span style="color:#ca60ca;">,</span><span style="color:#b08000;">-1</span><span style="color:#ca60ca;">]</span><span style="color:#0057ae;">}</span>
1065 <span style="color:#0057ae;">prefix</span><span style="color:#ca60ca;">=</span><span style="color:#bf0303;">'${'</span><span style="color:#0057ae;">${</span><span style="color:#0057ae;">j</span><span style="color:#ca60ca;">:+</span><span style="color:#006e28;">(</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">j</span><span style="color:#006e28;">)</span><span style="color:#0057ae;">}</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">prefix</span><span style="font-weight:bold;">;</span> <span style="color:#0057ae;">suffix</span><span style="color:#ca60ca;">+=</span><span style="color:#bf0303;">':#'</span><span style="color:#0057ae;">${</span><span style="color:#0057ae;">@</span><span style="color:#ca60ca;">[</span><span style="color:#0057ae;">$((</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">i</span><span style="color:#ca60ca;">+</span><span style="color:#b08000;">1</span><span style="color:#0057ae;">))</span><span style="color:#ca60ca;">]//</span><span style="color:#ca60ca;">(#m)</span><span style="color:#006e28;">[</span><span style="color:#0057ae;">\/\'\&quot;</span><span style="color:#006e28;">]</span><span style="color:#ca60ca;">/</span><span style="color:#0057ae;">\\</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">MATCH</span><span style="color:#0057ae;">}</span><span style="color:#bf0303;">'}'</span>
1066 <span style="color:#0057ae;">cmd</span><span style="color:#ca60ca;">+=</span><span style="color:#bf0303;">'&lt;'</span><span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">q</span><span style="color:#0057ae;">)</span><span style="color:#0057ae;">@</span><span style="color:#ca60ca;">[</span><span style="color:#0057ae;">$((</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">i</span><span style="color:#ca60ca;">+</span><span style="color:#b08000;">1</span><span style="color:#0057ae;">))</span><span style="color:#ca60ca;">]</span><span style="color:#0057ae;">}</span><span style="color:#bf0303;">';'</span>
1067 <span style="color:#0057ae;">C</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">${</span><span style="color:#0057ae;">OPTARG</span><span style="color:#ca60ca;">//</span><span style="color:#ca60ca;">(#m)</span><span style="color:#006e28;">[</span><span style="color:#bf0303;">[</span><span style="color:#0057ae;">\/\'\&quot;\\</span><span style="color:#006e28;">]</span><span style="color:#ca60ca;">/</span><span style="color:#0057ae;">\\</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">MATCH</span><span style="color:#0057ae;">}</span>
1068 <span style="color:#0057ae;">$</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">p</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">e</span><span style="color:#bf0303;">'&quot;$(&lt;'</span><span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">j:</span><span style="color:#bf0303;">&lt;</span><span style="color:#ca60ca;">:</span><span style="color:#0057ae;">)${(</span><span style="color:#ca60ca;">q</span><span style="color:#0057ae;">)</span><span style="color:#0057ae;">@</span><span style="color:#0057ae;">}}</span><span style="color:#bf0303;">')&quot;'</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">m</span>
1069 
1070 <span style="color:#644a9b;">zshaddhistory()</span> <span style="font-weight:bold;">{</span>
1071     <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">-sr</span> <span style="color:#0057ae;">--</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">1</span><span style="color:#ca60ca;">%%</span><span style="color:#bf0303;">$'</span><span style="color:#0057ae;">\n</span><span style="color:#bf0303;">'</span><span style="color:#0057ae;">}</span>
1072     <span style="color:#644a9b;font-weight:bold;">fc</span> <span style="color:#0057ae;">-p</span> .zsh_local_history
1073 <span style="font-weight:bold;">}</span>
1074 
1075 <span style="color:#644a9b;">TRAPINT()</span> <span style="font-weight:bold;">{</span>
1076     <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#bf0303;">&quot;Caught SIGINT, aborting.&quot;</span>
1077     <span style="font-weight:bold;">return</span> <span style="color:#0057ae;">$((</span> <span style="color:#b08000;">128</span> <span style="color:#ca60ca;">+</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">1</span> <span style="color:#0057ae;">))</span>
1078 <span style="font-weight:bold;">}</span>
1079 
1080 <span style="color:#644a9b;">zsh_directory_name()</span> <span style="font-weight:bold;">{</span>
1081     <span style="color:#644a9b;font-weight:bold;">emulate</span> <span style="color:#0057ae;">-L</span> zsh
1082     <span style="color:#644a9b;font-weight:bold;">setopt</span> extendedglob
1083     <span style="color:#644a9b;font-weight:bold;">local</span> <span style="color:#0057ae;">-a</span> <span style="color:#0057ae;">match</span> <span style="color:#0057ae;">mbegin</span> <span style="color:#0057ae;">mend</span>
1084     <span style="font-weight:bold;">if</span> <span style="font-weight:bold;">[[</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">1</span> <span style="color:#006e28;">=</span> d <span style="font-weight:bold;">]]</span><span style="font-weight:bold;">;</span> <span style="font-weight:bold;">then</span>
1085         <span style="color:#898887;"># turn the directory into a name</span>
1086         <span style="font-weight:bold;">if</span> <span style="font-weight:bold;">[[</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">2</span> <span style="color:#006e28;">=</span> <span style="color:#ca60ca;">(#b)</span><span style="color:#006e28;">(</span><span style="color:#ff5500;">/home/pws/perforce/</span><span style="color:#006e28;">)([</span><span style="color:#ca60ca;">^</span><span style="color:#bf0303;">/</span><span style="color:#006e28;">]##)*</span> <span style="font-weight:bold;">]]</span><span style="font-weight:bold;">;</span> <span style="font-weight:bold;">then</span>
1087             <span style="color:#644a9b;font-weight:bold;">typeset</span> <span style="color:#0057ae;">-ga</span> <span style="color:#0057ae;">reply</span>
1088             <span style="color:#0057ae;">reply</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">(</span>p:<span style="color:#0057ae;">$</span><span style="color:#0057ae;">match</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">2</span><span style="color:#ca60ca;">]</span> <span style="color:#0057ae;">$((</span> <span style="color:#0057ae;">${</span><span style="color:#ca60ca;">#</span><span style="color:#0057ae;">match</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">1</span><span style="color:#ca60ca;">]</span><span style="color:#0057ae;">}</span> <span style="color:#ca60ca;">+</span> <span style="color:#0057ae;">${</span><span style="color:#ca60ca;">#</span><span style="color:#0057ae;">match</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">2</span><span style="color:#ca60ca;">]</span><span style="color:#0057ae;">}</span> <span style="color:#0057ae;">))</span> <span style="color:#0057ae;">)</span>
1089         <span style="font-weight:bold;">else</span>
1090             <span style="font-weight:bold;">return</span> <span style="color:#b08000;">1</span>
1091         <span style="font-weight:bold;">fi</span>
1092     <span style="font-weight:bold;">elif</span> <span style="font-weight:bold;">[[</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">1</span> <span style="color:#006e28;">=</span> n <span style="font-weight:bold;">]]</span><span style="font-weight:bold;">;</span> <span style="font-weight:bold;">then</span>
1093         <span style="color:#898887;"># turn the name into a directory</span>
1094         <span style="font-weight:bold;">[[</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">2</span> <span style="color:#006e28;">!=</span> <span style="color:#ca60ca;">(#b)</span>p:<span style="color:#006e28;">(?*)</span> <span style="font-weight:bold;">]]</span> <span style="font-weight:bold;">&amp;&amp;</span> <span style="font-weight:bold;">return</span> <span style="color:#b08000;">1</span>
1095         <span style="color:#644a9b;font-weight:bold;">typeset</span> <span style="color:#0057ae;">-ga</span> <span style="color:#0057ae;">reply</span>
1096         <span style="color:#0057ae;">reply</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">(</span>/home/pws/perforce/<span style="color:#0057ae;">$</span><span style="color:#0057ae;">match</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">1</span><span style="color:#ca60ca;">]</span><span style="color:#0057ae;">)</span>
1097     <span style="font-weight:bold;">elif</span> <span style="font-weight:bold;">[[</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">1</span> <span style="color:#006e28;">=</span> c <span style="font-weight:bold;">]]</span><span style="font-weight:bold;">;</span> <span style="font-weight:bold;">then</span>
1098         <span style="color:#898887;"># complete names</span>
1099         <span style="color:#644a9b;font-weight:bold;">local</span> <span style="color:#0057ae;">expl</span>
1100         <span style="color:#644a9b;font-weight:bold;">local</span> <span style="color:#0057ae;">-a</span> <span style="color:#0057ae;">dirs</span>
1101         <span style="color:#0057ae;">dirs</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">(</span>/home/pws/perforce/<span style="color:#006e28;">*</span><span style="color:#ca60ca;">(/</span><span style="color:#ca60ca;">:</span><span style="color:#0057ae;">t</span><span style="color:#ca60ca;">)</span><span style="color:#0057ae;">)</span>
1102         <span style="color:#0057ae;">dirs</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">(</span>p:<span style="color:#0057ae;">${</span><span style="color:#ca60ca;">^</span><span style="color:#0057ae;">dirs</span><span style="color:#0057ae;">}</span><span style="color:#0057ae;">)</span>
1103         <span style="color:#0095ff;font-weight:bold;">_wanted</span> dynamic-dirs expl <span style="color:#bf0303;">'dynamic directory'</span> compadd <span style="color:#0057ae;">-S</span><span style="color:#0057ae;">\]</span> <span style="color:#0057ae;">-a</span> dirs
1104         <span style="font-weight:bold;">return</span>
1105     <span style="font-weight:bold;">else</span>
1106         <span style="font-weight:bold;">return</span> <span style="color:#b08000;">1</span>
1107     <span style="font-weight:bold;">fi</span>
1108     <span style="font-weight:bold;">return</span> <span style="color:#b08000;">0</span>
1109 <span style="font-weight:bold;">}</span>
1110 
1111 <span style="font-weight:bold;">()</span> <span style="font-weight:bold;">{</span>
1112     <span style="color:#644a9b;font-weight:bold;">print</span> File <span style="color:#0057ae;">$</span><span style="color:#0057ae;">1</span>:
1113     <span style="color:#644a9b;">cat</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">1</span>
1114 <span style="font-weight:bold;">}</span> <span style="color:#ca60ca;">=(</span><span style="color:#644a9b;font-weight:bold;">print</span> This be the verse<span style="color:#ca60ca;">)</span>
1115 
1116 <span style="font-weight:bold;">if</span> <span style="font-weight:bold;">[[</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">foo</span> <span style="color:#006e28;">=</span> <span style="color:#006e28;">(</span><span style="color:#ff5500;">a</span><span style="color:#006e28;">|</span><span style="color:#ff5500;">an</span><span style="color:#006e28;">)</span>_<span style="color:#ca60ca;">(#b)</span><span style="color:#006e28;">(*)</span> <span style="font-weight:bold;">]]</span><span style="font-weight:bold;">;</span> <span style="font-weight:bold;">then</span>
1117     <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">foo</span><span style="color:#ca60ca;">[</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">mbegin</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">1</span><span style="color:#ca60ca;">],</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">mend</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">1</span><span style="color:#ca60ca;">]]</span><span style="color:#0057ae;">}</span>
1118 <span style="font-weight:bold;">fi</span>
1119 
1120 <span style="color:#644a9b;">zshaddhistory()</span> <span style="font-weight:bold;">{</span>
1121     <span style="color:#644a9b;font-weight:bold;">emulate</span> <span style="color:#0057ae;">-L</span> zsh
1122     <span style="color:#898887;">## uncomment if HISTORY_IGNORE</span>
1123     <span style="color:#898887;">## should use EXTENDED_GLOB syntax</span>
1124     <span style="color:#898887;"># setopt extendedglob</span>
1125     <span style="font-weight:bold;">[[</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">1</span> <span style="color:#006e28;">!=</span> <span style="color:#0057ae;">${</span><span style="color:#ca60ca;">~</span><span style="color:#0057ae;">HISTORY_IGNORE</span><span style="color:#0057ae;">}</span> <span style="font-weight:bold;">]]</span>
1126 <span style="font-weight:bold;">}</span>
1127 
1128 <span style="color:#644a9b;">pick-recent-dirs-file()</span> <span style="font-weight:bold;">{</span>
1129     <span style="font-weight:bold;">if</span> <span style="font-weight:bold;">[[</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">PWD</span> <span style="color:#006e28;">=</span> ~/text/writing<span style="color:#006e28;">(|</span><span style="color:#ff5500;">/</span><span style="color:#006e28;">*)</span> <span style="font-weight:bold;">]]</span><span style="font-weight:bold;">;</span> <span style="font-weight:bold;">then</span>
1130         <span style="color:#0057ae;">reply</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">(</span>~/.chpwd-recent-dirs-writing<span style="color:#0057ae;">)</span>
1131     <span style="font-weight:bold;">else</span>
1132         <span style="color:#0057ae;">reply</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">(</span>+<span style="color:#0057ae;">)</span>
1133     <span style="font-weight:bold;">fi</span>
1134 <span style="font-weight:bold;">}</span>
1135 
1136 <span style="color:#644a9b;">run-help-ssh()</span> <span style="font-weight:bold;">{</span>
1137     <span style="color:#644a9b;font-weight:bold;">emulate</span> <span style="color:#0057ae;">-LR</span> zsh
1138     <span style="color:#644a9b;font-weight:bold;">local</span> <span style="color:#0057ae;">-a</span> <span style="color:#0057ae;">args</span>
1139     <span style="color:#898887;"># Delete the &quot;-l username&quot; option</span>
1140     <span style="color:#644a9b;font-weight:bold;">zparseopts</span> <span style="color:#0057ae;">-D</span> <span style="color:#0057ae;">-E</span> <span style="color:#0057ae;">-a</span> args l:
1141     <span style="color:#898887;"># Delete other options, leaving: host command</span>
1142     <span style="color:#0057ae;">args</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">(</span><span style="color:#0057ae;">${</span><span style="color:#0057ae;">@</span><span style="color:#ca60ca;">:#</span><span style="color:#bf0303;">-</span><span style="color:#006e28;">*</span><span style="color:#0057ae;">}</span><span style="color:#0057ae;">)</span>
1143     <span style="font-weight:bold;">if</span> <span style="font-weight:bold;">[[</span> <span style="color:#0057ae;">${</span><span style="color:#ca60ca;">#</span><span style="color:#0057ae;">args</span><span style="color:#0057ae;">}</span> <span style="color:#006e28;">-lt</span> 2 <span style="font-weight:bold;">]]</span><span style="font-weight:bold;">;</span> <span style="font-weight:bold;">then</span>
1144         <span style="color:#644a9b;">man</span> ssh
1145     <span style="font-weight:bold;">else</span>
1146         <span style="color:#0095ff;font-weight:bold;">run-help</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">args</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">2</span><span style="color:#ca60ca;">]</span>
1147     <span style="font-weight:bold;">fi</span>
1148 <span style="font-weight:bold;">}</span>
1149 
1150 <span style="color:#644a9b;font-weight:bold;">local</span> <span style="color:#0057ae;">-A</span> <span style="color:#0057ae;">zdn_top</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">(</span>
1151     g   ~/git
1152     ga  ~/alternate/git
1153     gs  /scratch/<span style="color:#0057ae;">$</span><span style="color:#0057ae;">USER</span>/git/:second2
1154     :default: /:second1
1155 <span style="color:#0057ae;">)</span>
1156 
1157 <span style="font-weight:bold;">((</span> <span style="color:#0057ae;">$</span><span style="color:#ca60ca;">#</span><span style="color:#0057ae;">files</span> <span style="color:#ca60ca;">&gt;</span> <span style="color:#b08000;">0</span> <span style="font-weight:bold;">))</span> <span style="font-weight:bold;">&amp;&amp;</span> <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">-rl</span> <span style="color:#0057ae;">--</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">files</span> <span style="font-weight:bold;">|</span> <span style="color:#0057ae;">\</span>
1158     <span style="color:#0095ff;font-weight:bold;">mailx</span> <span style="color:#0057ae;">-s</span> <span style="color:#bf0303;">&quot;empty files&quot;</span> foo <span style="color:#006e28;">[</span><span style="color:#bf0303;">at</span><span style="color:#006e28;">]</span> bar.tdl
1159 
1160 <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">-r</span> <span style="color:#0057ae;">--</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">s</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">3</span><span style="color:#ca60ca;">]</span> <span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">l:</span><span style="color:#b08000;">4</span><span style="color:#ca60ca;">:</span><span style="color:#0057ae;">)</span><span style="color:#0057ae;">s</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">4</span><span style="color:#ca60ca;">]</span><span style="color:#0057ae;">}</span> <span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">l:</span><span style="color:#b08000;">8</span><span style="color:#ca60ca;">:</span><span style="color:#0057ae;">)</span><span style="color:#0057ae;">s</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">5</span><span style="color:#ca60ca;">]</span><span style="color:#0057ae;">}</span> <span style="color:#0057ae;">\</span>
1161     <span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">l:</span><span style="color:#b08000;">8</span><span style="color:#ca60ca;">:</span><span style="color:#0057ae;">)</span><span style="color:#0057ae;">s</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">6</span><span style="color:#ca60ca;">]</span><span style="color:#0057ae;">}</span> <span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">l:</span><span style="color:#b08000;">8</span><span style="color:#ca60ca;">:</span><span style="color:#0057ae;">)</span><span style="color:#0057ae;">s</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">8</span><span style="color:#ca60ca;">]</span><span style="color:#0057ae;">}</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">s</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">10</span><span style="color:#ca60ca;">]</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">f</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">s</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">14</span><span style="color:#ca60ca;">]:+</span><span style="color:#bf0303;">-&gt; </span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">s</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">14</span><span style="color:#ca60ca;">]</span><span style="color:#0057ae;">}</span>
1162 
1163 <span style="color:#644a9b;">paste</span> <span style="color:#ca60ca;">&lt;(</span><span style="color:#644a9b;">cut</span> <span style="color:#0057ae;">-f1</span> file1<span style="color:#ca60ca;">)</span> <span style="color:#ca60ca;">&lt;(</span><span style="color:#644a9b;">cut</span> <span style="color:#0057ae;">-f3</span> file2<span style="color:#ca60ca;">)</span> <span style="font-weight:bold;">|</span>
1164     <span style="color:#644a9b;">tee</span> <span style="color:#ca60ca;">&gt;(</span><span style="color:#0095ff;font-weight:bold;">process1</span><span style="color:#ca60ca;">)</span> <span style="color:#ca60ca;">&gt;(</span><span style="color:#0095ff;font-weight:bold;">process2</span><span style="color:#ca60ca;">)</span> <span style="color:#ca60ca;">&gt;</span>/dev/null
1165 
1166 <span style="color:#644a9b;">ls</span> <span style="color:#0057ae;">\</span>
1167 <span style="color:#ca60ca;">&gt;</span> x<span style="color:#006e28;">*</span>
1168 
1169 <span style="color:#644a9b;">sed</span> <span style="color:#bf0303;">'</span>
1170 <span style="color:#bf0303;"> s/mvoe/move/g</span>
1171 <span style="color:#bf0303;"> s/thier/their/g'</span> myfile
1172 
1173 
1174 <span style="color:#644a9b;font-weight:bold;">trap</span> <span style="color:#bf0303;">'</span>
1175 <span style="color:#bf0303;">    # code</span>
1176 <span style="color:#bf0303;">    '</span> NAL
1177 
1178 <span style="color:#0095ff;font-weight:bold;">!!</span> <span style="color:#898887;"># previous command</span>
1179 <span style="color:#0095ff;font-weight:bold;">!!:0</span> !<span style="color:#006e28;">^</span> !:2 !$ !<span style="color:#006e28;">#</span>$ !<span style="color:#006e28;">#</span>:2 !<span style="color:#006e28;">#</span>1 !<span style="color:#006e28;">#</span>0
1180 <span style="color:#0095ff;font-weight:bold;">!!:gs/fred/joe/</span>       <span style="color:#898887;"># edit previous command replace all fred by joe</span>
1181 <span style="color:#0095ff;font-weight:bold;">!!:gs/fred/joe/</span>       <span style="color:#898887;"># edit previous command replace all fred by joe</span>
1182 <span style="color:#0095ff;font-weight:bold;">!!:s/fred/joe/</span>        <span style="color:#898887;"># Note : sadly no regexp available with :s///</span>
1183 <span style="color:#0095ff;font-weight:bold;">!!:s/fred/joe/</span>        <span style="color:#898887;"># edit previous command replace first fred by joe</span>
1184 <span style="color:#0095ff;font-weight:bold;">!$</span> <span style="color:#006e28;">(</span><span style="color:#ff5500;">last argument of previous command</span><span style="color:#006e28;">)</span>
1185 <span style="color:#0095ff;font-weight:bold;">!$:h</span> <span style="color:#006e28;">(</span><span style="color:#ff5500;">last argument, strip one level</span><span style="color:#006e28;">)</span>
1186 <span style="color:#0095ff;font-weight:bold;">!$:h:h</span> <span style="color:#006e28;">(</span><span style="color:#ff5500;">last argument, strip two levels</span><span style="color:#006e28;">)</span>
1187 <span style="color:#0095ff;font-weight:bold;">!-2</span> <span style="color:#898887;"># command before last</span>
1188 <span style="color:#0095ff;font-weight:bold;">!1</span> <span style="color:#898887;"># oldest command in your history</span>
1189 <span style="color:#0095ff;font-weight:bold;">!42</span>                   <span style="color:#898887;"># Re-execute history command 42</span>
1190 <span style="color:#0095ff;font-weight:bold;">!42:p</span>
1191 <span style="color:#0095ff;font-weight:bold;">!?echo</span>
1192 <span style="color:#0095ff;font-weight:bold;">!?saket?:s/somefile1/somefile2/</span>
1193 
1194 <span style="font-weight:bold;">((</span><span style="color:#0057ae;">$</span><span style="color:#ca60ca;">#</span><span style="color:#0057ae;">l</span><span style="font-weight:bold;">))</span> <span style="font-weight:bold;">&amp;&amp;</span> <span style="color:#644a9b;">ls</span> <span style="color:#0057ae;">-ltd</span> <span style="color:#0057ae;">--</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">l</span>
1195 <span style="font-weight:bold;">((</span><span style="color:#0057ae;">val2</span> <span style="color:#ca60ca;">=</span> <span style="color:#0057ae;">val1</span> <span style="color:#ca60ca;">*</span> <span style="color:#b08000;">2</span><span style="font-weight:bold;">))</span>
1196 <span style="font-weight:bold;">(</span><span style="color:#0095ff;font-weight:bold;">mycmd</span> <span style="color:#ca60ca;">=(</span><span style="color:#0095ff;font-weight:bold;">myoutput</span><span style="color:#ca60ca;">)</span><span style="font-weight:bold;">)</span> <span style="font-weight:bold;">&amp;!</span>
1197 <span style="color:#644a9b;font-weight:bold;">:</span> <span style="color:#006e28;">*</span><span style="color:#ca60ca;">(.e{</span><span style="color:#bf0303;">'grep -q pattern $REPLY || print -r -- $REPLY'</span><span style="color:#ca60ca;">})</span>
1198 <span style="color:#644a9b;font-weight:bold;">:</span> <span style="color:#ca60ca;">&gt;</span> /apache/access.log  <span style="color:#898887;"># truncate a log file</span>
1199 <span style="color:#ca60ca;">&lt;</span> readme.txt
1200 <span style="color:#0057ae;">A</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">(</span>1 2 5 6 7 9<span style="color:#0057ae;">)</span> <span style="color:#898887;"># pre-populate an array</span>
1201 <span style="color:#0095ff;font-weight:bold;">C:\cygwin\bin\mintty.exe</span> <span style="color:#0057ae;">-i</span> /Cygwin-Terminal.ico /bin/zsh <span style="color:#0057ae;">--login</span>
1202 <span style="color:#0057ae;">C</span><span style="color:#ca60ca;">=</span>3 <span style="font-weight:bold;">&amp;&amp;</span> <span style="color:#0057ae;">F</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">$(</span><span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#006e28;">*</span><span style="color:#ca60ca;">(.o</span>m<span style="color:#ca60ca;">[</span><span style="color:#b08000;">1</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">C</span><span style="color:#ca60ca;">]</span><span style="color:#ca60ca;">)</span><span style="color:#0057ae;">)</span> <span style="font-weight:bold;">&amp;&amp;</span> <span style="font-weight:bold;">for</span> f <span style="font-weight:bold;">(</span><span style="color:#0057ae;">$(</span><span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">F</span><span style="color:#0057ae;">)</span><span style="font-weight:bold;">){</span><span style="color:#0095ff;font-weight:bold;">php</span> <span style="color:#0057ae;">-l</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">f</span><span style="font-weight:bold;">}</span> <span style="font-weight:bold;">&amp;&amp;</span> <span style="color:#644a9b;">scp</span> <span style="color:#0057ae;">-rp</span> <span style="color:#0057ae;">$(</span><span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">F</span><span style="color:#0057ae;">)</span> user@192.168.1.1:<span style="color:#0057ae;">$</span><span style="color:#0057ae;">PWD</span>
1203 <span style="color:#0057ae;">EDITOR</span><span style="color:#ca60ca;">=</span><span style="color:#bf0303;">'/bin/vim'</span>
1204 <span style="color:#0057ae;">FILE</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">$(</span><span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#006e28;">*</span><span style="color:#ca60ca;">(.o</span>m<span style="color:#ca60ca;">[</span><span style="color:#b08000;">1</span><span style="color:#ca60ca;">]</span><span style="color:#ca60ca;">)</span><span style="color:#0057ae;">)</span> <span style="font-weight:bold;">&amp;&amp;</span> <span style="color:#644a9b;">ls</span> <span style="color:#0057ae;">-l</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">FILE</span> <span style="font-weight:bold;">&amp;&amp;</span> <span style="color:#644a9b;">ssh</span> 192.168.1.1 <span style="color:#0057ae;">-l</span> root <span style="color:#bf0303;">&quot;zsh -c 'ls -l </span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">PWD</span><span style="color:#bf0303;">/</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">FILE</span><span style="color:#bf0303;">'&quot;</span>
1205 <span style="color:#0057ae;">FILES</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">(</span> .../files/<span style="color:#006e28;">*</span> <span style="color:#0057ae;">)</span>
1206 <span style="color:#0057ae;">IFS</span><span style="color:#ca60ca;">=</span><span style="color:#bf0303;">$'</span><span style="color:#0057ae;">\n\n</span><span style="color:#bf0303;">'</span><span style="font-weight:bold;">;</span> <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">-rl</span> <span style="color:#0057ae;">--</span> <span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">Oau</span><span style="color:#0057ae;">)${(</span><span style="color:#ca60ca;">Oa</span><span style="color:#0057ae;">)$(</span><span style="color:#644a9b;">cat</span> file<span style="font-weight:bold;">;</span><span style="color:#644a9b;font-weight:bold;">echo</span> .<span style="color:#0057ae;">)</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">1</span><span style="color:#ca60ca;">,</span><span style="color:#b08000;">-2</span><span style="color:#ca60ca;">]</span><span style="color:#0057ae;">}}</span>
1207 <span style="color:#0057ae;">IPREFIX</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">${</span><span style="color:#0057ae;">PREFIX</span><span style="color:#ca60ca;">%%</span><span style="color:#0057ae;">\=</span><span style="color:#006e28;">*</span><span style="color:#0057ae;">}</span>=
1208 <span style="color:#0057ae;">PREFIX</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">${</span><span style="color:#0057ae;">PREFIX</span><span style="color:#ca60ca;">#</span><span style="color:#006e28;">*</span><span style="color:#bf0303;">=</span><span style="color:#0057ae;">}</span>
1209 <span style="color:#0057ae;">PROMPT3</span><span style="color:#ca60ca;">=</span><span style="color:#bf0303;">&quot;Choose File : &quot;</span>
1210 <span style="color:#0057ae;">PROMPT</span><span style="color:#ca60ca;">=</span><span style="color:#bf0303;">&quot;%{</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">bg</span><span style="color:#ca60ca;">[</span>cyan<span style="color:#ca60ca;">]</span><span style="color:#bf0303;">%}%% &quot;</span>
1211 <span style="color:#0057ae;">PS3</span><span style="color:#ca60ca;">=</span><span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">fg_light_red</span><span style="color:#bf0303;"> Select file : &quot;</span>
1212 <span style="color:#0057ae;">REPORTTIME</span><span style="color:#ca60ca;">=</span>10 <span style="color:#898887;"># Automatically /Report CPU usage for commands running longer than 10 seconds</span>
1213 <span style="color:#0057ae;">RPROMPT</span><span style="color:#ca60ca;">=</span><span style="color:#bf0303;">&quot;[%t]&quot;</span> <span style="font-weight:bold;">(</span><span style="color:#0095ff;font-weight:bold;">display</span> the time<span style="font-weight:bold;">)</span>
1214 <span style="color:#0057ae;">X</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">(</span>x1 x2<span style="color:#0057ae;">)</span>
1215 <span style="color:#0057ae;">Y</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">(</span>+ -<span style="color:#0057ae;">)</span>
1216 <span style="font-weight:bold;">[[</span> <span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$(</span><span style="color:#ca60ca;">&lt;</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">i</span><span style="color:#0057ae;">)</span><span style="color:#bf0303;">&quot;</span> <span style="color:#006e28;">=</span> <span style="color:#006e28;">*</span><span style="color:#0057ae;">\(</span><span style="color:#006e28;">(</span><span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">j:</span><span style="color:#bf0303;">|</span><span style="color:#ca60ca;">:</span><span style="color:#0057ae;">)</span><span style="color:#ca60ca;">~</span><span style="color:#0057ae;">@</span><span style="color:#0057ae;">}</span><span style="color:#006e28;">)</span><span style="color:#0057ae;">\)</span><span style="color:#006e28;">*</span> <span style="font-weight:bold;">]]</span> <span style="font-weight:bold;">&amp;&amp;</span> <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">i</span><span style="color:#0057ae;">:h:t</span>
1217 <span style="font-weight:bold;">[[</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">OSTYPE</span> <span style="color:#006e28;">==</span> <span style="color:#ca60ca;">(#i)</span>LINUX<span style="color:#006e28;">*</span><span style="color:#ca60ca;">(#I)</span> <span style="font-weight:bold;">]]</span><span style="font-weight:bold;">;</span>
1218 <span style="font-weight:bold;">[[</span> <span style="color:#bf0303;">'cell=456'</span> <span style="color:#006e28;">=~</span> <span style="color:#bf0303;">'(cell)=(\d+)'</span> <span style="font-weight:bold;">]]</span> <span style="font-weight:bold;">&amp;&amp;</span> <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">match</span><span style="color:#ca60ca;">[</span><span style="color:#b08000;">1</span><span style="color:#ca60ca;">,</span><span style="color:#b08000;">2</span><span style="color:#ca60ca;">]</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">MATCH</span>
1219 <span style="font-weight:bold;">[[</span> <span style="color:#006e28;">-e</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">L</span>/config.php <span style="font-weight:bold;">]]</span> <span style="font-weight:bold;">&amp;&amp;</span> <span style="color:#644a9b;">cp</span> <span style="color:#0057ae;">-p</span> <span style="color:#0057ae;">-update</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">T</span>/config.php <span style="color:#0057ae;">$</span><span style="color:#0057ae;">L</span>
1220 <span style="font-weight:bold;">[[</span> <span style="color:#006e28;">-n</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">key</span><span style="color:#ca60ca;">[</span>Left<span style="color:#ca60ca;">]</span><span style="color:#0057ae;">}</span> <span style="font-weight:bold;">]]</span> <span style="font-weight:bold;">&amp;&amp;</span> <span style="color:#644a9b;font-weight:bold;">bindkey</span> <span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">${</span><span style="color:#0057ae;">key</span><span style="color:#ca60ca;">[</span>Left<span style="color:#ca60ca;">]</span><span style="color:#0057ae;">}</span><span style="color:#bf0303;">&quot;</span> backward-char
1221 <span style="font-weight:bold;">[[</span> 1 <span style="color:#006e28;">=</span> 0 <span style="font-weight:bold;">]]</span> <span style="font-weight:bold;">&amp;&amp;</span> <span style="color:#644a9b;font-weight:bold;">echo</span> eq <span style="font-weight:bold;">||</span> <span style="color:#644a9b;font-weight:bold;">echo</span> neq
1222 <span style="font-weight:bold;">[[</span> alphabetical -regex-match <span style="color:#006e28;">^</span>a<span style="color:#006e28;">([</span><span style="color:#ca60ca;">^</span><span style="color:#bf0303;">a</span><span style="color:#006e28;">]</span><span style="color:#ff5500;">+</span><span style="color:#006e28;">)</span>a<span style="color:#006e28;">([</span><span style="color:#ca60ca;">^</span><span style="color:#bf0303;">a</span><span style="color:#006e28;">]</span><span style="color:#ff5500;">+</span><span style="color:#006e28;">)</span>a <span style="font-weight:bold;">]]</span> <span style="font-weight:bold;">&amp;&amp;</span>
1223 <span style="color:#0095ff;font-weight:bold;">^chim^</span><span style="font-weight:bold;">&amp;</span><span style="color:#644a9b;font-weight:bold;">-</span><span style="font-weight:bold;">&amp;</span><span style="color:#0095ff;font-weight:bold;">ney-</span><span style="font-weight:bold;">&amp;</span><span style="color:#644a9b;font-weight:bold;">-</span><span style="font-weight:bold;">&amp;</span><span style="color:#0095ff;font-weight:bold;">-cheree</span> <span style="color:#898887;"># reuse LHS</span>
1224 <span style="color:#0095ff;font-weight:bold;">^fred^joe</span>             <span style="color:#898887;"># edit previous command replace fred by joe</span>
1225 <span style="color:#0095ff;font-weight:bold;">^php^cfm</span>          <span style="color:#898887;"># modify previous command (good for correcting spellos)</span>
1226 <span style="color:#0095ff;font-weight:bold;">^str1^str2^:G</span>         <span style="color:#898887;"># replace as many as possible</span>
1227 <span style="color:#0095ff;font-weight:bold;">^str1^str2^:u:p</span>       <span style="color:#898887;"># replace str1 by str2 change case and just display</span>
1228 <span style="color:#0057ae;">a</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">(</span><span style="color:#006e28;">**</span>/<span style="color:#006e28;">*</span><span style="color:#ca60ca;">(.D)</span><span style="color:#0057ae;">)</span><span style="font-weight:bold;">;</span><span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">$</span><span style="color:#ca60ca;">#</span><span style="color:#0057ae;">a</span>  <span style="color:#898887;"># count files in a (huge) hierarchy</span>
1229 <span style="color:#0057ae;">a</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">(</span>1 2 3 4<span style="color:#0057ae;">)</span><span style="font-weight:bold;">;</span> <span style="color:#0057ae;">b</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">(</span>a b<span style="color:#0057ae;">)</span><span style="font-weight:bold;">;</span> <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">a</span><span style="color:#ca60ca;">:^</span><span style="color:#bf0303;">b</span><span style="color:#0057ae;">}</span>
1230 <span style="color:#0057ae;">a</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">(</span>a b<span style="color:#0057ae;">)</span><span style="font-weight:bold;">;</span> <span style="color:#0057ae;">b</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">(</span>1 2<span style="color:#0057ae;">)</span><span style="font-weight:bold;">;</span> <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">-l</span> <span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">${</span><span style="color:#0057ae;">a</span><span style="color:#ca60ca;">:^</span><span style="color:#bf0303;">b</span><span style="color:#0057ae;">}</span><span style="color:#bf0303;">&quot;</span><span style="font-weight:bold;">;</span> <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">-l</span> <span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">${${</span><span style="color:#0057ae;">a</span><span style="color:#ca60ca;">:^</span><span style="color:#bf0303;">b</span><span style="color:#0057ae;">}}</span><span style="color:#bf0303;">&quot;</span>
1231 <span style="color:#0057ae;">a</span><span style="color:#ca60ca;">=</span>12345
1232 <span style="color:#0057ae;">aa</span><span style="color:#ca60ca;">[</span><span style="color:#006e28;">(</span><span style="color:#ff5500;">e</span><span style="color:#006e28;">)</span><span style="color:#ca60ca;">*</span><span style="color:#ca60ca;">]</span><span style="color:#ca60ca;">=</span>star
1233 <span style="color:#0057ae;">accum</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">()</span>
1234 <span style="color:#644a9b;font-weight:bold;">alias</span> <span style="color:#bf0303;">'..'</span>=<span style="color:#bf0303;">'cd ..'</span>
1235 <span style="color:#644a9b;font-weight:bold;">alias</span> <span style="color:#0057ae;">-g</span> ...=<span style="color:#bf0303;">'../..'</span>
1236 <span style="color:#644a9b;font-weight:bold;">alias</span> <span style="color:#0057ae;">-g</span> NF=<span style="color:#bf0303;">'*(.om[1])'</span> <span style="color:#898887;"># newest file</span>
1237 <span style="color:#644a9b;font-weight:bold;">alias</span> gcd=<span style="color:#bf0303;">&quot;cd </span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">MCD</span><span style="color:#bf0303;">&quot;</span>  <span style="color:#898887;"># double quote stops once only evaluation</span>
1238 <span style="color:#644a9b;font-weight:bold;">alias</span> mcd=<span style="color:#bf0303;">&quot;MCD=</span><span style="color:#0057ae;">$(</span><span style="color:#644a9b;font-weight:bold;">pwd</span><span style="color:#0057ae;">)</span><span style="color:#bf0303;">&quot;</span>  <span style="color:#898887;"># double quote stops once only evaluation</span>
1239 <span style="color:#0057ae;">anchortext</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">${${(</span><span style="color:#ca60ca;">C</span><span style="color:#0057ae;">)</span><span style="color:#0057ae;">url</span><span style="color:#ca60ca;">//</span><span style="color:#006e28;">[</span><span style="color:#bf0303;">_</span><span style="color:#ca60ca;">-</span><span style="color:#006e28;">]</span><span style="color:#ca60ca;">/</span><span style="color:#bf0303;"> </span><span style="color:#0057ae;">}</span><span style="color:#ca60ca;">:</span><span style="color:#0057ae;">t}</span>  <span style="color:#898887;"># titlecase</span>
1240 <span style="color:#0057ae;">arr</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">(</span>veldt jynx grimps waqf zho buck<span style="color:#0057ae;">)</span>
1241 <span style="color:#0057ae;">array</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">(</span>~/.zshenv ~/.zshrc ~/.zlogout<span style="color:#0057ae;">)</span>
1242 <span style="color:#644a9b;font-weight:bold;">autoload</span> edit-command-line
1243 <span style="color:#644a9b;font-weight:bold;">autoload</span> <span style="color:#0057ae;">-Uz</span> up-line-or-beginning-search
1244 <span style="color:#644a9b;font-weight:bold;">autoload</span> colors <span style="font-weight:bold;">;</span> <span style="color:#0095ff;font-weight:bold;">colors</span>
1245 <span style="color:#644a9b;font-weight:bold;">bindkey</span> <span style="color:#bf0303;">&quot;^N&quot;</span> most-recent-file
1246 <span style="color:#644a9b;font-weight:bold;">bindkey</span> <span style="color:#0057ae;">-s</span> <span style="color:#bf0303;">&quot;^[OS&quot;</span> <span style="color:#bf0303;">&quot;\^d\^c\n&quot;</span>
1247 <span style="color:#644a9b;font-weight:bold;">bindkey</span> <span style="color:#0057ae;">-s</span> <span style="color:#bf0303;">&quot;^[[18~&quot;</span> <span style="color:#bf0303;">&quot;ls -l\n&quot;</span>
1248 <span style="color:#0057ae;">c</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">(</span><span style="color:#006e28;">*</span>.c<span style="color:#0057ae;">)</span> <span style="color:#0057ae;">o</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">(</span><span style="color:#006e28;">*</span>.o<span style="color:#ca60ca;">(N)</span><span style="color:#0057ae;">)</span> <span style="color:#644a9b;font-weight:bold;">eval</span> <span style="color:#bf0303;">'ls ${${c:#(${~${(j:|:)${o:r}}}).c}:?done}'</span>
1249 <span style="color:#644a9b;font-weight:bold;">cd</span> !$:h
1250 <span style="color:#644a9b;font-weight:bold;">cd</span> !<span style="color:#006e28;">?</span>ls
1251 <span style="color:#644a9b;">diff</span> <span style="color:#ca60ca;">&lt;(</span><span style="color:#644a9b;">find</span> / <span style="font-weight:bold;">|</span> <span style="color:#644a9b;">sort</span><span style="color:#ca60ca;">)</span> <span style="color:#ca60ca;">&lt;(</span><span style="color:#644a9b;">cat</span> /var/lib/dpkg/info/<span style="color:#006e28;">*</span>.list <span style="font-weight:bold;">|</span> <span style="color:#644a9b;">sort</span><span style="color:#ca60ca;">)</span>
1252 <span style="color:#0057ae;">dpath</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">${</span><span style="color:#0057ae;">upath</span><span style="color:#ca60ca;">/#</span><span style="color:#0057ae;">\/</span><span style="color:#ff5500;">c</span><span style="color:#0057ae;">\/</span><span style="color:#ca60ca;">/</span>c:/<span style="color:#0057ae;">}</span>          <span style="color:#898887;"># convert /c/path/ to c:\path\</span>
1253 <span style="color:#0057ae;">drive</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">$(</span><span style="font-weight:bold;">[[</span> <span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">LOGNAME</span><span style="color:#bf0303;">&quot;</span> <span style="color:#006e28;">!=</span> davidr <span style="font-weight:bold;">]]</span> <span style="font-weight:bold;">&amp;&amp;</span> <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#bf0303;">'/o'</span> <span style="font-weight:bold;">||</span> <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#bf0303;">'/c'</span><span style="color:#0057ae;">)</span> <span style="color:#898887;"># trad way</span>
1254 <span style="color:#0057ae;">drive</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">${${${</span><span style="color:#0057ae;">LOGNAME</span><span style="color:#ca60ca;">:#</span><span style="color:#bf0303;">davidr</span><span style="color:#0057ae;">}</span><span style="color:#ca60ca;">:+</span>/o<span style="color:#0057ae;">}</span><span style="color:#ca60ca;">:-</span>/c<span style="color:#0057ae;">}</span>                        <span style="color:#898887;"># zsh way</span>
1255 <span style="color:#644a9b;">egrep</span> <span style="color:#0057ae;">-i</span> <span style="color:#bf0303;">&quot;^ *mail\(&quot;</span> <span style="color:#006e28;">**</span>/<span style="color:#006e28;">*</span>.php
1256 <span style="color:#644a9b;font-weight:bold;">eval</span> <span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">1</span><span style="color:#bf0303;">=</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">PWD</span><span style="color:#bf0303;">&quot;</span>
1257 <span style="color:#644a9b;font-weight:bold;">eval</span> <span style="color:#bf0303;">&quot;m=(</span><span style="color:#0057ae;">$(</span><span style="color:#644a9b;">cat</span> <span style="color:#0057ae;">--</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">nameoffile</span><span style="color:#0057ae;">)</span><span style="color:#bf0303;">&quot;</span>
1258 <span style="color:#0095ff;font-weight:bold;">feh</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">FILES</span><span style="color:#ca60ca;">[</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">RANDOM</span><span style="color:#ca60ca;">%</span><span style="color:#0057ae;">$</span><span style="color:#ca60ca;">#</span><span style="color:#0057ae;">FILES</span><span style="color:#ca60ca;">+</span><span style="color:#b08000;">1</span><span style="color:#ca60ca;">]</span>
1259 <span style="color:#0057ae;">foo</span><span style="color:#ca60ca;">=</span><span style="color:#bf0303;">&quot;twinkle twinkle little star&quot;</span> <span style="color:#0057ae;">sub</span><span style="color:#ca60ca;">=</span><span style="color:#bf0303;">&quot;t*e&quot;</span> <span style="color:#0057ae;">rep</span><span style="color:#ca60ca;">=</span><span style="color:#bf0303;">&quot;spy&quot;</span>
1260 <span style="color:#0057ae;">foo</span><span style="color:#ca60ca;">=</span><span style="color:#bf0303;">$'bar</span><span style="color:#0057ae;">\n\n</span><span style="color:#bf0303;">baz</span><span style="color:#0057ae;">\n</span><span style="color:#bf0303;">'</span>
1261 <span style="color:#0057ae;">foo</span><span style="color:#ca60ca;">=</span>fred-goat-dog.jpg
1262 <span style="color:#0057ae;">fred</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">$((</span><span style="color:#b08000;">6</span><span style="color:#ca60ca;">**</span><span style="color:#b08000;">2</span> <span style="color:#ca60ca;">+</span> <span style="color:#b08000;">6</span><span style="color:#0057ae;">))</span>      <span style="color:#898887;"># can do maths</span>
1263 <span style="font-weight:bold;">((</span> <span style="color:#0057ae;">$</span><span style="color:#ca60ca;">#</span> <span style="color:#ca60ca;">==</span> <span style="color:#b08000;">0</span> <span style="font-weight:bold;">))</span><span style="font-weight:bold;">;</span>
1264 <span style="color:#644a9b;font-weight:bold;">[</span> <span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">p1</span><span style="color:#bf0303;">&quot;</span> <span style="color:#006e28;">=</span> <span style="color:#bf0303;">&quot;end&quot;</span> <span style="color:#644a9b;font-weight:bold;">]</span> <span style="font-weight:bold;">||</span> <span style="color:#644a9b;font-weight:bold;">[</span> <span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">p1</span><span style="color:#bf0303;">&quot;</span> <span style="color:#006e28;">=</span> <span style="color:#bf0303;">&quot;-e&quot;</span> <span style="color:#644a9b;font-weight:bold;">]</span>
1265 <span style="color:#644a9b;font-weight:bold;">[</span> <span style="color:#0057ae;">$</span><span style="color:#ca60ca;">#</span> <span style="color:#006e28;">-gt</span> 0 <span style="color:#644a9b;font-weight:bold;">]</span>  <span style="color:#898887;"># parameter cnt &gt; 0 (arguments)</span>
1266 <span style="color:#644a9b;font-weight:bold;">[</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">cnt</span> <span style="color:#006e28;">-eq</span> 1 <span style="color:#644a9b;font-weight:bold;">]</span>
1267 <span style="font-weight:bold;">[[</span> <span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">1</span><span style="color:#bf0303;">&quot;</span> <span style="color:#006e28;">==</span> <span style="color:#006e28;">[</span><span style="color:#bf0303;">0</span><span style="color:#ca60ca;">-</span><span style="color:#bf0303;">9</span><span style="color:#006e28;">]</span> <span style="font-weight:bold;">]]</span>  <span style="color:#898887;"># if $1 is a digit</span>
1268 <span style="font-weight:bold;">[[</span> <span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">p2</span><span style="color:#bf0303;">&quot;</span> <span style="color:#006e28;">==</span> <span style="color:#006e28;">*[</span><span style="color:#bf0303;">a</span><span style="color:#ca60ca;">-</span><span style="color:#bf0303;">zA</span><span style="color:#ca60ca;">-</span><span style="color:#bf0303;">Z</span><span style="color:#006e28;">][</span><span style="color:#bf0303;">a</span><span style="color:#ca60ca;">-</span><span style="color:#bf0303;">zA</span><span style="color:#ca60ca;">-</span><span style="color:#bf0303;">Z</span><span style="color:#006e28;">][</span><span style="color:#bf0303;">a</span><span style="color:#ca60ca;">-</span><span style="color:#bf0303;">zA</span><span style="color:#ca60ca;">-</span><span style="color:#bf0303;">Z</span><span style="color:#006e28;">]*</span> <span style="font-weight:bold;">]]</span>  <span style="color:#898887;"># contains at least 3 letters</span>
1269 <span style="font-weight:bold;">[[</span> <span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">pwd</span><span style="color:#bf0303;">&quot;</span> <span style="color:#006e28;">==</span> <span style="color:#006e28;">*</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">site2</span><span style="color:#006e28;">*</span> <span style="font-weight:bold;">]]</span>
1270 <span style="font-weight:bold;">[[</span> <span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">url</span><span style="color:#bf0303;">&quot;</span> <span style="color:#006e28;">=</span> www<span style="color:#006e28;">*</span> <span style="font-weight:bold;">]]</span> <span style="color:#898887;"># begins with www</span>
1271 <span style="font-weight:bold;">[[</span> <span style="color:#006e28;">-e</span> /c/aam/z<span style="color:#0057ae;">$</span><span style="color:#0057ae;">1</span> <span style="font-weight:bold;">]]</span>  <span style="color:#898887;"># file exists</span>
1272 <span style="color:#0095ff;font-weight:bold;">p1</span> p2 p3
1273 <span style="color:#0095ff;font-weight:bold;">pcre_compile</span> <span style="color:#0057ae;">-m</span> <span style="color:#bf0303;">&quot;\d{5}&quot;</span>
1274 <span style="color:#0095ff;font-weight:bold;">pcre_match</span> <span style="color:#0057ae;">-b</span> <span style="color:#0057ae;">--</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">string</span>
1275 <span style="color:#644a9b;">perl</span> <span style="color:#0057ae;">-ne</span> <span style="color:#bf0303;">'s/(&lt;\/\w+&gt;)/$1\n/g; print'</span> <span style="color:#ca60ca;">&lt;</span> NF <span style="color:#ca60ca;">&gt;</span> <span style="color:#0057ae;">$(</span><span style="color:#644a9b;font-weight:bold;">print</span> NF<span style="color:#0057ae;">)</span>.txt
1276 <span style="color:#644a9b;">ps</span> <span style="color:#0057ae;">-p</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">$</span> <span style="font-weight:bold;">|</span> <span style="color:#644a9b;">grep</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">$</span> <span style="font-weight:bold;">|</span> <span style="color:#644a9b;">awk</span> <span style="color:#bf0303;">'{print $NF}'</span>
1277 <span style="color:#644a9b;font-weight:bold;">r</span> oldstr=newstr
1278 <span style="color:#644a9b;font-weight:bold;">r</span><span style="color:#0057ae;">\m</span> <span style="color:#0057ae;">$(</span><span style="color:#644a9b;">locate</span> nohup.out<span style="color:#0057ae;">)</span>
1279 <span style="color:#644a9b;font-weight:bold;">read</span> <span style="color:#0057ae;">-r</span> <span style="color:#0057ae;">line</span> <span style="color:#ca60ca;">&lt;&amp;</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">fd</span><span style="font-weight:bold;">;</span> <span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">-r</span> <span style="color:#0057ae;">-</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">line</span>
1280 <span style="color:#644a9b;font-weight:bold;">read</span> <span style="color:#0057ae;">ans</span> <span style="font-weight:bold;">;</span> <span style="color:#898887;"># read in a parameter</span>
1281 <span style="color:#644a9b;font-weight:bold;">setopt</span> EXTENDED_GLOB   <span style="color:#898887;"># lots of clever stuff requires this</span>
1282 <span style="color:#644a9b;font-weight:bold;">source</span> <span style="color:#0057ae;">${</span><span style="color:#0057ae;">ZDOTDIR</span><span style="color:#ca60ca;">:-</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">HOME</span><span style="color:#0057ae;">}</span>/.zkbd/<span style="color:#0057ae;">$</span><span style="color:#0057ae;">TERM</span>-<span style="color:#0057ae;">$</span><span style="color:#0057ae;">VENDOR</span>-<span style="color:#0057ae;">$</span><span style="color:#0057ae;">OSTYPE</span>
1283 <span style="color:#644a9b;">ssh</span> <span style="color:#0057ae;">-t</span> root@192.18.001.001 <span style="color:#bf0303;">'sh -c &quot;cd /tmp &amp;&amp; exec zsh -l&quot;'</span>
1284 <span style="color:#644a9b;">ssh</span> 192.168.1.218 <span style="color:#0057ae;">-l</span> root <span style="color:#bf0303;">&quot;zsh -c 'for i (/usr/*(/)) {ls </span><span style="color:#0057ae;">\$</span><span style="color:#bf0303;">i }'&quot;</span>
1285 <span style="color:#0095ff;font-weight:bold;">sshpass</span> <span style="color:#0057ae;">-p</span> myppassword scp <span style="color:#0057ae;">-rp</span> <span style="color:#006e28;">*</span> user@18.128.158.158:<span style="color:#0057ae;">${</span><span style="color:#0057ae;">PWD</span><span style="color:#ca60ca;">/</span><span style="color:#ff5500;">staging</span><span style="color:#ca60ca;">/</span><span style="color:#bf0303;">release</span><span style="color:#0057ae;">}</span>
1286 <span style="color:#0057ae;">str</span><span style="color:#ca60ca;">=</span>aa,bb,cc<span style="font-weight:bold;">;</span><span style="color:#644a9b;font-weight:bold;">print</span> <span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">j:</span><span style="color:#bf0303;">,</span><span style="color:#ca60ca;">:</span><span style="color:#0057ae;">)${(</span><span style="color:#ca60ca;">qq</span><span style="color:#0057ae;">)${(</span><span style="color:#ca60ca;">s:</span><span style="color:#bf0303;">,</span><span style="color:#ca60ca;">:</span><span style="color:#0057ae;">)</span><span style="color:#0057ae;">str</span><span style="color:#0057ae;">}}}</span> <span style="color:#898887;"># quotify a string</span>
1287 <span style="color:#0095ff;font-weight:bold;">tel</span> blenkinsop <span style="font-weight:bold;">|</span> <span style="color:#644a9b;">grep</span> <span style="color:#0057ae;">-o</span> <span style="color:#bf0303;">&quot;[[:alnum:][:graph:]]*@[[:alnum:][:graph:]]*&quot;</span> <span style="color:#898887;"># filter just an email address from a text stream (not zsh)</span>
1288 <span style="color:#644a9b;">touch</span> <span style="color:#0057ae;">{t</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">p}{</span><span style="color:#b08000;">01</span><span style="color:#0057ae;">..</span><span style="color:#b08000;">99</span><span style="color:#0057ae;">}</span>.<span style="color:#0057ae;">{php</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">html</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">c}</span>  <span style="color:#898887;"># generate 600 test files</span>
1289 <span style="color:#644a9b;">touch</span> <span style="color:#0057ae;">{y</span><span style="color:#ca60ca;">,</span><span style="color:#0057ae;">y2}</span>.cfm
1290 <span style="color:#644a9b;font-weight:bold;">trap</span> <span style="color:#0057ae;">-</span> INT
1291 <span style="color:#644a9b;font-weight:bold;">typeset</span> <span style="color:#bf0303;">&quot;aa[one</span><span style="color:#0057ae;">\&quot;</span><span style="color:#bf0303;">two</span><span style="color:#0057ae;">\&quot;</span><span style="color:#bf0303;">three</span><span style="color:#0057ae;">\&quot;</span><span style="color:#bf0303;">quotes]&quot;</span>=QQQ
1292 <span style="color:#644a9b;font-weight:bold;">typeset</span> <span style="color:#0057ae;">-A</span> <span style="color:#0057ae;">aa</span>
1293 <span style="color:#644a9b;font-weight:bold;">typeset</span> <span style="color:#0057ae;">-A</span> <span style="color:#0057ae;">ass_array</span><span style="font-weight:bold;">;</span> <span style="color:#0057ae;">ass_array</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">(</span>one 1 two 2 three 3 four 4<span style="color:#0057ae;">)</span>
1294 <span style="color:#644a9b;font-weight:bold;">typeset</span> <span style="color:#0057ae;">-A</span> <span style="color:#0057ae;">convtable</span>
1295 <span style="color:#644a9b;font-weight:bold;">typeset</span> <span style="color:#0057ae;">-i</span> 16 <span style="color:#0057ae;">y</span>
1296 <span style="color:#644a9b;font-weight:bold;">unsetopt</span> XTRACE VERBOSE
1297 <span style="color:#644a9b;font-weight:bold;">unsetopt</span> localtraps
1298 <span style="color:#0057ae;">upath</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">${</span><span style="color:#0057ae;">wpath</span><span style="color:#ca60ca;">//</span><span style="color:#0057ae;">\\</span><span style="color:#ca60ca;">/</span><span style="color:#0057ae;">\/</span><span style="color:#0057ae;">}</span>              <span style="color:#898887;"># convert backslashes to forward slashes (Dos to Unix</span>
1299 <span style="color:#0057ae;">url</span><span style="color:#ca60ca;">=</span><span style="color:#bf0303;">'www.some.com/some_strIng-HERe'</span>
1300 <span style="color:#0057ae;">val</span><span style="color:#ca60ca;">=</span>a:b:c
1301 <span style="color:#0057ae;">var</span><span style="color:#ca60ca;">=</span>133<span style="font-weight:bold;">;</span><span style="font-weight:bold;">if</span> <span style="font-weight:bold;">[[</span> <span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">var</span><span style="color:#bf0303;">&quot;</span> <span style="color:#006e28;">=</span> <span style="color:#006e28;">&lt;-&gt;</span> <span style="font-weight:bold;">]]</span> <span style="font-weight:bold;">;</span> <span style="font-weight:bold;">then</span> <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">var</span><span style="color:#bf0303;"> is numeric&quot;</span> <span style="font-weight:bold;">;</span><span style="font-weight:bold;">fi</span>
1302 <span style="color:#0057ae;">var</span><span style="color:#ca60ca;">=</span>ddddd<span style="font-weight:bold;">;</span> <span style="font-weight:bold;">[[</span> <span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">var</span><span style="color:#bf0303;">&quot;</span> <span style="color:#006e28;">=~</span> <span style="color:#006e28;">^</span><span style="color:#ff5500;">d</span><span style="color:#006e28;">+</span><span style="color:#ca60ca;">$</span> <span style="font-weight:bold;">]]</span> <span style="font-weight:bold;">&amp;&amp;</span> <span style="color:#644a9b;font-weight:bold;">echo</span> matched <span style="font-weight:bold;">||</span> <span style="color:#644a9b;font-weight:bold;">echo</span> did not match
1303 <span style="color:#0057ae;">var</span><span style="color:#ca60ca;">=</span>dddee<span style="font-weight:bold;">;</span> <span style="color:#0057ae;">regexp</span><span style="color:#ca60ca;">=</span><span style="color:#bf0303;">&quot;^e+$&quot;</span><span style="font-weight:bold;">;</span> <span style="font-weight:bold;">[[</span> <span style="color:#bf0303;">&quot;</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">var</span><span style="color:#bf0303;">&quot;</span> <span style="color:#006e28;">=~</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">regexp</span> <span style="font-weight:bold;">]]</span> <span style="font-weight:bold;">&amp;&amp;</span> <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">regexp</span> matched <span style="color:#0057ae;">$</span><span style="color:#0057ae;">var</span> <span style="font-weight:bold;">||</span> <span style="color:#644a9b;font-weight:bold;">echo</span> <span style="color:#0057ae;">$</span><span style="color:#0057ae;">regexp</span> did not match <span style="color:#0057ae;">$</span><span style="color:#0057ae;">var</span>
1304 <span style="color:#644a9b;font-weight:bold;">vared</span> <span style="color:#0057ae;">-p</span> <span style="color:#bf0303;">&quot;choose 1-3 : &quot;</span> <span style="color:#0057ae;">-c</span> ans
1305 <span style="color:#644a9b;font-weight:bold;">vared</span> PATH
1306 <span style="color:#644a9b;font-weight:bold;">whence</span> <span style="color:#0057ae;">-vsa</span> <span style="color:#0057ae;">${(</span><span style="color:#ca60ca;">k</span><span style="color:#0057ae;">)</span><span style="color:#0057ae;">commands</span><span style="color:#ca60ca;">[</span><span style="color:#006e28;">(</span><span style="color:#ff5500;">I</span><span style="color:#006e28;">)</span>zsh<span style="color:#ca60ca;">*</span><span style="color:#ca60ca;">]</span><span style="color:#0057ae;">}</span>  <span style="color:#898887;"># search for zsh*</span>
1307 <span style="color:#0095ff;font-weight:bold;">widget</span>
1308 <span style="color:#0057ae;">wpath</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">${</span><span style="color:#0057ae;">wpath</span><span style="color:#ca60ca;">//</span><span style="color:#0057ae;">\/</span><span style="color:#ca60ca;">/</span><span style="color:#0057ae;">\\\\</span><span style="color:#0057ae;">}</span>            <span style="color:#898887;"># substitute Unix / with dos \ slashes</span>
1309 <span style="color:#0057ae;">x</span><span style="color:#ca60ca;">=</span><span style="color:#0057ae;">$</span><span style="color:#0057ae;">?</span>
1310 <span style="color:#644a9b;font-weight:bold;">zmodload</span> <span style="color:#0057ae;">-F</span> zsh/stat b:zstat
1311 <span style="color:#644a9b;">zsh</span> <span style="color:#0057ae;">-lxic</span> : <span style="color:#b08000;">2</span><span style="color:#ca60ca;">&gt;</span> <span style="color:#ca60ca;">&gt;(</span><span style="color:#644a9b;">grep</span> <span style="color:#bf0303;">&quot;&gt; alias 'web'&quot;</span><span style="color:#ca60ca;">)</span>
1312 <span style="font-weight:bold;">{</span> <span style="color:#644a9b;">paste</span> <span style="color:#ca60ca;">&lt;(</span><span style="color:#644a9b;">cut</span> <span style="color:#0057ae;">-f1</span> file1<span style="color:#ca60ca;">)</span> <span style="color:#ca60ca;">&lt;(</span><span style="color:#644a9b;">cut</span> <span style="color:#0057ae;">-f3</span> file2<span style="color:#ca60ca;">)</span> <span style="font-weight:bold;">}</span> <span style="color:#ca60ca;">&gt;</span> <span style="color:#ca60ca;">&gt;(</span><span style="color:#0095ff;font-weight:bold;">process</span><span style="color:#ca60ca;">)</span>
1313 </pre></body></html>