Search Results

Search: Posts Made By: aksin
2,357
Posted By RudiC
Tryawk '$1 != tmp1 { ...
Tryawk '$1 != tmp1 {
if (NR>1) printf "%s),\n", tmp2;
printf "%s = (%s -", $1, $2
}
{tmp1=$1; tmp2=$2}
...
2,357
Posted By pamu
sort -nk2 < file | awk '{if(!x[$1]++){ ...
sort -nk2 < file | awk '{if(!x[$1]++){
if(s){print s,p;s=$1" = ( "$2" - "}else{s=$1" = ( "$2" - "}}
else{p=$2"),"}}END{print s,p}'
2,141
Posted By ctsgnb
sed 's/\([^[:alpha:]]*\)\(.*\)/\2 \1/' yourfile
sed 's/\([^[:alpha:]]*\)\(.*\)/\2 \1/' yourfile
2,141
Posted By jayan_jay
Based on the input given .. $ nawk...
Based on the input given ..

$ nawk '{sub(/[A-Z]/,"\n&")};1' infile | nawk 'ORS=/^[0-9]/?"\n":" "'
Showing results 1 to 4 of 4

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