Posted By

xxtjaxx on 11/05/09


Tagged

bashshellcommandlineoptionssed


Versions (?)

find commandline options using sed and grep


 / Published in: Bash
 

This one can also be used together with an if-statement.

  1. #! /bin/bash
  2. URL=$(echo $@ | sed 's:\ :\n:g' | grep "url" | sed 's:\-\-url=::')

Report this snippet  

You need to login to post a comment.