sed -i "s/\bforceencrypt=/encryptable=/g;s/\bforcefdeorfbe=/encryptable=/g;s/\b,encryptable=footer//" "$fstab"
한동안 Android에서 암호화를 비활성화하기 위해 이 명령을 해독하려고 노력했지만 알 수 없습니다.
답변1
정보 sed에서 :
's/REGEXP/REPLACEMENT/[FLAGS]'
(substitute) Match the regular-expression against the content of
the pattern space. If found, replace matched string with
REPLACEMENT.
The 's' command can be followed by zero or more of the following
FLAGS:
'g'
Apply the replacement to _all_ matches to the REGEXP, not just the
first.
'NUMBER'
Only replace the NUMBERth match of the REGEXP.
...................................................................
Command Line Options:
'-i[SUFFIX]'
'--in-place[=SUFFIX]'
This option specifies that files are to be edited in-place. GNU
'sed' does this by creating a temporary file and sending output to
this file rather than to the standard output.(1).