# Verschiedene Beispiele für die Anwendung von `grep` > [!code]- Extract a URL with grep > Quelle: https://www.baeldung.com/linux/shell-get-url-from-string > ```shell > grep -o 'http[s]\?://[^ ]\+' file_with_link.txt| head -1 > ``` >