---
title: "HP-UX上只查找当前目录下文件列表"
author: "gump.bean"
date: "2010-05-17T15:34:16Z"
tags: ["F#", "HP", "UP"]
categories: ["操作系统"]
slug: "hp-ux"
draft: false
lastmod: "2010-05-17T15:34:16Z"
id: 668122
url: "https://gump-bean.iteye.com/blog/668122"
---

今天发现正在使用的UP-UX的find命令不支持maxdepth选项，
于是解决方法如下：

find . ! -name "." -type d -prune -o -type f -name -print