Advertisement
Xioth

Bash - TD2 - head.sh

Jan 26th, 2016
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.13 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. if [ $# -ne 1 ]
  4. then
  5.     echo "Ce programme n'accepte que 1 et 1 seul argument"
  6. else
  7.     sed -e "s/^\(.\{$1\}\)/\1/"
  8. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement