Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
anonymousUse committed Mar 8, 2021
1 parent 7e851cb commit 91d2dbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion export_sharecodes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function Cat_Scodes {
for log in $(ls -r); do
case $# in
1)
codes=$(cat ${log} | grep -${Opt} "开始【京东账号|您的(好友)?助力码为" | uniq | perl -0777 -pe "{s|\*||g; s|开始||g; s|\n您的(好友)?助力码为(:)?:? ?|:|g; s|,.+||g}" | perl -ne '{print if /:/}')
codes=$(cat ${log} | grep -${Opt} "开始【京东账号|您的(好友)?助力码为" | uniq | perl -0777 -pe "{s|\*||g; s|开始||g; s|\n您的(好友)?助力码为(:\|:\| )?|:|g; s|,.+||g}" | perl -ne '{print if /:/}')
;;
2)
codes=$(grep -${Opt} $2 ${log} | perl -pe "{s| ||g; s|$2||g}")
Expand Down

0 comments on commit 91d2dbe

Please sign in to comment.