Help:Script Samples: Difference between revisions

Content deleted Content added
Line 202:
 
 
{{Caution|Note that <code>{{eq}}</code> and <code>{{!}}</code> always have to be escaped in templates, the templates <code>&#123;&#123;!&#125;&#125;</code> and <code>&#123;&#123;eq&#125;&#125;</code> have been provided for this purpose, example below requiring this. Also it is not possible to use <code>:</code> for indents, use <code>&#123;&#123;Indent&#125;&#125;</code> template instead as below.}}
 
 
<pre>
{{Indent{{Pre|class=blue-white|# for i in $(diskview -I s {{!}} awk '/Online/{print $2}'); do echo -e "\n::: ${i} :::"; dd if{{eq}}/dev/rpd${i}d bs{{eq}}512 count{{eq}}1 of{{eq}}/pss/cc/o-dsb-${i}.bin; done}}}}
</pre>
{{Indent{{Pre|class=blue-white|# for i in $(diskview -I s {{!}} awk '/Online/{print $2}'); do echo -e "\n::: ${i} :::"; dd if{{eq}}/dev/rpd${i}d bs{{eq}}512 count{{eq}}1 of{{eq}}/pss/cc/o-dsb-${i}.bin; done}}}}