Oddbean new post about | logout
 nostr:npub1j05dh9hemkteevv6env2ssv6zrlhj9s904zzknsmylqm2p03w4qsxlw8rl nostr:npub1jaxa22f4y8e0wrts9vvdnmfgs7558gqcyr5dkynhu6f7q2xgxmjq36nvuh nostr:npub1wg02ev7lfmnrwsjqu2tcm2qm4gw65aw0dyywfwvgafqnqyf02wmqhht0yf nostr:npub1kwugrw5qdm7qzgw4zduc6g8mj3z0wztn54av9vmth9uks4zdugeqp6qdsv

NF >= 2 && $0=$2’ this check on NF does nothing here, $0=$2 is already false if second field doesn’t exist to deal with whitespace in du output specifically, I guess it makes sense to just remove the first field instead, but then we can’t use that statement as the condition. du -a | awk '/pernias_passwords/{$1=""; print}' or to not match in filesizes: du -a | awk '{$1=""; if(/pernias_passwords/)print}'

on a side note, what I posted before actually won’t fly because of operator precedence. should be awk '($0=$2) && /pernias_passwords/'

ok I’m ready to sleep now gn