Search Results

Search: Posts Made By: RudiC
47,902
Posted By RudiC
OK. Build a sandbox, create dummy xml files with...
OK. Build a sandbox, create dummy xml files with "Status" in their first line, and then run the respective commands. Experiment with parameters. Use commands with whole absolute paths. Come back with...
47,902
Posted By RudiC
It did the ls -la but it didn't do the grep. Sure...
It did the ls -la but it didn't do the grep. Sure there is "status" in it? Please post first lines.

You are using "Status" and "status" interchangingly. You know that *nix is case sensitive?
47,902
Posted By RudiC
Sorry, I don't quite get what you are saying. You...
Sorry, I don't quite get what you are saying. You are always talking generically, no data, no details. How then do you expect somebody to help you?
What variable? What script? What environment?...
47,902
Posted By RudiC
It's not easy to analyse what you say. So - find...
It's not easy to analyse what you say. So - find -exec ls -la {} \; did succeed; it listed the relevant files. Now tryfind . -name "ONE.xml" -exec ls -la {} \; -exec grep -l "status" {} \;
give it...
47,902
Posted By RudiC
OK, try thisfind . -name "*.xml" -lsand find ....
OK, try thisfind . -name "*.xml" -lsand find . -name "*.xml" -exec ls -la {} \;
47,902
Posted By RudiC
Why don't you post command AND error message? ...
Why don't you post command AND error message?

What does your find man page say?
47,902
Posted By RudiC
This is what I get for above command:find . -name...
This is what I get for above command:find . -name file\* -exec grep -l 105 {} \;
./file
, so I don't think what you say is correct.
47,902
Posted By RudiC
Your "Status" is upper case as opposed to lower...
Your "Status" is upper case as opposed to lower in post#24.
Try to run the command without assigning the result to a variable.
47,902
Posted By RudiC
OK. What's the problem now?
OK. What's the problem now?
47,902
Posted By RudiC
OK, calm down. Does the modification date of...
OK, calm down.
Does the modification date of your .xml files indicate they've been overwritten lately?
Use an editor to open one of the .xml file and look if there's "status" in one of the eight...
47,902
Posted By RudiC
We don't know what your server problems are. If...
We don't know what your server problems are. If it stopped working, that will definitely not be due to those commands.
Or is it just your terminal session that hangs? Try <CTRL>C or <CTRL>D or kill...
47,902
Posted By RudiC
Chubler_XL already proposed a solution to...
Chubler_XL already proposed a solution to overcome that problem.
47,902
Posted By RudiC
My comment is just for that command / pipe. No...
My comment is just for that command / pipe. No need to restart the server.
47,902
Posted By RudiC
You should be careful with NR>8 as it might quit...
You should be careful with NR>8 as it might quit before working on subsequent files.

EDIT: Not even sure if quitting after FNR>8 would be safe...
Showing results 1 to 14 of 14

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