Search Results

Search: Posts Made By: Lem2003
4,601
Posted By Lem2003
Is there a fast and dirty way to use all these...
Is there a fast and dirty way to use all these commands.

Thanks!!!
4,601
Posted By Lem2003
No is not homework. These are questions from past...
No is not homework. These are questions from past midterms where 30 became "C"s in one nasty curve.

Thanks for the links!!!
4,601
Posted By Lem2003
Unpratical SED and GREP questions
Hello every one, I have read a little about SED and GREP but I do not know how to do this:

Using SED or GREP:

"reverse all three letter words"
"replace the last two digits in any string of...
3,367
Posted By Lem2003
I read a bunch of C programs and put them in a...
I read a bunch of C programs and put them in a file.

Now I want to extract all the funtions that start with _

I'm a little confused with the concept of SED and GREP and how to use Regular...
3,367
Posted By Lem2003
SED and it used with | and grep
I am really lost I don't know what this line does. Please help I'm very lost. Thanks in advance.

cat CPROGRAMS.c
|sed 's/[^a-z(_]/ /g'|tr ' ' '\012'
|grep '[a-z]'
|sed 's/^[(]*/ /'
|grep...
135,833
Posted By Lem2003
Thanks, I was just seeing an example in a book. ...
Thanks, I was just seeing an example in a book. Is this the only way to do it? Thanks!
135,833
Posted By Lem2003
Greater Than
Hello every one! I need a little help. I would like to know if there is someway I can use a "greater than" condition in a shell script.


#!/usr/bin/sh
_curTime=`date +%H%M`
if [_curTime<2400]...
3,895
Posted By Lem2003
Yeah ^M was what I found in the script!
Yeah ^M was what I found in the script!
3,895
Posted By Lem2003
I found the problem! I was using a scprit made in...
I found the problem! I was using a scprit made in notepad. I used vi and found a bunch of funny chars. Thanks everybody.
3,895
Posted By Lem2003
Thanks guys! I'm working on HP-UX Release 11i:...
Thanks guys!
I'm working on HP-UX Release 11i: November 2000 in sh. I also tried:

while :
do
java myTime > myTime.log
sleep 60
done


And it does not work. I get the same error. Thanks...
3,895
Posted By Lem2003
What is wrong with this code?
Hello everyone, can somebody tell me what is wrong with this code:

while true
do
java myTime > myTime.log
sleep 60
done

I get the following error:

./myTime: Syntax error at line 1 :...
2,113
Posted By Lem2003
Thanks guys. We don't know the purpose of the...
Thanks guys. We don't know the purpose of the script. The question on the back of the chapter is: What does this script do? Thanks everybody...
2,113
Posted By Lem2003
We tried to compile it and when we run it it gave...
We tried to compile it and when we run it it gave us an error in line 15 which is empty. We have no clue why is doing this. Thanks once again...
2,113
Posted By Lem2003
What is wrong with my script?
Hey guys, can someone help me with this script...
#!/bin/sh
dir=`pwd`
for i in *.f
do if [ -f ${i} ]
then M=`wc -l < ${i}
sed -e 's://.*::' < ${i} | \
...
Showing results 1 to 14 of 14

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