Search Results

Search: Posts Made By: lazydev
1,107
Posted By Akshay Hegde
No surprise, data format in post #1 and post #3...
No surprise, data format in post #1 and post #3 are not same

Try this

awk '$1!=p{if(p)print pl; printf $0 OFS}{p=$1; pl=$2}END{print pl}' infile
2,177
Posted By Yoda
What operating system and which mail version? ...
What operating system and which mail version?

Also check your mail manual:
man mail
1,112
Posted By Yoda
Another awk approach: awk -v H="$HOSTNAME" -v...
Another awk approach:
awk -v H="$HOSTNAME" -v U="$USER" 'NR%4{ORS=OFS}!(NR%4){$0=$0 OFS H OFS U;ORS=RS}1' OFS=, 1.sql
Using hostname & whoami commands instead:
awk -v H="$(hostname)" -v...
1,112
Posted By Aia
awk '{printf("%s",NR%4 ?...
awk '{printf("%s",NR%4 ? $0",":$0",ttestsrv01,test1\n")}' 1.sql
1,654
Posted By zaxxon
$> cat mach* awk ' BEGIN{ ...
$> cat mach*
awk '
BEGIN{
printf("%-8s%-15s%-15s%-15s%-15s\n", "Order","Item Code","Quantity","Entry Date","Ordered by")
}
...
Showing results 1 to 5 of 5

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