Comments (3)
Probably because -P
is not available in BSD grep (as found on e.g. Macs). And funnily enough, BSD grep does support \d
with -E
.. so the best cross-platform solution is probably ranges. Or keep the two solutions, but explain better.
In any case, the exercise requires knowledge of something that hasn't been teached (\d
or [0-9]
) afaics, so I wonder if it would be good to provide a hint.
from library-shell-deprecated.
@mawds We don't go into Perl at all, and I don't see us going there either so I would rather use terms that are comptaible with the shell, which we are teaching.
from library-shell-deprecated.
Thanks @danmichaelo . I didn't realise it was so different on the Mac!
Character classes are already covered. Extending this to include ranges might be a way of covering the material needed for the exercise? Let me know if you'd like me to submit a PR doing this.
from library-shell-deprecated.
Related Issues (20)
- Review learning outcomes
- Setup is not clear enough HOT 8
- Handout HOT 15
- Add authors to AUTHORS file
- Backup when shell not working
- Episode 1 misspelling of explorer HOT 1
- Wrong command to open file browser on Linux HOT 1
- For loop figure file is missing HOT 1
- Redirection introduced with little explanation
- Some links are not clickable
- Word frequencies not sorted numerically
- Why is there punctuation left in the cleaned file?
- References to non-existent `data` directory
- Unused files in data directory
- Loops need explaining HOT 1
- For loop example output is wrong
- No exercises on loops
- Filenames not explained HOT 1
- LittleWomen example gives incorrect answers HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from library-shell-deprecated.