Search Results

Search: Posts Made By: summer_cherry
12,875
Posted By summer_cherry
awk 'BEGIN{ str="1,2,3,4,5,6,7,8,9,10" n=0 ...
awk 'BEGIN{
str="1,2,3,4,5,6,7,8,9,10"
n=0
split(str,arr,",")
}
{arr[$0]=0}
END{
for (i in arr)
if(arr[i]!=0)
{
n++
print "num"n"="arr[i]
}
}' file
Showing results 1 to 1 of 1

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