Why cant cat*.java does not get all the files listed

  • Thread starter Yadagiri Rao KP
  • Start date
Y

Yadagiri Rao KP

Why cant cat*.java does not get all the files listed .If we do type
cat *.java on linux machine we get the file contents but not the list
of files.Why??
 
C

Christophe Vanfleteren

Yadagiri said:
Why cant cat*.java does not get all the files listed .If we do type
cat *.java on linux machine we get the file contents but not the list
of files.Why??

Not exaclty a java question but shouldn't you try "ls *.java" instead?
 
C

Chris Smith

Yadagiri said:
Why cant cat*.java does not get all the files listed .If we do type
cat *.java on linux machine we get the file contents but not the list
of files.Why??

Because that's not what "cat" does? If you want a list of files, use ls
instead.

--
www.designacourse.com
The Easiest Way to Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
 
J

Joseph Millar

Just
because it's called the same as the CP/M command for listing
directories doesn't mean it does the same.

Wow...CP/M...that brings back memories of my very first
PC.

--Joe
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top