Search Results

Search: Posts Made By: whegra
3,856
Posted By whegra
That did the trick. Thank you.
That did the trick.

Thank you.
3,856
Posted By whegra
Works great. I do see your additions add CRLF...
Works great. I do see your additions add CRLF linefeed, but all other lines get changed to LF.

I've just added a unix2dos argument at the very end once processing is done, only added 1min for 5k...
3,856
Posted By whegra
One issue, kind of a big one. Your code cuts...
One issue, kind of a big one. Your code cuts everything out of the xml file before the first instance of the name tag. So if the name tag was at line 50, everything before that line gets deleted in...
3,856
Posted By whegra
Running cygwin on windows. Bash shell. ...
Running cygwin on windows.

Bash shell.

Here is my not so elegant but gets the job done code.


ls *.xml > /cygdrive/x/$$tmp
while read filename ; do
#Get Name Tag, first occurance
...
3,856
Posted By whegra
Insert text after match in XML file
Having a little trouble getting this to work just right.

I have xml files that i want to split some data.

I have 2 <name> tags within the file

I would like to take only the first tag and...
1,658
Posted By whegra
Here is the time : real 0m0.798s user ...
Here is the time :

real 0m0.798s
user 0m0.266s
sys 0m0.418s

folder that's being searched has 41k files, it moved 248 files. List 1 has 168 values, list 2 has 124.

Very fast.
1,658
Posted By whegra
Thank you for the assistance. In the end I...
Thank you for the assistance.

In the end I decided to dumb down my approach and keep it simple.

Here is what I did.


#Build full list of all files from the day in question
cd...
1,658
Posted By whegra
Process 2 lists at the same time and move files.
I have this while loop, that works but is quite slow to process though. I'm hopping there might be a faster/better way to find what I'm looking for.

I have 2 lists of numbers, and want to only...
2,145
Posted By whegra
Here are the results of a test run. To move...
Here are the results of a test run.

To move 500 files:

New code from junior-helper

$ time ./new.sh

real 5m16.228s
user 0m12.693s
sys 0m35.638s


Old code

$ time ./old.sh...
2,145
Posted By whegra
Optimize my mv script
Hello,

I'm wondering if there is a quicker way of doing this.

Here is my mv script.


d=/conversion/program/out
cd $d
ls $d > /home/tempuser/$$tmp
while read line ; do
a=`echo...
4,880
Posted By whegra
My issue right now is gathering the unique...
My issue right now is gathering the unique values, if all values were the same fixed length I'd just use cut and sort to get all the unique values, but not all the values are.
4,880
Posted By whegra
My input looks like this Files ...
My input looks like this

Files
20140902114511523AAA112.txt
20140902114511523BBB113.txt
20140902114511523XXX114.txt

Within each file there values look like this....
4,880
Posted By whegra
Count Unique values from multiple lists of files
Looking for a little help here.

I have 1000's of text files within a multiple folders.

YYYY/
/MM
/1000's Files

Eg.
2014/01/1000 files
2014/02/1237 files
2014/03/1400...
2,369
Posted By whegra
Restore files from tape with multiple positions
I have lots of tapes where files got written to X amount of positions per tape.

Is there a way to restore all files on the tape regardless of position ID?

Right now to restore files in the...
2,328
Posted By whegra
Both the -n and -o BatchMode=Yes did the trick,...
Both the -n and -o BatchMode=Yes did the trick, thank you very much.
2,328
Posted By whegra
[Solved] While read line and if statement not working
I'm looking for some help in figuring why my little bit of code will not process any entries other then the first one in my list.

while read line ;do
hostname=${line//\"}
a=`ssh...
1,147
Posted By whegra
Excellent, Thank you.
Excellent, Thank you.
1,147
Posted By whegra
Behavior of Find command
Centos 5.8

Lets say I have 2 nfs shares mounted to /folder1 and /folder2.

If I do a find / -name *something*

Will it also search the 2 nfs shares ?

If so is there a way to avoid this?
...
4,037
Posted By whegra
Perderabo/cfajohnson, This works great! ...
Perderabo/cfajohnson,

This works great!

Thank you.
4,037
Posted By whegra
FTP random files
Hello everyone,

What I'm trying to do is figure out how to ftp a set of random files each day about 50 or so maybe more or less.

I have a folder on my server that gets about 1000 or so new...
2,946
Posted By whegra
Samba 3.0.20b / Windows XP can't search
I have Samba 3.0.20b installed on a RHE9 server.

I have a mix of 2k and XP pro stations through out my office.

I have 2 shares on the samba server.

If on a 2k machine I do a search for a...
Forum: SCO 06-30-2005
7,943
Posted By whegra
Found the answer. go to /etc and rename...
Found the answer.

go to /etc and rename getone to something else. I did this and printer was fine.

I got this info from this link. http://pcunix.com/Bofcusm/907.html
Forum: SCO 06-30-2005
7,943
Posted By whegra
I also get this same message for my printer on...
I also get this same message for my printer on SCO. I'm tring to print to a dell m5200 network printer.

I can print to it fine from suse and windows just not sco.

Anyone have any idea's?
4,902
Posted By whegra
FTP - Sco Unix to ProFTPD Error
First off I did try google for help on this topic, didn't really find anything.

When I try to ftp from my SCO Unix box (SCO_SV servername 3.2 5.0.5 i386) to a proFTPD server within my company I...
20,311
Posted By whegra
Thanks for the great help and advise everyone. ...
Thanks for the great help and advise everyone.

Your script works great Perderabo much appreciated.

Thank you.
Showing results 1 to 25 of 37

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