Search Results

Search: Posts Made By: agentgrecko
19,851
Posted By agentgrecko
H hanson44, yup, around 2 files per sec. :( I...
H hanson44, yup, around 2 files per sec. :(
I have a counter on /destination/dir that executes ls | wc -l every 2 sec just so I could check the progress.
I'm thinking that since /source/dir...
19,851
Posted By agentgrecko
Hi RudiC, yup, same file system. It would have...
Hi RudiC, yup, same file system. It would have been easier indeed to just rename the dir. :)

My main goal is just to redistribute the files to different dirs according to their YYYYMMDD. The mv...
19,851
Posted By agentgrecko
Fast processing(mv command) of 1 million+ files using find, mv and xargs
Hi, I'd like to ask if anybody can help improve my code to move 1 million+ files from a directory to another:

find /source/dir -name file* -type f | xargs -I '{}' mv {} /destination/dir

I...
2,254
Posted By agentgrecko
Hi clx, thank you very much for taking your time...
Hi clx, thank you very much for taking your time with this. :)

I have as well developed similar awk codes to what you have. Posting it as it might help others as well:


for files in dirs
...
2,254
Posted By agentgrecko
Hi clx, thanks for the interest and apologies for...
Hi clx, thanks for the interest and apologies for the late reply.
I'm using HP-UX, /bin/ksh.

For the files, we're averaging 300,000 lines per file, * 10 files (gzipped), * 10 dirs, so the need...
2,254
Posted By agentgrecko
Faster Line by Line String/Date Comparison of 2 Files
Hello,

I was wondering if anyone knows a faster way to search and compare strings and dates from 2 files?
I'm currently using "for loop" but seems sluggish as i have to cycle through 10...
13,941
Posted By agentgrecko
Hi pludi, Using HP-UX, /bin/ksh. Yes, im...
Hi pludi,

Using HP-UX, /bin/ksh.
Yes, im using a script and just doing command line to manually test, I store the line in a variable, like so:
echo $line | sed -e 's/xxx/yyy/g'

but i still...
13,941
Posted By agentgrecko
Ignore the 255 character limit of command line
Hi

I would just like to ask if there is a way for UNIX to ignore/overcome the 255 character limit of the command line?

My problem is that I have a really long line of text from a file (300+...
2,096
Posted By agentgrecko
hi ahamed101, Thank you very much! Code is...
hi ahamed101,

Thank you very much! Code is working fine. Currently testing with other number combinations.

hi zaxxon,

None taken. We are just trying to mask the real digits (e.g. part of...
2,096
Posted By agentgrecko
hi zaxxon, Nope. Just a task at work i'm...
hi zaxxon,

Nope. Just a task at work i'm having a hard time coding. Been trying with a few algorithms for the past hour or so. Just thought there might be help from others while I'm figuring it...
2,096
Posted By agentgrecko
"Encrypting" using number replacement
Hi,

I have a task of "encrypting" a file by replacing the numbers with another set of numbers. Sort of swapping the values, say:

1 = 5
2 = 8
3 = 7
4 = 1
5 = 9 and so on..

so if i have...
Showing results 1 to 11 of 11

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