Search Results

Search: Posts Made By: tirmUK
1,450
Posted By tirmUK
Hi Chandan, Unfortunately, it removes the...
Hi Chandan,

Unfortunately, it removes the last character from the file, no matter what it is, not just the carraige return.

---------- Post updated at 11:06 AM ---------- Previous update was at...
1,450
Posted By tirmUK
That didnt work RudiC: FileName: ...
That didnt work RudiC:

FileName:
FDBCFEAE-021F-47BC-896B-A225C198C1A1{52730124-EF33-405F-9A8A-C840F5CEFB95}0?


Command and result:

find -name $'*\r*' | while read FN; do echo mv "$FN"...
1,450
Posted By tirmUK
Here is the find working: find -name...
Here is the find working:


find -name $'*\r*'
./FDBCFEAE-021F-47BC-896B-A225C198C1A1{52730124-EF33-405F-9A8A-C840F5CEFB95}0?


Here is the command with the replace and the error message
...
1,450
Posted By tirmUK
I can't seem to get the right results with the...
I can't seem to get the right results with the for loop.

I got really close using:

find -name $'*\r*' -exec rename $'s|[\r]| |g' '{}' \;

This works for every character it seems EXCEPT for...
1,470
Posted By tirmUK
I ended up outputing the directory list to a csv,...
I ended up outputing the directory list to a csv, then using a fast searchin algorithm to create the copy routines. I had to do this, because the awk command was doing far too many reloading of the...
1,450
Posted By tirmUK
Thanks RudiC, that will definitely locate the...
Thanks RudiC, that will definitely locate the files, but what about the rename? The remove of the ? on the end?

Thanks!

Tirm
1,450
Posted By tirmUK
Removing a ? from multiple files
Hi all,

I have about 1.8 million files in a directory structre, that contain a ? on the end, for example:

/testdocs/1/mar/08/08/images/user/{1234-1234-1234-1234}0?

Is there a way to go...
1,470
Posted By tirmUK
Hi, Yes agree 100% with your evaluation. ...
Hi,

Yes agree 100% with your evaluation. I'm thinking s arching for the file in a directory might be quicker than checking millions of lines of csv. The logic would be:

1. Read the first...
1,470
Posted By tirmUK
Hi RudiC, That works great thank you. I...
Hi RudiC,

That works great thank you. I have ran a few test's on smaller files, and its fine,

I have 2 further queries that extend this. First, the lookup file contains 1.87 million rows,...
1,470
Posted By tirmUK
Thank you for the replies. Let me put some...
Thank you for the replies. Let me put some more clarify around the request, as suggested, as I'm not sure the awk suggestions are working.

First here is the csv, that contains the list of...
1,470
Posted By tirmUK
awk assistance - Comparing 2 csv files
Hello all,

I have searched high and low for a solution to this, many have come really close but not quite what I'm after.

I have 2 files. One contains GUID's, for example:
...
Showing results 1 to 11 of 11

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