Home > OS >  Linux use command capture specific characters from the log file and output
Linux use command capture specific characters from the log file and output

Time:11-08

Would like to ask a great god, and I now have a log document, want to extract the specific name is full of English capital, had better not sed, awk.
Only use grep can finish, thank you!

Output format name:

The log file: https://uowmailedu-my.sharepoint.com/:t:/r/personal/nhs981_uowmail_edu_au/Documents/NASA_access_log_Aug95.txt? CSF=1 & amp; Web=1 & amp; E=MfrRfe

CodePudding user response:

Can't see the log, not clear format
Can try to grep -o '[a-z] *'
  • Related