Search Results

Search: Posts Made By: stevensw
2,730
Posted By stevensw
Processing diff output
How to get diff to not print the chevrons and the dashes? In this case the differences are all single line differences.

Also the first few lines don't matter. How to get the output to always...
1,142
Posted By stevensw
Column overruns in bash
So say you have something like:


col1 col2 col3
. . .
. . .
Say using bash you want the columns to always have exactly the same width...
1,240
Posted By stevensw
Extract compressed tarball to folder?
This is for Red Hat Enterprise Linux Client release 5.7 (Tikanga).

Wanna extract entire contents of a tar.gz to a folder of my choosing. Thanks
1,638
Posted By stevensw
Yes but if you have more than one file all these...
Yes but if you have more than one file all these files have to use this master path. You have to change it in each of these files one at a time. You only have a single point of edit if it's one file....
1,638
Posted By stevensw
Relative paths are nice when you want to be able...
Relative paths are nice when you want to be able to move bundles of files around and still have them work though.

Also nice when you want to create development instances of piece of code by for...
1,638
Posted By stevensw
Perl "require" question
So a script can tell where it's located by the $0 variable right? OK

So what if another script calls "require" on it? Does calling $0 still refer to where it's located? Apparently not, it refers...
1,251
Posted By stevensw
I know what you're saying and that's not what I...
I know what you're saying and that's not what I want to do. The script represented by 2.pl is a script that prints header information for each page like 1.pl, and from those scripts it needs...
1,251
Posted By stevensw
Perl: Use variables in "require" file
So lets say I have:

1.pl:
$a = 1;
$b = 2;
require "2.pl";

2.pl
print $a;

How to make 1.pl's variables available to 2.pl? Thanks
1,614
Posted By stevensw
Today's date using Perl?
Easiest way to get it in the form of MM/DD/YY for Perl 5.8.8? Thanks
2,313
Posted By stevensw
What I put is not actual code, I just wrote that...
What I put is not actual code, I just wrote that to give you guys an idea of what I'm trying to do. The code I did show was not copied verbatim. I apologize for the confusion.

I will give Jim's...
2,313
Posted By stevensw
Automated e-mailer problem
I am trying to write a bash e-mailer script on a host that has a bunch of CPUs and makes use of all of them. It e-mails a huge list of people, so I wanna save time running this script if I can.
...
1,258
Posted By stevensw
[SOLVED] Perl help
Here I am assigning XML writers to a bunch of XML files.

%outputs = ();
%writers = ();

...

foreach my $xml (keys %domains)
{
$outputs{$xml} = IO::File->new(">>" . $xml);
...
4,985
Posted By stevensw
OK I will do that thanks
OK I will do that thanks
4,985
Posted By stevensw
Transform 1 CSV file into a dozen XML files.
Transform 1 CSV file into a dozen XML files.
4,985
Posted By stevensw
Best way to go about this?
I am processing a very large file, which is a text csv report of a database.

I would like to parse this csv file into a bunch of XML files.

I am trying to decide the most efficient way to go...
4,839
Posted By stevensw
Need an efficient XML writer for Perl
I don't care about user friendliness, but I don't wanna re-invent the wheel either. What's a good XML writer for Perl that's the most efficient? Thanks!
4,086
Posted By stevensw
OK hold it. What I was looking to do before was...
OK hold it. What I was looking to do before was reading in an HTML file, make transformations to it in a PHP file, then print the resultant HTML.

I didn't want to mix the HTML and PHP into the...
4,086
Posted By stevensw
What if you're reading in a large file using...
What if you're reading in a large file using file_get_contents() and you want the variables in that file to be evaluated? This file would not contain PHP code.
4,086
Posted By stevensw
Anybody? Bumping up posts or double...
Anybody?


Bumping up posts or double posting is not permitted in these forums.

Please read the rules (https://www.unix.com/misc.php?do=cfrules), which you agreed to when you registered, if you...
4,086
Posted By stevensw
PHP embedding functions inside strings?
How to do a simple shell command like:

echo "Today's date is `date +%D`"with PHP? Basically I'm looking to embed PHP library functions calls inside of PHP strings in much the same manner as above....
3,056
Posted By stevensw
The forementioned for loop, how to get each...
The forementioned for loop, how to get each iteration of executing command1 command2 commandN in parallel in the same process (since they must be executed sequentially) such that the operating system...
3,056
Posted By stevensw
Yea that might be the better way to do it. I...
Yea that might be the better way to do it. I guess I could write logic to check how busy a CPU is but that would be time consuming. I didn't know it doesn't try to run everything on the same core,...
3,056
Posted By stevensw
It's Yellow Dog Linux, although I could...
It's Yellow Dog Linux, although I could conceivably run it from a Red Had Enterprise Linux machine as well.
3,056
Posted By stevensw
I'll rephrase. Say you have: for VARIABLE in...
I'll rephrase. Say you have:

for VARIABLE in 1 2 3 4 5 .. N
do
command1
command2
commandN
done

How to tell each iteration to execute commands 1, 2, and N on a CPU and CPU core...
3,056
Posted By stevensw
bash commands to change processor
Say you got a for loop where each execution has 0 dependence on the other. Thus ideally you'd like to executed them all concurrently rather than iteratively (if you had enough CPUs). We don't quite...
Showing results 1 to 25 of 69

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