Saturday, June 7, 2008

Alternate Solution To My Search Program

Found an alternative way that will do the same thing that my program do. By using find command in Linux, U still can print out a list of search result into a file. If U are using Windows, try to get a copy of Cygwin, U will get the Linux command too.

Usage:
find My_Path >> Desired_output

eg:
find C:\Test >> test.txt

Output:
c:\test
c:\test\a.txt
c:\test\b.cpp

Disadvantage:
print out unwanted directory name, like c:\test.

Conclusion:
Need to figure it out how can I make a filter on the unwanted 'thing'.

No comments: