Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: MaestroRage
Forum: Programming 03-28-2009
2,310
Posted By MaestroRage
thank you! That makes everything click just right!
thank you! That makes everything click just right!
Forum: Programming 03-28-2009
2,310
Posted By MaestroRage
Help me understand this Makefile
PROGOBJS=lab10.o face.o
all: lab10 clean
lab10: $(PROGOBJS)
gcc -o lab10 $(PROGOBJS)
lab10.o: lab10.c face.h
gcc -c lab10.c
face.o: face.c
gcc -c face.c
very-clean: clean
rm *.*~ lab10...
2,340
Posted By MaestroRage
that worked perfectly! A huge thanks, I was not...
that worked perfectly! A huge thanks, I was not aware I had to use -v to use variables in awk (though makes sense :/)
2,340
Posted By MaestroRage
having trouble with using if clause in AWK
The goal:
I have a list of people in teams. The list looks something like this

$1 = Job Position (marketing, IT, PR)
$2 = Name
$3 = Team Name
$4 = Targeted member (somebody in field 2 targets...
3,529
Posted By MaestroRage
sed command not work with variables?
I am trying to write a simple script which will take a variable with sed to take a line out of a text and display it

#!/bin/sh
exec 3<list
while read list<&3
do
echo $list
sed -n '$list...
1,557
Posted By MaestroRage
Help with While Loops
I am traversing down a list, and I am not quite sure how to tell the loop to break when it's done going through the file.

#!/bin/sh
while :
do
read list <&3
echo $list
done

is the code....
2,581
Posted By MaestroRage
Help with while loops
My apologies was supposed to start a new topic, picked reply instead.
65,496
Posted By MaestroRage
now i'm not 100% on this, but i'm fairly sure you...
now i'm not 100% on this, but i'm fairly sure you can solve this issue by using pipe commands.

ls *.log | grep whatever whatever

the ls *.log will find only the files ending with .log, and...
2,581
Posted By MaestroRage
I apologize, my list file... was empty =_= ...
I apologize, my list file... was empty =_=

this example does in fact work.
2,581
Posted By MaestroRage
Using File Descriptors, traverse a list
I have written this code, and according to my research it SHOULD be going down the list until it is finished, but I am getting blank feedback. Nothing is being output as far as I can tell.
...
10,387
Posted By MaestroRage
quite right, paste should do it. paste FileA...
quite right, paste should do it.

paste FileA FileB will give you the desired output.

paste FileB FileA will reverse it.
1,128
Posted By MaestroRage
I'm trying to make a list of numbers in one file,...
I'm trying to make a list of numbers in one file, point to the respective lines in another file, and make no line repeat itself.

So File1 has numbers 1 to 5
File2 has some text, 5 lines of it.
...
1,128
Posted By MaestroRage
whittling down a file.
I want to write a simple script which will have a list of numbers. And I want to take the first number on the list, put it into a variable, use this variable to use sed to print out a line in another...
Forum: What is on Your Mind? 02-12-2008
9,831
Posted By MaestroRage
pico hobbies #!/bin/sh tired=true while...
pico hobbies

#!/bin/sh
tired=true
while echo Enter a hobby to display
read hobby
[ $hobby != $tired -a $hobby != 'SO TIRED' ]
do
grep -w -i $hobby listofthingsIdo.txt
done

^X
...
4,895
Posted By MaestroRage
using Grep for only a certain number of columns
I am given a file with a list of names for the first 20 characters. The 20 characters after is a list of names that somebody is supposed to team up with.

Now i'm trying to write a simple script...
3,006
Posted By MaestroRage
Once again you've saved my day! yes that was...
Once again you've saved my day!

yes that was in fact the problem... odd how that worked. I will have to mind my variables much closer.
3,006
Posted By MaestroRage
While Loop assistance.
I am trying to make a simple while loop which reads in a text until the person types quit. And it's not working, and I know it's a rather simple problem I just can't seem to understand... Once again...
3,351
Posted By MaestroRage
Using a variable inside a file to cat another.
I have a question to do and it's somewhat confusing. It says, and I quote

"Create a file called file_1 with three lines of text in it. Create a shell variable called "f_name", assign it the...
35,066
Posted By MaestroRage
both of these were mad helpful! Thank you kindly!...
both of these were mad helpful! Thank you kindly!

I didn't even consider finding first three lines and then the last of those three lines... ingenious D:!
35,066
Posted By MaestroRage
Displaying specific lines in a file.
I'm trying to figure out how to display a certain line in a text file. I keep getting references to Tail and Head, and I know how these work, but i'm lost on how to find say the third out of the five...
Showing results 1 to 20 of 20

 

Featured Tech Videos

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