☰
Debian Codegraph
@
0.10.2-1
0.10.1+ds-1
/
/
tests
/
sed-inplace
☽
☼
tests/sed-inplace
code
plain
raw
BSD-3-clause
2006, 2010, 2014-2021 IBM Corporation
debian/copyright
1
#!/usr/bin/env bash
2
3
if [[ "$(uname -s)" =~ (Linux|CYGWIN_NT-) ]]; then
4
sed -i "$1" "$2"
5
else
6
sed -i '' "$1" "$2"
7
fi