LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

How to kill lines before and after a pattern

Posted 12-21-2011 at 05:45 PM by Telengard (Here are some things which I hope will be helpful.)
Updated 12-21-2011 at 06:27 PM by Telengard
Tags awk

PHP Code:
#! /usr/bin/awk -f

# Deletes n lines before pattern and m lines after.
# Intended to be portable.
# It is your own responsibility to evaluate the fitness of this program.

BEGIN {
    
# set the following initializers as you please
    # FS=" "
    # OFS=" "
    
n=5
    m
=3
}

/
line 11/ { # insert your desired regex "pattern" between the slashes
    
pattern_line=FNR 
...
Member
Posted in programming
Views 889 Comments 0 Telengard is offline
Old

Introductions

Posted 12-20-2011 at 08:41 PM by hydraMax (Bits and Pixels)

Hello. My user name at LQ is "hydraMax", but my real name is Christopher. If you wish to communicate with me, I have private messaging enabled. If you wish to communicate with me outside of LQ, send me a private message and we can exchange e-mail addresses.

I'm hoping to use this blog primarily to draw attention to the work I do and the projects with which I'm involved, usually available at my Web site, frigidcode.com. What do I do? Well, it is hard to summarize because...
Member
Posted in Uncategorized
Views 342 Comments 0 hydraMax is offline
Old

You never stop learning.

Posted 12-20-2011 at 07:01 PM by peonuser
Updated 12-20-2011 at 07:02 PM by peonuser

Was on a learning to cook theme for a while. That is waning, though there are still a few recipes I would like to try. Now I really want to get into electronics. Most of what I have done has been monkey see monkey do stuff. Mostly in the area of pc parallel port control. Did build a transistor multi-vibrator. My latest simple project is this: http://www.instructables.com/id/Ultra-simple-flasher/. May make several and attach them to the pc. Adding a switch of course.

Still want to...
Member
Posted in Uncategorized
Views 275 Comments 0 peonuser is offline
Old

How to install Rogue in Ubuntu

Posted 12-19-2011 at 12:12 PM by Telengard (Here are some things which I hope will be helpful.)

Rogue is in the bsdgames-nonfree package. Ensure the multiverse repository is enabled and install the bsdgames-nonfree package in your package manager.

Code:
sudo apt-get install bsdgames-nonfree
References
Member
Posted in newbie faqs
Views 2036 Comments 0 Telengard is offline
Old

Gnome 3 Tip - Quick Application Search

Posted 12-19-2011 at 12:07 PM by lumak (Lumak's Guide to Random Things)

Gnome 3 will search the "comments" value of .desktop files when you start typing in the search box of the overlay screen. This search will include symbols and punctuation as well. This means that there are various ways to exploit the system and start grouping applications by symbols.

1. Copy your favorite applications' .desktop files from /usr/share/applications to ~/.local/share/applications
2. Edit the comments section to include a symbol for a group. E.G....
Member
Posted in Uncategorized
Views 1344 Comments 0 lumak is offline

  



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