Go Back   Hardware Forums > Software Support Forums > Linux and Other OSes

Reply
 
LinkBack Thread Tools
Old 01-07-2008, 07:16 AM   #1 (permalink) Top
Geek
 
Join Date: Jul 2007
Gender: Male
Posts: 96
Status: Offline
Default AIX Grep For Changing Value

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.

__________________
  Reply With Quote
Whats this? diNovo Edge Bluetooth Wireless Keyboard
diNovo Edge Bluetooth Wireless Keyboard
Seller Price (inc. VAT) Delivery Total Price Availability Seller Rating
Dell £114.33 Free £114.33 In Stock Rated: 0 out of 5 - Number of votes: 0
IT247.com £102.94 Free £102.94 In Stock Rated: 4 out of 5 - Number of votes: 38
Dell Business £104.65 £8.23 £112.88 In Stock Rated: 0 out of 5 - Number of votes:
Old 12-07-2008, 04:19 PM   #2 (permalink) Top
Paranoid Geeky Geek
 
donkey42's Avatar
 
Join Date: Mar 2006
Age: 34 Male
Posts: 5,826
Times Helpful: 309
My Mood: Paranoid
Status: Offline

My Computer

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
  Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On
Forum Jump

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


All times are GMT +1. The time now is 09:49 AM.


Copyright © 2000 - 2008 · HARDWAREFORUMS.COM · All rights reserved