Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
sed -n '10~10p' /input/file > /output/file
[gray]# or if your sed has [b]-i[/b] option[/gray]
sed -i -n '10~10p' /input/file
awk '!(NR%10)' /input/file > /output/file
IFS='
'
KOUNT=0
while read line
do
[[ $KOUNT -eq 0 ]] && echo $line
(( KOUNT += 1 ))
[[ $KOUNT -eq 10 ]] && KOUNT=0
done < infile > outfile
[s](( KOUNT += 1 ))
[[ $KOUNT -eq 10 ]] && KOUNT=0[/s]
((KOUNT=++KOUNT%10))
((KOUNT=(KOUNT+1)%10))
#!/bin/ksh
set -xv
kount=1
while [[ $kount -gt 0 ]]
do
echo $kount
(( kount=++kount%10 ))
done
+ (( kount=++kount%10 ))
+ [[ 1 -gt 0 ]]
+ echo 1
1
+ (( kount=++kount%10 ))
+ [[ 1 -gt 0 ]]
+ echo 1
1
+ (( kount=++kount%10 ))
+ [[ 1 -gt 0 ]]
+ echo 1
1
+ (( kount=++kount%10 ))
+ [[ 1 -gt 0 ]]
+ echo 1