#!/bin/bash if [ "$#" != "1" ] ; then echo "Usage FULL-SELECT-EVERY-N.sh " >&2 exit 1 fi num=$1 sed -n "1~${num}p" full-file-listing.txt > full-file-listing-step${num}.txt