Search Results

Search: Posts Made By: natasha
1,713
Posted By malcomex999
Assuming n is a sequence of numbers and just a...
Assuming n is a sequence of numbers and just a single letter C before the n...
awk '{arr[$1]=$2;K=$1}END{
for(i in arr){
gsub(/C/,"",K)
I=i;gsub(/C/,"",i)
if(i<=K) print...
2,063
Posted By Franklin52
Try: awk '{print $1, ++a[$1]}' file
Try:
awk '{print $1, ++a[$1]}' file
Showing results 1 to 2 of 2

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