pidd_sed
This commit is contained in:
parent
3df6f15f0e
commit
7a9ed2ee10
1 changed files with 3 additions and 3 deletions
6
pidd.sh
6
pidd.sh
|
@ -767,9 +767,9 @@ pidd_sed() {
|
|||
if [ -f "${pidd_sed__file}" ]; then
|
||||
pidd_cat "${pidd_sed__file}"
|
||||
for pidd_sed__regex in "${@}"; do
|
||||
sed --in-place "s${pidd_sed__regex}g" "${pidd_sed__file}" \
|
||||
&& pidd_cat "${pidd_sed__file}" \
|
||||
|| exit
|
||||
sed --in-place "s${pidd_sed__regex}g" "${pidd_sed__file}" &&
|
||||
pidd_cat "${pidd_sed__file}" ||
|
||||
exit
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue