Rule | RegExp | Description |
---|---|---|
* |
^[^/]+/?$ |
one file/dir name |
** |
^.*/?$ |
multiple file/dir names |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sed_escape() { sed -e 's/[]\/$*.^|[]/\\&/g'; }; | |
replace_env() { | |
local FILE=$1; shift | |
local ENV=$1; shift | |
local VAL=$1 | |
[ -f "$FILE" ] || ( | |
echo "File not found $FILE" >&2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Docker project for antminer-monitor |
Example, how to remove argument from http request.
Replace requests like:
DELETE /v1/path/FILE?multipart-manifest=delete HTTP/1.1"
with:
DELETE /v1/path/FILE?