LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

Emacs rectangle search/replace

Posted 08-21-2016 at 07:43 PM by flshope

I use Emacs to write code occasionally, mostly Fortran. A common thing I need to do is search and replace everywhere in a region confined to a rectangle within the text. An example is altering an existing code from Fortran 77 format to Fortran 90, specifically changing all of the Cs in column one (indicating comments) to !s. In Emacs terminology, this is a rectangle of width 1 character and as high as the number of lines in the code.

I have had difficulty figuring out how to do this...
Member
Posted in Uncategorized
Views 561 Comments 0 flshope is offline
Old

August 21 & it's only 58 in the morning

Posted 08-21-2016 at 10:45 AM by onebuck
Updated 08-21-2016 at 09:36 PM by onebuck (typo)

Hi,

Cold front coming through has cooled down the area for a deserved relief from the 3 digit heat. Nice out! I think that I will wait a few hours to let the dew dry off then play a round of golf today. I can not mow until the lawn dries out since I bag my clippings.

I miss being on the farm but I do like the luxury of my work load being a lot less these days. Sure, I would be baling hay for the horse and storing for the winter feed. Keeps you fit but does wear on you...
Moderator
Posted in Uncategorized
Views 597 Comments 5 onebuck is offline
Old

Debian 8.5 64bit on ACER E5-573

Posted 08-14-2016 at 07:00 AM by error_401 (LINUX mostly DEBIAN - hardware and software)

This is an update on last years laptop with Debian 8.5 in 64bit with KDE
------------------------------------------------------------------------

As google has stopped support for the 32 bit version of chrome I have updated the known laptop with Debian 8.5. Just did a complete re-install from CD-ROM. Easier than to fumble with the 32bit and try to bring it to 64bit. At the same time we'll see what is working now.


ACER Aspire E15 E5-573-74BW
...
LQ Newbie
Posted in Uncategorized
Views 439 Comments 0 error_401 is offline
Old

The decline and fall of the Linux forum - Episode III : The Microsoft 'x86 Monopoly'

Posted 08-11-2016 at 08:45 AM by cynwulf
Updated 08-12-2016 at 10:33 AM by cynwulf

Foreword

And here we go again with another opinion piece and long awaited 3rd installment in this acclaimed series... As with the award winning "decline and fall of the linux forum" and it's sequel, this is merely a platform for some theorising and surmising and exploring just what drives people to participate in such mediums. The fact remains however that we can surmise and theorise all we like and it won't change a damned thing.

Introduction
...
Senior Member
Posted in Uncategorized
Views 540 Comments 1 cynwulf is offline
Old

Bash variables storing the output of commands run them at each variable statement, not just at some eventual invocation

Posted 08-10-2016 at 04:30 PM by the dsc (linux-related notes)
Updated 08-10-2016 at 04:33 PM by the dsc
Tags bash

Meaning that a script line such as:

nowstatus=`mpc | grep '#' | cut -d '/' -f1`

Is running mpc, grep and cut at its very statement, not only from an eventual "echo $nowstatus".

Therefore, in scripts that parse differently the same output of a given command, it may be preferable to first store this output in a temporary file, and then parse this file rather than running the same command several times. Such as in the lines added below their equivalent...
Member
Posted in Uncategorized
Views 464 Comments 0 the dsc is offline

  



All times are GMT -5. The time now is 12:45 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration