Search Results

Search: Posts Made By: emc^24sho
2,405
Posted By emc^24sho
I want to find every xml file in XYZ directories...
I want to find every xml file in XYZ directories under DVLP.

---------- Post updated at 01:47 PM ---------- Previous update was at 01:42 PM ----------

Then I could use another | xargs to grep...
2,405
Posted By emc^24sho
Yes correct! Thanks! ---------- Post updated...
Yes correct! Thanks!

---------- Post updated at 01:24 PM ---------- Previous update was at 01:23 PM ----------

Which code is correct? What does that xargs part do?

---------- Post updated at...
2,405
Posted By emc^24sho
I want the file names please? ----------...
I want the file names please?

---------- Post updated at 01:18 PM ---------- Previous update was at 01:17 PM ----------

Sorry about that!

---------- Post updated at 01:20 PM ----------...
47,882
Posted By emc^24sho
The commands are simple. Idk what happened? I...
The commands are simple. Idk what happened? I installed MKS toolkit on my workstation & ran the code again & it happened on there too. I unstalled & reinstalled MKS & the error was still there...
2,405
Posted By emc^24sho
Find every directory named XYZ under the DVLP directory
I only want to find files under each branch of the directory tree inside directories named XYZ and there are multiple XYZ directories?
47,882
Posted By emc^24sho
It show's the files correct files along with all...
It show's the files correct files along with all of the details... I don't understand why it won't grab them without the ls -al part When I remove this section. The commands act like they run then...
47,882
Posted By emc^24sho
Thanks I will do!
Thanks I will do!
47,882
Posted By emc^24sho
I need the help! Do to the nature of my job...
I need the help! Do to the nature of my job there's only information I can disclose. I do truly need the help! I just tried the find command that just worked from the command line and this is what I...
47,882
Posted By emc^24sho
You're code worked! How or why did it? ...
You're code worked! How or why did it?
D:/home/dv/daa/pt/ae(103) find . -name "aac*.xml" -exec ls -la {} \; -exec grep -l "status" {} \;
-rwxrwxrwa 1 SERVER\user.name xyz\Domain+Users 1400...
47,882
Posted By emc^24sho
My script is suppose to get the files then copy...
My script is suppose to get the files then copy the xml files but the variable is coming up " " and on the screen from the command line it's just returning with no data for the find combo. But I can...
47,882
Posted By emc^24sho
I've got to watch what I post. I work in a...
I've got to watch what I post. I work in a sensitive environment. It even takes awhile for the find from the command line to return like it's processing! When it's done I will paste in here from the...
47,882
Posted By emc^24sho
Of course mine used to work also! This is the...
Of course mine used to work also! This is the exact code that I put into the command line & get the error message. find . -name "*.xml" -exec grep -l "Status" {} \; My syntax is right! I don't...
47,882
Posted By emc^24sho
It didn't work. That's the message on the screen...
It didn't work. That's the message on the screen afterwards.find: must specify option after -exec
Usage: find directory ... expression
47,882
Posted By emc^24sho
The find command from the command line won't work...
The find command from the command line won't work with any other command when you use find ... -exec any command
47,882
Posted By emc^24sho
The find part works too from the command line....
The find part works too from the command line. The just wont work when I put them together.xmlFileNames=$(find . -name "*.xml" -exec grep -l "Status" {} \; 2>/dev/null) IDK why? I even took off the...
47,882
Posted By emc^24sho
Yes the status is in the first line of the xml...
Yes the status is in the first line of the xml files.

---------- Post updated at 09:05 AM ---------- Previous update was at 09:04 AM ----------

And the grep did work from the command line.
47,882
Posted By emc^24sho
I've only got today to get it running like it use...
I've only got today to get it running like it use too!

---------- Post updated at 08:01 AM ---------- Previous update was at 07:50 AM ----------

Ok when I changed my find . -name "*.xml" -exec...
47,882
Posted By emc^24sho
I just need to get the server back working again!...
I just need to get the server back working again! The old grep command I used at least worked then....

---------- Post updated at 07:41 AM ---------- Previous update was at 07:36 AM ----------
...
47,882
Posted By emc^24sho
Then what do I need to do please in layman terms?...
Then what do I need to do please in layman terms?

---------- Post updated at 07:26 AM ---------- Previous update was at 07:25 AM ----------

If I restart the server would that fix my problem?...
47,882
Posted By emc^24sho
How do I get it to work again? ----------...
How do I get it to work again?

---------- Post updated at 07:20 AM ---------- Previous update was at 07:19 AM ----------

Can I simply restart the server to get my find to work as usual?
47,882
Posted By emc^24sho
Now even when I rollback the version of my script...
Now even when I rollback the version of my script it doesn't work...And I can see the data is all there...

---------- Post updated at 11:40 AM ---------- Previous update was at 11:17 AM ----------...
47,882
Posted By emc^24sho
The error message when I tried this other code...
The error message when I tried this other code is:
find: non-terminated '-exec' argument list
Usage: find directory ... expression
find w/ grep -F exit code:2
find: non-terminated "-exec'...
47,882
Posted By emc^24sho
'+' didn't work in my statement. It didn't return...
'+' didn't work in my statement. It didn't return any data then.
47,882
Posted By emc^24sho
It didn't work Corona688...
It didn't work Corona688...
47,882
Posted By emc^24sho
I've got 30,000 files to process using...
I've got 30,000 files to process using xmlFileNames=$(find . -name "*.xml" -exec grep -l "Status" {} \; 2>/dev/null) The re is in the header of the xml files. Is there a way to grab just the header...
Showing results 1 to 25 of 36

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