LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

Regex in LibreOffice

Posted 05-24-2016 at 05:06 AM by HMW

Although I prefer to work with text in editors, and not in word processors, I sometimes have to. Today I faced a massive editing task in a formatted .rtf document. I had to iron out some "bugs" in the text. Such as no space after a dot:
FOOBAR.Foobar.

Now, going through this massive text and look for these occurances manually clearly wasn't an option. I'd rather eat a cactus. Had it been "normal" - not formatted - text, I could have used regular expressions...
HMW
Member
Posted in Uncategorized
Views 265 Comments 0 HMW is offline
Old

Bash arrays as Python lists (sort of)

Posted 08-08-2015 at 11:38 AM by HMW
Updated 08-08-2015 at 11:44 AM by HMW

If you have some experience with higher level programming languages (such as Python for instance), you have undoubtedly came across lists and arrays.

There are arrays in Bash too, but there is a pitfall when you delete items from an array in Bash; the index disappears with the item!

First, consider this example with a list in Python:
Code:
>>> myList = ['foo', 'bar', 'baz']
>>> myList
['foo', 'bar', 'baz']
>>> del myList[0]
...
HMW
Member
Posted in Uncategorized
Views 129 Comments 0 HMW is offline
Old

Being a geek sometimes saves the day

Posted 06-23-2015 at 09:10 AM by HMW
Updated 06-23-2015 at 09:12 AM by HMW

So, there we were, sitting in front of a PC about to do some actual work. But we couldn't, because we needed instructions from a particular e-mail. Said e-mail could not be reached online since it was sent using POP, not IMAP.

The computer with the super important instructions did not have any VNC connection to the outer world, so we could not simply log in that way, start Thunderbird and check out the e-mail from a distance.

What do you do? Take the bus to where the...
HMW
Member
Posted in Uncategorized
Views 95 Comments 0 HMW is offline

  



All times are GMT -5. The time now is 05:19 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