Search Results

Search: Posts Made By: aispg8
3,191
Posted By aispg8
I missed that line.....it works!:p Thanks so...
I missed that line.....it works!:p
Thanks so much.
3,191
Posted By aispg8
Sorry...I had sent you my original. Here is the...
Sorry...I had sent you my original. Here is the one with the updates:

FND="$(find ediout* -mmin -60)"
# if [ $FND > '' ]; then
if [ -n "$FND" ]; then
STR="$(find ediout*...
3,191
Posted By aispg8
Yes..that would work as well, but why would this...
Yes..that would work as well, but why would this particular script blow up when more than one file exists?
3,191
Posted By aispg8
The error line 43 = "echo "${STR}" | mailx...
The error line 43 =

"echo "${STR}" | mailx -s "EDI Translation Errors List" test@optonline.net"

The full code =

FND="$(find ediout* -mmin -60)"
if [ $FND > '' ]; then
...
24,590
Posted By aispg8
That was it.......thanks so much.:D
That was it.......thanks so much.:D
3,191
Posted By aispg8
error with new code
I included your new code and I get the following error:

/edierror.sh[43]: test: 0403-004 Specify a parameter with this command.

please advise.
24,590
Posted By aispg8
Grep command to remove blank lines
The following grep command grep -v "^$" filename > newfilename does not populate the new file with any data. I see it search the entire input file but the output file never gets filled. Is this not...
3,191
Posted By aispg8
grep returns many values into a variable error
I get an error when I grep my results into a variable when the grep finds more than one file.
FND="$(find ediout* -mmin -60)"
if [ $FND > '' ]; then
STR="$(find ediout* -mmin -60...
2,256
Posted By aispg8
from the current directory i can do the following...
from the current directory i can do the following with success:
find ediout* -mmin - 60
but when I add this command to a grep it doesnt work.
Do i need to include the "-type" and "f"?
...
2,256
Posted By aispg8
Using find with a grep
:wall:Hello, Im having trouble using the find and grep combined into one command. I have the following:

find filname* -mmin -60 grep "ERROR" filename

I want to find the "ERROR" text in any...
Showing results 1 to 10 of 10

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