Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 947 Bytes

10-LinuxCommands-BestPractices.md

File metadata and controls

24 lines (17 loc) · 947 Bytes

Linux Best practices

1. some commands default options to use

2. Bash and grep regular expressions

  • grep regular expression [A-Za-z] matches by default accentuated character, it you don't want to match them, use the environment variable LC_ALL=POSIX,
    • Eg: LC_ALL=POSIX grep -E -q '^[A-Za-z_0-9:]+$'
    • I added export LC_ALL=POSIX in all my headers, it can be overridden using a subShell