Search Results

Search: Posts Made By: NickF
1,527
Posted By NickF
Hi RudiC, Embarrassingly, the problem turned...
Hi RudiC,

Embarrassingly, the problem turned out to be nothing to do with the code! The issue was that I was using the wrong file! :o

Still, confirmation that the Grep was OK helped cause it...
1,527
Posted By NickF
Sorry - I thought it was ok on the reply. Here's...
Sorry - I thought it was ok on the reply. Here's the code again..
EXTRACT_Date=$(date --date="${PERIOD}" +"%a %b %_d")
more "${CHK_FILE}" | grep -F "${EXTRACT_Date}" > ${SRC_FILE}
echo "grep -F...
1,527
Posted By NickF
Hi RudiC, Sorry, I missed the bit about code...
Hi RudiC,

Sorry, I missed the bit about code tags. :o


Anyway, the data has 2 spaces "Oct..1" which is why I used the %_d. When I echo the grep command, it shows only once space but the echo...
1,527
Posted By NickF
Issue with Grep
Hi guys,

Hope someone can help me with this - I'm sure it's fairly simple but it's driving me mad! (forgive the coding - still new on scripting - come from Windows)

I have the following coding...
Showing results 1 to 4 of 4

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