We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
device=/dev/mapper/sudo kpartx -va $loopdevice | sed -E 's/.(loop[0-9])p./\1/g' | head -1 这一句话可能导致如果你的loop超过10以后将很报错 你的正则表达式只操作了loop0-loop9 超过将会报错,所以最好改为s/.(loop[0-9]+)p./\1/g 最后是这样 `device=/dev/mapper/`sudo kpartx -va $loopdevice | sed -E 's/.*(loop[0-9]+)p.*/\1/g' | head -1
device=/dev/mapper/
这一句话可能导致如果你的loop超过10以后将很报错 你的正则表达式只操作了loop0-loop9 超过将会报错,所以最好改为s/.(loop[0-9]+)p./\1/g 最后是这样 `device=/dev/mapper/`sudo kpartx -va $loopdevice | sed -E 's/.*(loop[0-9]+)p.*/\1/g' | head -1
The text was updated successfully, but these errors were encountered:
No branches or pull requests
device=/dev/mapper/
sudo kpartx -va $loopdevice | sed -E 's/.(loop[0-9])p./\1/g' | head -1这一句话可能导致如果你的loop超过10以后将很报错 你的正则表达式只操作了loop0-loop9 超过将会报错,所以最好改为s/.(loop[0-9]+)p./\1/g 最后是这样 `device=/dev/mapper/`sudo kpartx -va $loopdevice | sed -E 's/.*(loop[0-9]+)p.*/\1/g' | head -1
The text was updated successfully, but these errors were encountered: