#!/bin/sh
_find() {
echo $1
test \! -d "$1" && return
ls -d "$1"/* | while read f ; do
test "$(readlink -e "$1")" = "$(readlink -e "$f")" && continue
echo $f
_find "$f"
done
}
_find ${1:-.}
Dieser Artikel ist Teil der Serie "Shells and related Scripting Languages":
- ~/.bashrc mit Output und scp
- sed ist auch eine Programmiersprache
- Spass mit „awk“
- Minimales „find“ in Bourne Again Shell
- GNU find hat keine Option „-older“ …
- Bourne to Bourne Again Shell Forward Compatibility
- Protokoll meines Vortrags „Bourne Shell“ bei UUGRN e.V.
- Print XDG Desktop Definition for Application
- Find Files by Size given in Bytes
- Using sed or awk to ensure a specific last Line in a Text
- Make a Bourne Again Shell Script Log its Output to a File
- Maintaining Multi-Line „stat“ Formats using Bourne Again Shell
- Print all indented Lines following a non-indented Line