ls 로 하위 디렉토리에 있는 파일까지 찾을수 있나여?
글쓴이: hys545 / 작성시간: 일, 2005/11/13 - 9:07오후
windows에선
dir /s/b org.eclipse.jdt.core\compiler\*.java
Quote:
c:\work\ikvm\ecj\org.eclipse.jdt.core\compiler\org\eclipse\jdt\internal\compiler\ASTVisitor.java
c:\work\ikvm\ecj\org.eclipse.jdt.core\compiler\org\eclipse\jdt\internal\compiler\ClassFile.java
c:\work\ikvm\ecj\org.eclipse.jdt.core\compiler\org\eclipse\jdt\internal\compiler\CompilationResult.java
c:\work\ikvm\ecj\org.eclipse.jdt.core\compiler\org\eclipse\jdt\internal\compiler\Compiler.java
c:\work\ikvm\ecj\org.eclipse.jdt.core\compiler\org\eclipse\jdt\internal\compiler\ConfigurableOption.java
c:\work\ikvm\ecj\org.eclipse.jdt.core\compiler\org\eclipse\jdt\internal\compiler\DefaultErrorHandlingPolicies.java
c:\work\ikvm\ecj\org.eclipse.jdt.core\compiler\org\eclipse\jdt\internal\compiler\ICompilerRequestor.java
c:\work\ikvm\ecj\org.eclipse.jdt.core\compiler\org\eclipse\jdt\internal\compiler\IDebugRequestor.java
c:\work\ikvm\ecj\org.eclipse.jdt.core\compiler\org\eclipse\jdt\internal\compiler\IErrorHandlingPolicy.java
c:\work\ikvm\ecj\org.eclipse.jdt.core\compiler\org\eclipse\jdt\internal\compiler\IProblemFactory.java
c:\work\ikvm\ecj\org.eclipse.jdt.core\compiler\org\eclipse\jdt\internal\compiler\ast\AND_AND_Expression.java
c:\work\ikvm\ecj\org.eclipse.jdt.core\compiler\org\eclipse\jdt\internal\compiler\ast\ASTNode.java
c:\work\ikvm\ecj\org.eclipse.jdt.core\compiler\org\eclipse\jdt\internal\compiler\ast\AbstractMethodDeclaration.java
c:\work\ikvm\ecj\org.eclipse.jdt.core\compiler\org\eclipse\jdt\internal\compiler\ast\AbstractVariableDeclaration.java
c:\work\ikvm\ecj\org.eclipse.jdt.core\compiler\org\eclipse\jdt\internal\compiler\ast\AllocationExpression.java
c:\work\ikvm\ecj\org.eclipse.jdt.core\compiler\org\eclipse\jdt\internal\compiler\ast\Annotation.java
c:\work\ikvm\ecj\org.eclipse.jdt.core\compiler\org\eclipse\jdt\internal\compiler\ast\AnnotationMethodDeclaration.java
c:\work\ikvm\ecj\org.eclipse.jdt.core\compiler\org\eclipse\jdt\internal\compiler\ast\Argument.java
c:\work\ikvm\ecj\org.eclipse.jdt.core\compiler\org\eclipse\jdt\internal\compiler\ast\ArrayAllocationExpression.java
c:\work\ikvm\ecj\org.eclipse.jdt.core\compiler\org\eclipse\jdt\internal\compiler\ast\ArrayInitializer.java
c:\work\ikvm\ecj\org.eclipse.jdt.core\compiler\org\eclipse\jdt\internal\compiler\ast\ArrayQualifiedTypeReference.java
c:\work\ikvm\ecj\org.eclipse.jdt.core\compiler\org\eclipse\jdt\internal\compiler\ast\ArrayReference.java
c:\work\ikvm\ecj\org.eclipse.jdt.core\compiler\org\eclipse\jdt\internal\compiler\ast\ArrayTypeReference.java
c:\work\ikvm\ecj\org.eclipse.jdt.core\compiler\org\eclipse\jdt\internal\compiler\ast\AssertStatement.java
c:\work\ikvm\ecj\org.eclipse.jdt.core\compiler\org\eclipse\jdt\internal\compiler\ast\Assignment.java
c:\work\ikvm\ecj\org.eclipse.jdt.core\compiler\org\eclipse\jdt\internal\compiler\ast\BinaryExpression.java
c:\work\ikvm\ecj\org.eclipse.jdt.core\compiler\org\eclipse\jdt\internal\compiler\ast\Block.java
c:\work\ikvm\ecj\org.eclipse.jdt.core\compiler\org\eclipse\jdt\internal\compiler\ast\BranchStatement.java
c:\work\ikvm\ecj\org.eclipse.jdt.core\compiler\org\eclipse\jdt\internal\compiler\ast\BreakStatement.java
c:\work\ikvm\ecj\org.eclipse.jdt.core\compiler\org\eclipse\jdt\internal\compiler\ast\CaseStatement.java
c:\work\ikvm\ecj\org.eclipse.jdt.core\compiler\org\eclipse\jdt\internal\compiler\ast\CastExpression.java
c:\work\ikvm\ecj\org.eclipse.jdt.core\compiler\org\eclipse\jdt\internal\compiler\ast\CharLiteral.java
c:\work\ikvm\ecj\org.eclipse.jdt.core\compiler\org\eclipse\jdt\internal\compiler\ast\ClassLiteralAccess.java
c:\work\ikvm\ecj\org.eclipse.jdt.core\compiler\org\eclipse\jdt\internal\compiler\ast\Clinit.java
c:\work\ikvm\ecj\org.eclipse.jdt.core\compiler\org\eclipse\jdt\internal\compiler\ast\CompilationUnitDeclaration.java
c:\work\ikvm\ecj\org.eclipse.jdt.core\compiler\org\eclipse\jdt\internal\compiler\ast\CompoundAssignment.java
c:\work\ikvm\ecj\org.eclipse.jdt.core\compiler\org\eclipse\jdt\internal\compiler\ast\ConditionalExpression.java
c:\work\ikvm\ecj\org.eclipse.jdt.core\compiler\org\eclipse\jdt\internal\compiler\ast\ConstructorDeclaration.java
c:\work\ikvm\ecj\org.eclipse.jdt.core\compiler\org\eclipse\jdt\internal\compiler\ast\ContinueStatement.java
c:\work\ikvm\ecj\org.eclipse.jdt.core\compiler\org\eclipse\jdt\internal\compiler\ast\DoStatement.java
c:\work\ikvm\ecj\org.eclipse.jdt.core\compiler\org\eclipse\jdt\internal\compiler\ast\DoubleLiteral.java
c:\work\ikvm\ecj\org.eclipse.jdt.core\compiler\org\eclipse\jdt\internal\compiler\ast\EmptyStatement.java
c:\work\ikvm\ecj\org.eclipse.jdt.core\compiler\org\eclipse\jdt\internal\compiler\ast\EqualExpression.java
c:\work\ikvm\ecj\org.eclipse.jdt.core\compiler\org\eclipse\jdt\internal\compiler\ast\ExplicitConstructorCall.java
c:\work\ikvm\ecj\org.eclipse.jdt.core\compiler\org\eclipse\jdt\internal\compiler\ast\Expression.java
c:\work\ikvm\ecj\org.eclipse.jdt.core\compiler\org\eclipse\jdt\internal\compiler\ast\ExtendedStringLiteral.java
c:\work\ikvm\ecj\org.eclipse.jdt.core\compiler\org\eclipse\jdt\internal\compiler\ast\FalseL
이렇게 얻을수 있는데
리녹스에서 ls 로 가능한지 궁금
아니면 다른거로도 가능한지
Forums:
find /mnt/c/work/ikvm/ecj/org.eclipse.jd
find /mnt/c/work/ikvm/ecj/org.eclipse.jdt.core/compiler/ -name '*.java'
ls 의 -R 옵션과 grep을 이용해도 되조
ls 의 -R 옵션과 grep을 이용해도 되조
VENI, VIDI, VICI - Caesar, Gaius Julius -
단순히 ls -R | grep '.java'를 했을 경우 path를 볼
단순히 ls -R | grep '.java'를 했을 경우 path를 볼 수 없었습니다. 다른 방법이 있는 건가요..?
좀 보기는 안좋지만 du를 써보는건 어떨까요?[code:1
좀 보기는 안좋지만
du를 써보는건 어떨까요?
du -a | grep '.java'
파일 크기가 나와서 좀 보기가 안 좋네요...
du -a | grep -F '.java' | awk '{ print $
du -a | grep -F '.java' | awk '{ print $2 }'
awk 대신에 좀 더 빠른 awk프로그램을 사용하셔도 됩니다.
댓글 달기