Simplfy


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Simplfy
# 8  
Old 10-31-2008
Hammer & Screwdriver

1. Redirection for errors is up to you. With a find command, you may get errors that you would 'count' as hits since they would be lines returned.

2. To count them...
count=`find ./ -size +20k 2>/dev/null | wc -l`
# 9  
Old 10-31-2008
i have tested it with eq 0
doesnt really work
Smilie
# 10  
Old 10-31-2008
ok so i am probably gonna stick redirection for errors way then
Login or Register to Ask a Question

Previous Thread | Next Thread

2 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need help to Simplfy

while ]; do echo "ID format - 000-000-000" read -p "Enter Name: " usrnme read -p "Enter ID: " id if echo $usrnme | grep "^" > /dev/null then vrfy="true" else until ; do ... (2 Replies)
Discussion started by: jafa401
2 Replies

2. Shell Programming and Scripting

simplfy

ls /etc/init.d/rc4.d/ | while read FILE do tput smso echo -n `expr "$FILE" : '\(S.*$\)'` tput rmso echo `expr "$FILE" : '\(K.*$\)'` done this is part of my code i feel that i can simplify this even more but not sure (1 Reply)
Discussion started by: jafa401
1 Replies
Login or Register to Ask a Question