Search Results

Search: Posts Made By: shadowww
3,123
Posted By Scrutinizer
Try: awk -F\* '{cur=$1; gsub(/[^[:alnum:]]/,...
Try:
awk -F\* '{cur=$1; gsub(/[^[:alnum:]]/, "", cur); if (!a[tolower(cur)]++) print}'
or the same a abit shorter:
awk -F\* '{s=$1; gsub(/[^[:alnum:]]/,x,s)} !a[tolower(s)]++'
2,899
Posted By shamrock
Is * the only non alphanumeric character in the...
Is * the only non alphanumeric character in the input file as that makes it easy...but is that really the case as your original post had others...so if you define it clearly a better awk solution can...
2,899
Posted By durden_tyler
$ $ cat f42 "Heh, heh. Those darn ninjas....
$
$ cat f42
"Heh, heh. Those darn ninjas. They're _____."*wacky
The "canebrake", "timber" & "pygmy" are types of what?*rattlesnakes
Science : The second space shuttle was named ------*challenger...
2,899
Posted By shamrock
awk '{s=tolower($0);gsub("[^a-z]","",s);x[s]=$0}...
awk '{s=tolower($0);gsub("[^a-z]","",s);x[s]=$0} END {for(i in x) print x[i]}' file
Showing results 1 to 4 of 4

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