Search Results

Search: Posts Made By: ricksj
4,052
Posted By ricksj
thanks for the reply, but something a little more...
thanks for the reply, but something a little more specific would be more helpful.

---------- Post updated 07-22-11 at 11:50 AM ---------- Previous update was 07-21-11 at 10:57 PM ----------

I...
4,052
Posted By ricksj
Need to find root element name of XML file
Given this XML:
<?xml version="1.0"?>
<catalog>
<cd>
<title>Empire Burlesque</title>
<artist>Bob Dylan</artist>
<country>USA</country>
<company>Columbia</company>
...
2,900
Posted By ricksj
Thank you all for your replies. I found an XPath...
Thank you all for your replies. I found an XPath module that does the trick.
#!/usr/bin/perl
use XML::XPath;
use XML::XPath::XMLParser;

@files = <*.dita>;

foreach my $file (@files) {
my...
2,900
Posted By ricksj
Random XML Parsing - using Perl
Given the XML:
<?xml version="1.0" encoding="UTF-8"?>
<reference>
<refbody>
<section>
<p>
<ul>
<li><xref href="file1.dita#anchor" /></li>
<li><xref href="file2.dita#anchor" /></li>
</ul>...
2,597
Posted By ricksj
Thank you, thank you. That worked!
Thank you, thank you. That worked!
2,597
Posted By ricksj
Pludi - the find code you provided works great,...
Pludi - the find code you provided works great, but now I've got another problem. I've added some new files and folders, and now the script doensn't process everything in alphabetical order.

I've...
Forum: Linux 01-19-2009
3,565
Posted By ricksj
actually, the RPMs are currently on a DVD
actually, the RPMs are currently on a DVD
Forum: Linux 01-19-2009
3,565
Posted By ricksj
Finding folders/files in an RPM file
Is there a way to find a specifc folder or filename in an RPM archive? I have dozens to go through and the hunt-and-peck method is too slow.
2,050
Posted By ricksj
Joey I took your substitution idea and...
Joey

I took your substitution idea and worked out the following:
sub(/-/,"~",s)
split(s, array1, "~")

This produced the results I needed.
2,050
Posted By ricksj
Getting strings before and after a character
OK This one has me stumped. I have the following line,
program name - the program description that can also contain a hyphen - character.

I'm need to separate the "program name" from the program...
4,110
Posted By ricksj
Appending to EOF using AWK
In a previous post (https://www.unix.com/unix-dummies-questions-answers/95890-working-folder-names.html) I needed to walk through a list of files. This works fine, but when I attempt to use the nawk...
24,393
Posted By ricksj
Thanks for the responses. I was able to get...
Thanks for the responses.

I was able to get this to work with the desired results:
start_dir=`echo "${start_dir}" | sed -e "s/\/*$//" `
24,393
Posted By ricksj
trimming trailing slashes in variable
I'm using this thread (https://www.unix.com/shell-programming-scripting/19348-how-trim-space-output-variable.html) as an example, but can't seem to apply it to my situation.

I'm trying to strip...
2,597
Posted By ricksj
thanks pludi for the input. How would I...
thanks pludi for the input.

How would I exclude 'html' folder names in the find statement? Or would I have to do a test for a substring instead?
2,597
Posted By ricksj
Working with folder names
I have the following directory structure:

/maindir
/maindir/product1/
/maindir/product1/type1
/maindir/product1/type2
/maindir/product1/type3
/maindir/product2/
/maindir/product2/type1...
Showing results 1 to 15 of 15

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