小编Bik*_*Bik的帖子

Bash 在子字符串之后和子字符串之前提取

假设我有一个字符串:

random text before authentication_token = 'pYWastSemJrMqwJycZPZ', gravatar_hash = 'd74a97f
Run Code Online (Sandbox Code Playgroud)

我想要一个 shell 命令来提取下一个 之前"authentication_token = '"和之前的所有内容'

所以基本上,我想回来pYWastSemJrMqwJycZPZ

我该怎么做呢?

string bash grep expression sed

3
推荐指数
1
解决办法
6840
查看次数

标签 统计

bash ×1

expression ×1

grep ×1

sed ×1

string ×1