title: printing line numbers that are multiple of 5
body: <p>Hi I am trying to print/echo line numbers that are multiple of 5. I am doing this in shell script. I am getting errors and unable to proceed. below is the script </p>
  
  <pre><code>#!/bin/bash
  x=0
  y=$wc -l $1
  while [ $x -le $y ]
  do
    sed -n `$x`p $1
    x=$(( $x + 5 ))
  done
  </code></pre>
  
  <p>When executing above script i get below errors</p>
  
  <pre><code>#./echo5.sh sample.h
  ./echo5.sh: line 3: -l: command not found
  ./echo5.sh: line 4: [: 0: unary operator expected
  </code></pre>
  
  <p>Please help me with this issue.</p>