Search Results

Search: Posts Made By: prash184u
5,003
Posted By bartus11
Well in my Solaris 10 environment, i had to do...
Well in my Solaris 10 environment, i had to do this to make it work:
nawk 'BEGIN{RS=""}{system("echo \""$0"\" |sort -n -t- -k2");print ""}' file
5,003
Posted By Corona688
Before you can sort it, you must first break them...
Before you can sort it, you must first break them into separate groups.

---------- Post updated at 01:57 PM ---------- Previous update was at 01:46 PM ----------

This is a bit of a kludge since...
5,003
Posted By felipe.vinturin
Another way: sed '/^$/d' TestGroup.txt | \ ...
Another way:

sed '/^$/d' TestGroup.txt | \
gawk 'BEGIN{arrayIndex=0}
{
if($1 == "Reason")
{
if(arrayIndex != 0)
{
arrayElements = asort(myArray)
for(i=1; i <= arrayElements;...
5,003
Posted By ygemici
while read -r l; do if [[ "$l" != "" ]] ; then...
while read -r l; do if [[ "$l" != "" ]] ; then echo "$l">>tmp ; else sort -t- -k2n tmp; echo "" ; rm -f tmp ; fi ; done<infile ; more tmp ; rm -f tmp
Reason : ABC
12345-0023
32442-5333
32123-5400...
8,277
Posted By durden_tyler
$ $ $ cat -n f1 1 MT:Exception caught...
$
$
$ cat -n f1
1 MT:Exception caught
2 The following Numbers were affected:
3 1234
4 2345
5 2346
6
7 Error
8 java.lang.InternalError: Can't...
Showing results 1 to 5 of 5

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