Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialSebastian Eguez
8,248 Pointshello.txt is NOT working
I type:
grep this hello.txt
and nothing.
I type:
grep e hello.txt
and nothing.
I type:
cat hello.txt
and nothing..
hello.txt DOES appear when I type "ls -l".
What's going on?
1 Answer
geoffrey
28,736 PointsAre you doing it within the treehouse workspace or on your on computer which is running a unix system ? This might seem silly as question, but on my side, I've just launched the treehouse workspace linked to this particular video and indeed when I type the command :
ls -l
I have as output, documents & hello.txt, so the grep command is working well to retrieve the words I want to find within the file when I use it.
However if you are on your own machine, be sure the hello.txt is filled with some text... Maybe you 've forgotten this step. Maybe you could try to launch another treehouse workspace, or simple create a new file within it, fill it with some text, and try again the grep command...
Sebastian Eguez
8,248 PointsSebastian Eguez
8,248 PointsI'm within Treehouse.
I tried using the console on different browsers too.
Please help me.