Search Results

Search: Posts Made By: bluemoon1
2,565
Posted By bluemoon1
how to log if the program contains both bourne-shell & pearl scripts
I have a program (say, MyProgram) written in Bourne-shell script, but at some point it calls another script written in pearl, as illustrated below:

#!/bin/sh
.....
case $x in
1) ...
8,079
Posted By bluemoon1
oh well, I'd have figured it out:rolleyes: must...
oh well, I'd have figured it out:rolleyes: must have been falling asleep;-)

Thank you so much!
8,079
Posted By bluemoon1
strange enough, it doesn't work- it filters out...
strange enough, it doesn't work- it filters out all the comments line- although they are none-digit - any explain why? I'm on SunOS
8,079
Posted By bluemoon1
Here is a sample of the file in question: ...
Here is a sample of the file in question:

#---------------------------------
# File opened Nov 08 17:15:00 2007
#---------------------------------
$1
#
# aseLines.cfg: line --> application...
8,079
Posted By bluemoon1
thanks! Sorry I over simplified it - the...
thanks!

Sorry I over simplified it - the file has other part, such as comments... or lines not starting with number which should not be removed....

I modified your solution to:
nawk '$1 < 1;$1...
8,079
Posted By bluemoon1
remove lines from file
file:

1 xxxxxxx
2 xxx xxx
5 xxx xxx
...
180 xxxxxx
200 xxx

how to remove any lines with the first number range 1-180
64,111
Posted By bluemoon1
you are right about the doube/single quoate!! ...
you are right about the doube/single quoate!!

grep -w "$line" does work
- so does grep -w $line

however, grep -w "^$line" doesn't find the pattern. not sure why

Also, how to remove all the...
64,111
Posted By bluemoon1
Thanks gus2000 for your response. But this...
Thanks gus2000 for your response. But this doesn't work (with the variable quoted:
grep -w '^$line' file
(or "^$line")

It works however:
grep -w $line file

^ is nice to have in this case,...
64,111
Posted By bluemoon1
how to grep a variable pattern
I have a file that looks like this:
2 xxxxxx
3 xxxxxxx xxx
....
(tab followed after the line number)

I need to add a range of lines to the file but not the ones existing already. So...
7,153
Posted By bluemoon1
Dear cfajohnson: It works perfectly.......
Dear cfajohnson:

It works perfectly.... would you elaberate a little how it works? I did try, but as a newbie....:-(
thanks a lot!
17,926
Posted By bluemoon1
I didn't use the no-interactive (-n) option...
I didn't use the no-interactive (-n) option because I wanted to capture the output & save them in a log file so we know if anything /file failed to get installed.
I do however suppress the...
17,926
Posted By bluemoon1
Hi Porter, One thing I don't understand- I...
Hi Porter,

One thing I don't understand- I redirect the stdin when I run pkgadd to install a pkg, as I want it to ignore any request for inputs from the pkg postinstall scripts (the inputs should...
17,926
Posted By bluemoon1
Thanks you so much for your response. so yes,...
Thanks you so much for your response.
so yes, you are absolutely right about everything you said!
And I wasn't clear about what I wanted to achieve.

The interactive part actually is in the...
17,926
Posted By bluemoon1
nohup - help!
I find that if I use nohup (in bourne shell script) then all the interactive parts in my code are gone hidden... e.g., the places asking input from the user (such as ckyorn) will not be displayed....
24,530
Posted By bluemoon1
Thanks radoulov! And yes, it works exactly as you...
Thanks radoulov! And yes, it works exactly as you described on Solaris:-)
7,653
Posted By bluemoon1
while this "pkgadd -a $pkgadmin -d...
while this "pkgadd -a $pkgadmin -d ../packages/$pkgfile $pkgname < /dev/null" does solve the original issue- I wonder what if in the "pkgadd $pkgname" it does have to ask question & read from STDIN?...
24,530
Posted By bluemoon1
Dear radoulov Thank you so much! Now that I...
Dear radoulov

Thank you so much! Now that I understand how it works, I'm actually able to add a little more to it to solve the problem I had (removing all the lines including different keywords):...
24,530
Posted By bluemoon1
As my home work, I tried to figure it out how it...
As my home work, I tried to figure it out how it works (though I know it works) but still no luck:-( Would someone elabrate a little of the syntax for me? Many thanks in advance!
7,153
Posted By bluemoon1
Hi porter, I do back up all the config files...
Hi porter,
I do back up all the config files during the installation. The thing is, I can't simply restore those files during the uninstall. This is because of the fact that some of the files may...
24,530
Posted By bluemoon1
Guru...
Guru Ygor/aigles/radoulov/varungupta/porter/summer_cherry;-)

Thank you all for your advice. Very helpful!!

Nikki
24,530
Posted By bluemoon1
Can we add a line which starts with the word...
Can we add a line which starts with the word Mango (or any partten in the middle of the line) only the line does not exist in the file already?
I can do a grep and check the existance & then use...
7,653
Posted By bluemoon1
Guru Perderabo & drl:-) You got the right...
Guru Perderabo & drl:-)

You got the right answer to my question!!;-)

Thanks again to everyone for your kind responses!!
7,653
Posted By bluemoon1
Thanks for the replies, but I had simplified the...
Thanks for the replies, but I had simplified the script a lot! Still simplified, but here's a little more detail of what I'm doing ;-)
(3 pkgs would be missing after the red line)

grep -i...
7,653
Posted By bluemoon1
Guru vino & tomas:-) What you say seems to...
Guru vino & tomas:-)

What you say seems to make sense to me- that specific pkg takes the longest of all. I made a workaround to make it the last one to be installed- however, I know I have to put...
7,653
Posted By bluemoon1
why read line skips some lines...
Dear Guru:

This has got to be a difficult question, as I've worked on it for a good amount of time now & still puzzled...

So here is the simplified logic in my code:

while read LINE
do...
Showing results 1 to 25 of 53

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