find commandline options using sed and grep


/ Published in: Bash
Save to your folder(s)

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


Copy this code and paste it in your HTML
  1. #! /bin/bash
  2. URL=$(echo $@ | sed 's:\ :\n:g' | grep "url" | sed 's:\-\-url=::')

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.