Xioth

Bash - TD2 - html.sh

Jan 26th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.14 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 -n "s/<title>\(.*\)<\/title>/\1/p" $1
  8. fi
Add Comment
Please, Sign In to add comment