[ Skip to the content ]

Institute of Formal and Applied Linguistics Wiki


[ Back to the navigation ]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
user:zeman:prechod-z-tcsh-na-bash [2009/06/10 09:23]
zeman Oprava vzhledu seznamu.
user:zeman:prechod-z-tcsh-na-bash [2009/06/10 22:43]
stepanek
Line 28: Line 28:
  
 <code bash>command > x.out 2> x.err</code> <code bash>command > x.out 2> x.err</code>
 +
  
 ==== Podmínky a smyčky ==== ==== Podmínky a smyčky ====
Line 35: Line 36:
 ''tcsh:'' ''tcsh:''
  
-<code>foreach i (apple pear orange)+<code tcsh>foreach i (apple pear orange)
   echo cp ${i}s.txt my_$i.txt   echo cp ${i}s.txt my_$i.txt
 end end
Line 43: Line 44:
 endif</code> endif</code>
  
-''bash:'' ???+''bash:''
  
 +<code bash>for i in apple pear orange
 +  do echo cp ${i}s.txt my_$i.txt
 +done
 +
 +if [[ -f file.txt ]] ; then
 +  echo 'Oh yes!'
 +fi
 +</code>
  
 ===== Nevyřešené problémy ===== ===== Nevyřešené problémy =====

[ Back to the navigation ] [ Back to the content ]