LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

C/C++ dosex (irregular expressions :) for copying, renaming with wildcards

Posted 04-02-2012 at 12:42 AM by rainbowsally

dosex (irregular expressions for copying, renaming with wildcards

Features:
  • input a name and a wildcards string to see if the name matches
  • optionally input an wildcards string for a new name and get a very good clone of DOS
    functionality.

This was the last missing piece for the filenames functions which will be included in libLQ shortly.

file: src/main.c
purpose: demonstrate mixing C declarations and C++ functionality, also 'dosex' demo....
Member
Posted in Uncategorized
Views 16354 Comments 6 rainbowsally is offline
Old

A random selection from Ghostscript 9.05

Posted 04-01-2012 at 11:55 AM by SourceHorse
Updated 04-01-2012 at 11:57 AM by SourceHorse (correct order of lines 4 and 5)

Code:
 _______    |\_
| o   o |   /o \\
| o   o |  (_. ||
| o   o |   /__\\
'-------'   )___(

The Source Horse
Article 1
A random selection from Ghostscript 9.05
Introducing The Source Horse: a trail log of free program execution paths. Like architecture, programming should be done with great care. This will be about reading programs, not writing them. I will start with ghostscript. Ghostscript is a portable implementation of PostScript,...
LQ Newbie
Posted in Uncategorized
Views 399 Comments 0 SourceHorse is offline
Old

Streamripper and friends. Recording internet radio.

Posted 04-01-2012 at 11:31 AM by stretchedthin

Streamripper is a linux command line application that makes it easy to record internet radio. As well as showing how to use this command line tool I take a look at StreamRipStar one of the many front ends for Streamripper. A little bit of audacity editing is thrown in at the end as well.

Here is the screencast
Streamripper and friends. Recording internet radio.
Member
Posted in Uncategorized
Views 538 Comments 0 stretchedthin is offline
Old

Bash functions to list and kill or send signals to process trees

Posted 04-01-2012 at 12:54 AM by konsolebox
Updated 06-14-2015 at 09:54 AM by konsolebox

These functions can be used in scripts or interactive shells to manipulate process trees. At least bash version 3.0 is needed. May also work with some earlier versions.

kill_tree - Creates a list of processes based from a parent process ID first then sends the signal to all of them synchronously.

kill_tree_2 - Same as killtree but it doesn't create a list first. It immediately kills processes as it goes through every level.

kill_tree_3 - This version...
Senior Member
Posted in Howtos
Views 2816 Comments 0 konsolebox is offline
Old

Intermediate C - getch-term

Posted 03-31-2012 at 04:27 AM by rainbowsally
Updated 04-09-2012 at 01:23 PM by rainbowsally (bum list bullets fixed)

Intermediate. That doesn't mean you have to be an intermediate C programmer to use this. It just means that it will probably be more understandable to those who are at about this level of programming skill.

Features:
  • getch()
  • simple ansi sequence to keycode converter
  • expandable

There are several versions of getch()-like functionalities on the net but none of them handle ansi sequences well (or at all) and none of them are very clear as to what they do or why.
...
Member
Posted in Uncategorized
Views 514 Comments 0 rainbowsally is offline

  



All times are GMT -5. The time now is 03:04 AM.

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