|
|
#1 (permalink) Top |
|
Geek
![]() Join Date: Jul 2007
Gender: Male
Posts: 96
Status: Offline
|
What Command Do I Need To Use To grep For A Changing Value Without Having To Change My Command. eg LINE6=XXX1XXX, For Which "1" = "2" The Following Day: LINE6=XXX2XXX And The Following Day "2" = "3": LINE6=XXX3XXX And So On. My Grep Result Should Show 1 on Monday, 2 on Tuesday and 3 on Wednessday.
__________________
|
|
|
|
|
#2 (permalink) Top |
|
Paranoid Geeky Geek
![]() Join Date: Mar 2006
Age: 34 Male
Posts: 5,826
Times Helpful: 309
My Mood: Paranoid
Status: Offline
|
i think you are thinking too much about it & it making it over complicated
for a date variable, you only need one variable e.g. #define variables &date &$day #day code if $date = "1" then $day = "Monday" else fi if $date = "2" then $day = "Tuesday" else fi if $date = "3" then $day = "Wednesday" else does that make sense ? i'm actually no good at scripting, but you get the idea, i hope
__________________
Last edited by donkey42; 12-07-2008 at 04:21 PM. Reason: typo |
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| changing the look | gaz2374 | Linux and Other OSes | 4 | 10-10-2006 08:28 AM |
| Changing PSU | thomas234 | Power Supplies and UPS's | 5 | 13-07-2006 01:13 AM |
| Changing letters | CallMeFurby | Storage Devices | 5 | 20-04-2006 08:38 AM |
| Changing cards | Goliath666 | Video Cards, Displays and TV Tuners | 34 | 03-01-2006 04:34 PM |
| changing a vhs tape to dvd | exwriter | Storage Devices | 3 | 07-11-2005 03:19 AM |