Search Results

Search: Posts Made By: cratercrabs
5,658
Posted By Corona688
awk '/^#EOF/ { if($NF != (NR-2)) exit 1 }'...
awk '/^#EOF/ { if($NF != (NR-2)) exit 1 }' filename ||
echo "Filename has wrong number of records"
3,899
Posted By Peasant
chkfilez () { for i in $1/$2; do test -f $i...
chkfilez () {
for i in $1/$2; do
test -f $i && printf "$i found \n" || printf "$i not found \n"
done
}

chkfilez "$HOME" "*.txt"


Will look for "*.txt" files in $HOME directory, supports...
Showing results 1 to 2 of 2

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