Search Results

Search: Posts Made By: tmarikle
2,680
Posted By tmarikle
Two ways in perl: file1: apples pears...
Two ways in perl:

file1:

apples
pears
oranges


file2:

apples



m1.pl

#!/usr/bin/perl
while (<>) {
chomp;
15,590
Posted By tmarikle
read -p LINE That would normally do it...
read -p LINE


That would normally do it but, as I said, secure shell commands fork a child process and that I/O can't be captured by the coprocess. Sorry.

t
15,590
Posted By tmarikle
I have never been able to get ssh, scp, or sftp...
I have never been able to get ssh, scp, or sftp to work via a coprocess due to how it forks a child process. You need to use expect or Perl expect; that's what I have used.

T
4,389
Posted By tmarikle
Not sure what you're trying to do here (sure...
Not sure what you're trying to do here (sure seems to me that there are easier methods) but, for starters, you may want to reference your filenames in your awk procedure blocks or it's going to get...
4,133
Posted By tmarikle
Why don't you define the menu in an array before...
Why don't you define the menu in an array before invoking select and using the array as the argument to select?

t
5,815
Posted By tmarikle
Haven't logged in for a while and I stumbled on...
Haven't logged in for a while and I stumbled on this post.

I could never get awk to work as a coprocessor either. I was mentoring a coworker on coprocessors and while he was testing the...
75,823
Posted By tmarikle
{ echo "... } | sqlplus basically...
{
echo "...
} | sqlplus
basically collects all of the "echo" command's output as a group and they are piped through to Oracle's sqlplus command processor. So it behaves just like running...
7,641
Posted By tmarikle
Forms and reports works via Java now so the Motif...
Forms and reports works via Java now so the Motif version isn't necessary. However, I haven't developed Oracle Forms or Reports for ages now so I can't say with 100% certanty.
7,641
Posted By tmarikle
It's the old Oracle Reports version 2.5 Motif...
It's the old Oracle Reports version 2.5 Motif report runtime launch script. Oracle Reports is a fairly complex application so I recomend that you search the net for some documentation online.
Forum: What is on Your Mind? 12-07-2006
9,686
Posted By tmarikle
Finally, less than 1/4" of snow in South Dakota,...
Finally, less than 1/4" of snow in South Dakota, USA. I had no problem walking and driving through it :rolleyes:
Forum: What is on Your Mind? 12-04-2006
9,686
Posted By tmarikle
Still no snow in South Dakota, USA; still...
Still no snow in South Dakota, USA; still forcasted; still waiting.
Forum: What is on Your Mind? 11-28-2006
9,686
Posted By tmarikle
Supposedly tons but nothing yet; still forcasting...
Supposedly tons but nothing yet; still forcasting but nothing yet.
12,040
Posted By tmarikle
str="name1,name2,name3, " typeset IFS=' ,' ...
str="name1,name2,name3, "

typeset IFS=' ,'
for i in $str
do
echo $i
done


works with both ", " and ","
12,040
Posted By tmarikle
Here's my favorite way of doing this, similar to...
Here's my favorite way of doing this, similar to justsam but without piping $str through tr (UUOtr :D )


str="name1, name2, name3, "

typeset IFS=' ,'
for i in $str
do
echo $i$i ...
2,747
Posted By tmarikle
Works for me. ./starq dayq ./starq[11]:...
Works for me.


./starq dayq
./starq[11]: /bin/setup.sh: not found
Batch Queue (dayq) started Tue Nov 14 14:50:17 MST 2006

$ ./starq
*E* Batch Queue parameter is missing

$ ./starq...
2,400
Posted By tmarikle
Sounds like homework but in case it's not, you...
Sounds like homework but in case it's not, you can use awk for this easily. Try starting with "man awk" or "man nawk".
2,428
Posted By tmarikle
This isn't too clear of a request. Please...
This isn't too clear of a request. Please rephrase your question and post in the appropriate forum.
12,040
Posted By tmarikle
Sorry, my bad. This can be done with KSH using...
Sorry, my bad. This can be done with KSH using built in operations (I haven't really had a need for this to date).


print $(( 16 ^ 5 ))
21

print $(( 21 ^ 5 ))
16
12,040
Posted By tmarikle
It's easier done with Perl: perl -le...
It's easier done with Perl:


perl -le 'print (16 ^ 5)'
21

perl -le 'print (21 ^ 5)'
16
13,458
Posted By tmarikle
Use sendmail instead. See this post...
Use sendmail instead. See this post (https://www.unix.com/showthread.php?t=30132&highlight=sendmail).
59,252
Posted By tmarikle
Read up on the test command (man test) if [[...
Read up on the test command (man test)

if [[ $n -eq 0 ]]
then
exit
fi
1,830
Posted By tmarikle
Please provide your script logic so that we can...
Please provide your script logic so that we can review it. Your request doesn't provide any meaningful information to help diagnose the problem.
Forum: What is on Your Mind? 11-03-2006
19,920
Posted By tmarikle
I'm not really conflicted as my post suggests. I...
I'm not really conflicted as my post suggests. I plan on staying current in IT because a) I love the work, b) because I have seen over and again how quickly folk's skills become obsolete, c) still...
Forum: What is on Your Mind? 11-03-2006
19,920
Posted By tmarikle
Don't get me wrong on my current focus versus...
Don't get me wrong on my current focus versus what I look forward to doing. I am working in my chosen field and, like you, I have been in this field since my mid teens (with a short suspension while...
6,981
Posted By tmarikle
When you ask "is there a way of doing this in...
When you ask "is there a way of doing this in Linux," I assume that you are asking whether a Linux/UNIX shell scripting language can do this.

The answer is yes. with either BASH or KSH, you can...
Showing results 1 to 25 of 500

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