about summary refs log blame commit diff stats
path: root/scripts/cfg_path.sh
blob: 321f5b93c2b5ae5c994fc06481f1a3cd411213b2 (plain) (tree)
1
2
3
4
5




                                                                                                 
#!/bin/sh
# Use this script for substituting the configured path into lynx.cfg -
# not all paths begin with a slash.
SECOND=`echo "$2" | sed -e 's,^/,,'`
sed -e "/^[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_]*:file:/s,/PATH_TO/$1,/$SECOND,"