Search Results

Search: Posts Made By: raj100
2,341
Posted By Scrutinizer
You can also write it like this: while read i ...
You can also write it like this:
while read i
do
if id $i >/dev/null 2>&1
then
echo "ID $i exists"
else
echo "$i Does not exist"
fi
done < list
2,341
Posted By methyl
Some changes. Redirect both STDOUT (1) and...
Some changes.
Redirect both STDOUT (1) and STDERR (2).
Change the "for" into a "while" because "for" can break with a large number of arguments.
Save the value of $? immediately after executing...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 08:39 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy