Web Development | Hosting & Maintenance | Digital & Print Design
🚀 Based in BC, working globally. 🌎
https://rogueninja.com
Come on, YouTube!
#BadDesign #YouTube #UI #UX
Come on, YouTube!
#BadDesign #YouTube #UI #UX
#CommandLine #CodeNewbie #CodeTips
#CommandLine #CodeNewbie #CodeTips
1. Create the file and add an RTF colour header.
2. Process the grep output and format it with file paths, line numbers, and content.
3. Close the .rtf file.
See image for commands
1. Create the file and add an RTF colour header.
2. Process the grep output and format it with file paths, line numbers, and content.
3. Close the .rtf file.
See image for commands
grep -Erin 'to[- ]?do' * | while IFS=: read -r file line content; do printf "\033[1;34m%-40s\033[0m:\033[1;32m%-5s\033[0m:\033[1;37m%s\033[0m\n" "$file" "$line" "$content"; done
grep -Erin 'to[- ]?do' * | while IFS=: read -r file line content; do printf "\033[1;34m%-40s\033[0m:\033[1;32m%-5s\033[0m:\033[1;37m%s\033[0m\n" "$file" "$line" "$content"; done
grep -Erin 'to[- ]?do' *
Flags:
-n: Displays line numbers alongside matches.
grep -Erin 'to[- ]?do' *
Flags:
-n: Displays line numbers alongside matches.
grep -Eri 'to[- ]?do' --include=\*.{css,vue} *
This searches only .css and .vue files for matches.
grep -Eri 'to[- ]?do' --include=\*.{css,vue} *
This searches only .css and .vue files for matches.
`grep -Eri 'to[- ]?do' *`
Flags:
-E: Extended regex (matches TODO, to-do, or to do).
-r: Search recursively.
-i: Case-insensitive search.
`grep -Eri 'to[- ]?do' *`
Flags:
-E: Extended regex (matches TODO, to-do, or to do).
-r: Search recursively.
-i: Case-insensitive search.
grep -r 'todo' *
grep -r 'todo' *
grep 'todo' *
But this will return errors for subdirectories (ex. "grep: assets: Is a directory").
To skip subdirectories, use the `-d skip` option:
grep -d skip 'todo' *
grep 'todo' *
But this will return errors for subdirectories (ex. "grep: assets: Is a directory").
To skip subdirectories, use the `-d skip` option:
grep -d skip 'todo' *
`grep 'todo' *.vue`
This searches for 'todo' in all .vue files in the current directory.
`grep 'todo' *.vue`
This searches for 'todo' in all .vue files in the current directory.
Run `tree --help` to see the full list of options available.
#CommandLine #CodeNewbie #CodingTips
Run `tree --help` to see the full list of options available.
#CommandLine #CodeNewbie #CodingTips
#CommandLine #CodeNewbie #CodingTips
#CommandLine #CodeNewbie #CodingTips
Hardcode dev secrets in runtimeConfig—Nuxt replaces them with production env vars automatically. Example: apiSecret: "devSecret" is replaced by NUXT_API_SECRET in production.
#Nuxt3 #WebDevTips #Coding
Hardcode dev secrets in runtimeConfig—Nuxt replaces them with production env vars automatically. Example: apiSecret: "devSecret" is replaced by NUXT_API_SECRET in production.
#Nuxt3 #WebDevTips #Coding