Skip to content

Instantly share code, notes, and snippets.

@radimih
Last active November 9, 2022 11:23
Show Gist options
  • Save radimih/45cd50750f36119ee232b183e789729d to your computer and use it in GitHub Desktop.
Save radimih/45cd50750f36119ee232b183e789729d to your computer and use it in GitHub Desktop.
Поиск файлов
find . -type f -iname '*.csproj' -printf '%P\n'

Опция -printf '%P\n' убирает из имени файла начальную точку поиска (в данном случае ./).

Вывести только каталоги в каталоге /etc/containerd/certs.d:

find /etc/containerd/certs.d/ -nowarn -mindepth 1 -maxdepth 1 -type d -printf '%P\n'

Output:

uay.io
k8s.gcr.io
gcr.io
docker.io
mcr.microsoft.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment