~ubuntu-branches/ubuntu/trusty/abs-guide/trusty-proposed

« back to all changes in this revision

Viewing changes to abs/for-loopcmd.sh

  • Committer: Package Import Robot
  • Author(s): Sandro Tosi
  • Date: 2012-06-03 10:57:27 UTC
  • mfrom: (1.2.6)
  • Revision ID: package-import@ubuntu.com-20120603105727-rm7frl4feikr2swm
Tags: 6.5-1
* New upstream release
* debian/watch
  - updated
* debian/abs-guide.lintian-overrides
  - updated for new upstream code
* debian/control
  - bump Standards-Version to 3.9.3 (no changes needed)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/bash
2
 
#  for-loopcmd.sh: for-loop with [list]
3
 
#+ generated by command substitution.
4
 
 
5
 
NUMBERS="9 7 3 8 37.53"
6
 
 
7
 
for number in `echo $NUMBERS`  # for number in 9 7 3 8 37.53
8
 
do
9
 
  echo -n "$number "
10
 
done
11
 
 
12
 
echo 
13
 
exit 0