Fwd: Re: bash history cleanup

2016-05-11 Thread Ron Catterall

Craig
Had a look last night.  This fortran code attached will do exactly what 
you want.

Ron



Craig
Sounds like a job for Perl.  Should be straightforward, then BBedit run 
Perl script if you want to do it in BBedit.

Ron

On 05/08/2016 11:57 AM, Craig Maynard wrote:

I'd like to use BBEdit to periodically do the following:

• Find all occurrences of duplicate lines in my .bash_history file.
• Remove the duplicates and then re-order the remaining lines by 
frequency, with the most frequent at the end of the file.


If anyone has done this before, can you suggest a good way to proceed?

Thanks,
Craig

--
This is the BBEdit Talk public discussion group. If you have a
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 

---
You received this message because you are subscribed to the Google 
Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to bbedit+unsubscr...@googlegroups.com 
.
To post to this group, send email to bbedit@googlegroups.com 
.




--
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email

"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 

--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
!gfortran -o new.o testbashhist.f95
program testbashhist
integer, parameter :: out=0   !=0 for min. output
integer, parameter :: maxlinlen=500!max length of a line
integer, parameter :: ird=5   !logical no. read terminal
integer, parameter :: ipr=6   !logical no. write terminal
integer, parameter :: Runit=7 !logical no. of input file
integer, parameter :: Wunit=8 !logical no. of output file
integer, allocatable, dimension(:) :: lenlin  !no. of chars in line
integer, allocatable, dimension(:) :: num !no. of times for duplicates
character(len=maxlinlen), allocatable, dimension(:) :: uniqlin !unique lines as read
character(len=maxlinlen)   :: curlin  !current line as used
character(len=maxlinlen)   :: curlinx !current line as read
character(len=maxlinlen)   :: tempfil !filename as read
character(len=maxlinlen)   :: filename!filename as used
character(len=1)   :: yn  !query, write a file?
integer:: lines   !no. of lines read
integer:: countlin!no. unique lines
integer:: maxnumlin!number of lines in file
integer:: countdup!count duplicate lines
integer:: dupoint !back pointer for duplicates
integer:: Rerr!read file error
integer:: Werr!write file error
logical:: Ropen   !check read file open
logical:: Wopen   !check write file open
integer:: i   !loops over lines read
integer:: j   !loops over unique lines
integer:: k   !print loop variable
integer:: nlins   !no. lines in file
integer:: eof !end of file code
integer:: l1  !length of filename
integer:: l2  !length of line read
write (ipr, '(1x,a)', advance='no') 'filename to read :> '
read (ird,*) tempfil
tempfil=adjustl(tempfil)
l1=len_trim(tempfil)
filename(1:l1)=tempfil(1:l1)
write (ipr, '(1x,2a)') 'read from filename: ', filename(1:l1)
open(unit=Runit, iostat=Rerr, file=filename(1:l1), status='old',&
access='sequential', blank='null', form='formatted', action='read')
if (Rerr.ne.0) then
write (ipr, '(1x,3a,i0,a,i0)') 'failed to open file: ',&
filename(1:l1), ' on unit ', Runit, 'Rerr=', Rerr
inquire(unit=Runit, opened=Ropen)
if (Ropen .eqv. .true.) then
write (ipr, '(1x,3a,i0,a)') 'file: ', filename(1:l1),&
' on unit ', Runit, ' still open'
close (unit=Runit, status='keep')  
write (ipr, '(1x,a6,a,a9,i0,a7)') 'file: ', filename(1:l1),&
   

[ANN] BBEdit 11.6 (3913) pre-release

2016-05-11 Thread Rich Siegel

Good afternoon folks,

We're working on an update to BBEdit 11 which will add some new 
features and address a few recently reported issues.


Note that this is a _pre-release_ version. The intent is to fix 
bugs and address areas of improvement based on what our 
customers have reported. However, since the software is at this 
point not fully tested, there _may_ be bugs and regressions. If 
this prospect makes you nervous, then sticking with the public 
release versions is your best course of action. Nobody will be 
offended if you choose to do so; you're under no obligation to 
install and use anything but a public release. :-)


Following is a summary of changes since the most recent 
pre-release (whose own notes are here: ).


The change notes are organized into additions, changes, and 
fixes, and are annotated where appropriate with case numbers. So 
if you recognize a number corresponding to a support case that 
was opened for you, you can now verify that it's been fixed 
correctly. Please take the time to review the changes before 
using the new build -- it'll be worth your time.


One final note: If you run into a bug in a pre-release version, 
PLEASE DO NOT REPORT THE BUG TO THE LIST. This includes asking 
about whether others have seen the same problem. Instead, please 
send a bug report to  and we will deal 
with it there. This will help us keep the list discussion on 
topic and productive for all list members.




version 11.6 (3913) (2016-05-11)

Additions
-

o   (none in this build)

Changes
---

*   [NFR] If the insertion point (or start of the selection range)
is not in a function but the document contains function-menu
items, the function popup in the navigation bar will now indicate
"(no function selected)". If the document has no function-menu
items, the function popup will read "(functions)" as before.

*   Made a change so that Option-clicking in the close box of a
window behaves as though you had pressed Command-Option-W to
close all of whatever is appropriate. In practical terms, this
means that it's more like "Close All Documents" when a document
window is in front, which is more useful since it won't prompt
you to close each multi-document window with a sheet.

Fixes
-

*   [NFR] Fixed a regression in character-escape conversion for
search strings in some situations.

*   [322148] Corrected escaping of line breaks in the Text Factory
"Replace All" options sheet.

*   [322129] Worked around a pathological behavior in the OS which
would cause the file info popover to take minutes to appear in
some situations (in particular, when Active Directory services
are in use).

*   [319618, 322122] Fixed a bug in which canceling a multi-file
search/replace or Text Factory operation would leave some
internal bookkeeping undone; after enough uptime this would cause
future operations to stall while waiting for a condition which
would never be satisfied.

==end==

The package can be downloaded from our web server:



Regards,

Rich Siegel
==
Bare Bones Software, Inc. 

--
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email

"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 

--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.


Re: Vertical selection disappeared?

2016-05-11 Thread Morbus Iff
> You’ve probably already checked this, but I always used to get tripped up by 
> the fact that vertical/rectangular selection doesn’t work if text wrapping is 
> turned in. Hope this helps.

Doh! Yep, that was it.

And thanks for “rectangular selection” as the right phrase.

-- 
Morbus Iff ( god less america )
http://www.disobey.com/ and http://www.disobey.com/wiki/
twitter: @morbusiff / skype: morbusiff / irc.freenode.net, Morbus

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.


Anchor command

2016-05-11 Thread Maurizio Pistone
BBEdit 11.5.2 Inline -> Anchor ^⌘A command seems not to recognize any more 
e-mail addresses

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.


Re: Vertical selection disappeared?

2016-05-11 Thread Sam Hathaway
You’ve probably already checked this, but I always used to get tripped 
up by the fact that vertical/rectangular selection doesn’t work if 
text wrapping is turned in. Hope this helps.

-sam

On 11 May 2016, at 2:59 PM EDT, Morbus Iff wrote:

Did I miss something or has vertical selection disappeared from 
BBEdit?


I recall, I thought, once being able to hold down Option (or 
something) and be able to select columns of text vs. rows of text. But 
that doesn’t seem to work anymore, nor did a search for “vertical 
select” bring up any relevant results in the User Manual.


--
Morbus Iff ( cheese and rice saves )
http://www.disobey.com/ and http://www.disobey.com/wiki/
twitter: @morbusiff / skype: morbusiff / irc.freenode.net, Morbus

--
This is the BBEdit Talk public discussion group. If you have a
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 

---
You received this message because you are subscribed to the Google 
Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to bbedit+unsubscr...@googlegroups.com.

To post to this group, send email to bbedit@googlegroups.com.


--
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email

"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 

--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.


Vertical selection disappeared?

2016-05-11 Thread Morbus Iff

Did I miss something or has vertical selection disappeared from BBEdit?

I recall, I thought, once being able to hold down Option (or something) and be 
able to select columns of text vs. rows of text. But that doesn’t seem to work 
anymore, nor did a search for “vertical select” bring up any relevant results 
in the User Manual.

-- 
Morbus Iff ( cheese and rice saves )
http://www.disobey.com/ and http://www.disobey.com/wiki/
twitter: @morbusiff / skype: morbusiff / irc.freenode.net, Morbus

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.