firefox $(grep -i ^url='*' file.url | cut -b 5-)
Extract urls from a *.url
file and open in Firefox. (Note that *.url
files in Windows are basically just text files, so they can be parsed with a few commands.)
grep
extracts lines starting with url=
-i
flag is to ignore casecut
extracts the range of characters from the 5th until the end of lines$(...)
will be used as command line parameters for FirefoxThis only works with URLs that don't contain special characters that would be interpreted by the shell, such as spaces and others.
grep -i url='*' file.url | cut -b 5- | xargs firefox