Search Results

Search: Posts Made By: afulldevnull
Forum: Programming 11-19-2012
2,768
Posted By afulldevnull
Linux fork, execv, wait question
Hi All,

I have a program for class that needs to do the following:
1. Print the directory entries from the current directory using ncurses
2. Provide a prompt next to each directory entry and...
Forum: Programming 09-28-2012
7,668
Posted By afulldevnull
Implementing a stack of strings in C
I'm trying to create a simplified version of dc to learn from. The first thing I notice is that the main stack stores strings. How would I implement a string stack in C? How is something like...
1,240
Posted By afulldevnull
Get tokens from line and put them into an array
I have a line like:

IDNO H1 H2 H3 HT Q1 Q2 Q3 Q4 Q5 M1 M2 EXAM


I would like to be able to access these tokens in such a way:
echo $myline[1] #displays IDNO

Is this possible to do in a...
1,698
Posted By afulldevnull
Thank you.
Thank you.
1,698
Posted By afulldevnull
The last occurrence of H2 will be the heading...
The last occurrence of H2 will be the heading line.
1,698
Posted By afulldevnull
Using awk to create a summary of a structured file
I am trying to use awk to create a summary of a structured file. Here is what it looks like:



(random text)

H1 H2 H3 H4
44 78 99 30
31 -- 32 21
12 33 55 21
I'd...
1,596
Posted By afulldevnull
Script to insert a function into a C source file
Hello,

I think I need sed, but perhaps awk could help.

I am trying to add a function to a C source file based off a struct declaration.

for example:


struct Rational
{
int...
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 07:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy