From 45131d247c34e18cc4ca4f7387a247c6c0c6cc77 Mon Sep 17 00:00:00 2001 From: Alexander Wirt Date: Sun, 7 Oct 2007 00:21:36 +0200 Subject: [PATCH] better example for 'Show me all the .c files for which there doesn't exist a .o' --- zsh-lovers.1.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh-lovers.1.txt b/zsh-lovers.1.txt index fea037f..7394eee 100644 --- a/zsh-lovers.1.txt +++ b/zsh-lovers.1.txt @@ -221,7 +221,7 @@ See ``man 1 zshexpn | less -p'' Qualifiers for details. fi # Show me all the .c files for which there doesn't exist a .o file. - $ c=(*.c) o=(*.o(N)) eval 'ls ${${c:#(${~${(j:|:)${o:r}}}).c}:?done}' + $ print *.c(e_'[[ ! -e $REPLY:r.o ]]'_) # All files in /var/ that are not owned by root $ ls -ld /var/*(^u:root) -- 2.1.4