Help for this page

Select Code to Download


  1. or download this
        $ echo "hello" > data1
        $ echo "world" > data2
    ...
        $ < $file | wc -l
        bash: $file: ambiguous redirect
              0
    
  2. or download this
        FILES="file1 file2 file3 file4 file5"
        for file in $FILES
        do  ... something with $file ...
        done
    
  3. or download this
    paths='/bin /usr/bin /usr/local/bin /usr/ucb /usr/local /usr/lbin'
    paths="$paths /opt/bin /opt/local/bin /opt/local /opt/lbin"
    ...
            *) test -d $p && PATH=$PATH$p_$p ;;
            esac
    done