Search Results

Search: Posts Made By: theexitwound
6,177
Posted By theexitwound
But if the lines are split on the first -e...
But if the lines are split on the first -e expression, there should only be one function per line when the second -e expression is matched, shouldn't it?
6,177
Posted By theexitwound
I work 40 hours a week, I'm doing what I can....
I work 40 hours a week, I'm doing what I can. It's not like I can just pick it up, read the man pages, a few examples, and know how to do it. I've tried hundreds of permutations of these expressions...
6,177
Posted By theexitwound
This assignment has been so confusing, I'm losing...
This assignment has been so confusing, I'm losing the entire purpose to be honest. I believe I have to change headings like:

int main(int argc, char **argv)
{
into

main(argc, argv)
int argc;...
6,177
Posted By theexitwound
I was only using grep to test the output so I...
I was only using grep to test the output so I could see it in color. I've read that sed doesn't support lazy matching and it has to be emulated with 'not' patterns, using [^ ], but I can't figure it...
6,177
Posted By theexitwound
I completely forgot * matches zero or more. ...
I completely forgot * matches zero or more.

---------- Post updated 10-08-11 at 01:00 PM ---------- Previous update was 10-07-11 at 05:29 PM ----------

How do i make this a lazy return? All I...
6,177
Posted By theexitwound
Maybe I'm just missing something, but if you use...
Maybe I'm just missing something, but if you use what you have above, "int a(int b)" won't be found by using those sed patterns because it's expecting to have at least another variable passed to...
6,177
Posted By theexitwound
Thanks for the explanation of the first bit...
Thanks for the explanation of the first bit there. I was confused.

As for the back-referencing in sed, what if I don't know how many variables are being passed in the function? I have to...
6,177
Posted By theexitwound
When you use sed '/^#/p;/^#/d;s/int/flub/g' in...
When you use sed '/^#/p;/^#/d;s/int/flub/g' in this fashion, how does it operate on the line? you have 3 commands (1. print, 2. delete, 3. substitute) acting on one big line of text. Does it do all...
6,177
Posted By theexitwound
I got this back from the teacher today in email: ...
I got this back from the teacher today in email:


What does he mean by asking sed to edit all applicable lines at once?
6,177
Posted By theexitwound
I've been arguing with this teacher the entire...
I've been arguing with this teacher the entire semester about what he's assigning and how he's assigning things. He's terrible, overall, and the class attendance (~18/60 daily) and average on the...
6,177
Posted By theexitwound
That's what I thought too at one point. I...
That's what I thought too at one point. I couldn't be using i as a variable unless it was defined earlier. It didn't make sense to have it after the block of the function. The instructions are a...
6,177
Posted By theexitwound
K&R C code edits
1. The problem statement, all variables and given/known data:



2. Relevant commands, code, scripts, algorithms:

We have to do this using 'unix tools' and not use the script as if it were C....
Showing results 1 to 12 of 12

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