I want to search only in my files, contains only .txt and .c
This doesn't work for me
ls | grep .txt | grep .c
I want the ls and grep .txt, .c
??Thanks??
I want to search only in my files, contains only .txt and .c
This doesn't work for me
ls | grep .txt | grep .c
I want the ls and grep .txt, .c
??Thanks??
Jump to PostFrom your question above I only managed to understand that, you want to display all the files with '.c' and '.txt' extensions in the current directory . Am I right?
if so then you can do like this in bash:ls *.c *.txt
i.e ls filetypes. '*' …
From your question above I only managed to understand that, you want to display all the files with '.c' and '.txt' extensions in the current directory . Am I right?
if so then you can do like this in bash:
ls *.c *.txt
i.e ls filetypes. '*' is just a wildcard specifier.
If this is not what yo're looking for then you may have to elaborate your question.
From your question above I only managed to understand that, you want to display all the files with '.c' and '.txt' extensions in the current directory . Am I right?
if so then you can do like this in bash:ls *.c *.txt
i.e ls filetypes. '*' is just a wildcard specifier.
If this is not what yo're looking for then you may have to elaborate your question.
Yeah ! it works thanks! sorry for my spelling! =S
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.
You're trying to visit a URL that doesn't currently exist on the web. Most likely, a member posted a link a long time ago to a web page that has since been removed. It's also possible that there was a typo when posting the URL. We redirect you to this notice instead of stripping out the link to preserve the integrity of the post.