Search Results

Search: Posts Made By: Calbrenar
21,923
Posted By mobitron
1. You are using a numeric comparision operator...
1. You are using a numeric comparision operator (-eq) to compare strings.
2. Why don't you test for inequality instead of equality?
3. You are missing whitespace between your test arguments and...
21,923
Posted By Corona688
I'm not sure why it's saying "then" is...
I'm not sure why it's saying "then" is unexpected. Maybe because you forgot to quote ${i} -- if it's blank for some reason, that becomes [ -e ] instead of [ -e "" ] which is syntactically wrong.
...
2,447
Posted By Shell_Life
Change teh "TEMP" assignment to: TEMP=$(echo...
Change teh "TEMP" assignment to:
TEMP=$(echo "${i}" | sed -e "s/$PREMID_DT_TM/$POSTMID_DT_TM/")
Showing results 1 to 3 of 3

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