Search found 2 matches

by Knochnkopf
Mon Oct 25, 2010 4:53 am
Forum: Challenges Solved
Topic: Lower Count
Replies: 20
Views: 1574

Code: Select all

echo 'mQmPtphqGrboHh.....' | awk '{print $0, gsub("[a-z]", ".")}'
by Knochnkopf
Sun Oct 24, 2010 7:56 am
Forum: Challenges Solved
Topic: Valuation
Replies: 103
Views: 9365

I guess this one earns me the award for the most bloated approach: #!/bin/bash file=val.txt i=0 while IFS= read -r -n1 val_char do x_array[i]=$val_char let i++ done < "$file" j=0 array_count=0 while [ ${x_array[j]} != "" ] do if [ ${x_array[j]} != 'x' ] then final_array[$array_co...