Sponsored Content
Full Discussion: Dynamic Attribute Changes
Top Forums Shell Programming and Scripting Dynamic Attribute Changes Post 302094545 by er_aparna on Monday 30th of October 2006 12:25:30 AM
Old 10-30-2006
Dynamic Attribute Changes

Hello ,

I am stuck out in a part of my script, though I am trying it through a script of loops but i emphasis on having a short code :


Input file has Attribute values changing with time

Date Monday October 30 10:22:56 IST 2006
object values references Date
Priya 157676 101 Oct 18 14:34
Ananya 157677 102 Oct 18 14:34
Rahul 157678 103 Oct 18 14:34
Neha 157679 104 Oct 18 14:34
Mrinal 157680 105 Oct 18 14:34
Pakash 157681 106 Oct 18 14:34
Chhavi 157682 107 Oct 18 14:34
Rita 157683 108 Oct 18 14:34
Tina 157684 109 Oct 18 14:34
Waqir 157685 109 Oct 18 14:34
Date Monday October 30 10:23:56 IST 2006
object values references Date
Priya 145020 101 Oct 18 14:34
Ananya 157677 102 Oct 18 14:34
Rahul 157678 103 Oct 18 14:34
Neha 157679 104 Oct 18 20:55
Mrinal 157680 105 Oct 18 14:34
Pakash 157681 124 Oct 18 14:34
Chhavi1 157682 107 Oct 18 14:34
Rita 157683 108 Oct 20 14:34
Tina 157684 109 Oct 18 14:34
Waqir 157685 109 Oct 18 14:34
Date Monday October 30 10:24:56 IST 2006
object values references Date
Priya 145687 101 Oct 18 14:34
Ananya 157677 102 Oct 11 14:34
Rahul 157678 104 Oct 18 14:34
Neha 157679 104 Oct 18 20:55
Mrinal 157680 105 Oct 18 14:34
Pakash 157681 106 Oct 18 14:34
Chhavi 157682 107 Oct 18 14:34
Rita 157683 108 Oct 18 14:34
Tina 157684 109 Oct 18 14:34
Waqir 157685 109 Oct 18 14:34

The Objects Changes the value/Refernces and date within a min
Thus the output file should conatins the list of objects whose parameters has changed

Output file
Date/Time Object Values Refernces Date
October 30 10:22:56 Priya 157676 101 Oct 18 14:34
October 30 10:23:56 Priya 145020 101 Oct 18 14:34
October 30 10:24:56 Priya 145687 101 Oct 18 14:34
October 30 10:22:56 Pakash 157681 106 Oct 18 14:34
October 30 10:23:56 Pakash 157681 124 Oct 18 14:34
October 30 10:24:56 Pakash 157681 106 Oct 18 14:34
October 30 10:22:56 Chhavi 157682 107 Oct 18 14:34
October 30 10:23:56 Chhavi1 157682 107 Oct 18 14:34
October 30 10:24:56 Chhavi 157682 107 Oct 18 14:34


Output file signifies that any change in object parameters should list what was the past object parameters, changed parameters and
new parameters after change .

I beleive its a really challenging taks which I am trying to sort out from past few days...
It would be really great if anyone could help me in This

KRegards,
Aparna
 

10 More Discussions You Might Find Interesting

1. Linux

File attribute Help please

Could anyone help i have a question that i have a problem with for my home work it is, How do i change file permissions in a command line enviromet thanx (1 Reply)
Discussion started by: Cube3k
1 Replies

2. Programming

UNIX->C++ File attribute

Hi to all, I need in Microsoft C++ to IDENTIFY unix files which are LINKS. I use CFTPFILEFIND class. Thanks :-) .:rolleyes: (0 Replies)
Discussion started by: mizrachi
0 Replies

3. Red Hat

Password Attribute

Hello Friends , Where do i check the following settings in redhat ? 1. Minimum required number of characters in the password (passwordMinLength) 2. Minimum number of digit characters, meaning numbers between zero and nine (passwordMinDigits) 3. Minimum number of ASCII alphabetic... (2 Replies)
Discussion started by: avklinux
2 Replies

4. AIX

login attribute settign

Dears i need some assistance in implementing following scenario, as per audit observation we have restrict remote log in of specific users after official hours by clients, but the same user needs to be log in from LFT console round the clock(or any time after logout,because certain application... (1 Reply)
Discussion started by: m_raheelahmed
1 Replies

5. UNIX for Advanced & Expert Users

Sql dynamic table / dynamic inserts

I have a file that reads File (X.txt) Contents of record 1: rdrDESTINATION_ADDRESS (String) "91 971502573813" rdrDESTINATION_IMSI (String) "000000000000000" rdrORIGINATING_ADDRESS (String) "d0 movies" rdrORIGINATING_IMSI (String) "000000000000000" rdrTRAFFIC_EVENT_TIME... (0 Replies)
Discussion started by: magedfawzy
0 Replies

6. Solaris

Solaris Attribute Problems

When I modify the file attributes of files and run a ls -l to view the changes everything looks correct, however when I run the init 6 to reboot the server the file attributes devert back to the origininal read only permissions. Any help would be appreciated (2 Replies)
Discussion started by: jimcz2it
2 Replies

7. Solaris

ldapclient can not modify attribute

Hello, We have one Solaris 10 machine which has three LDAP servers configured. We want to remove one of them. I tried below ldapclient command however no change is made. ---------------------------------------------------------------------- ldapclient mod -a "defaultServerList=10.149.9.20... (0 Replies)
Discussion started by: alfa_w
0 Replies

8. UNIX for Dummies Questions & Answers

How to use xml_grep to get the value of an attribute?

I'm using xml_grep command to get the value of different tags in a xml-file. No i also need the value of an attribute in a tag. Can I use xml_grep for this? Does anybody know how? ex. : <Name xmlns:xsi="http://www.w3.org/2001/XMLinst" xsi:spaceSchema="Name_5879.xsd"> ... </Name> I... (1 Reply)
Discussion started by: pistach
1 Replies

9. Red Hat

(.) at the end of file attribute.

Hi Linux Experts, I am using RHEL 6.4, on checking I identified some files ends with the file attribute like dot (.) at the end. Whereas, I checked with the same level of other servers and I don't identify dot(.) at the end of file attribute. Why is it so? is there any meaning for it. ... (3 Replies)
Discussion started by: gsiva
3 Replies

10. Shell Programming and Scripting

How to change a PS attribute?

Hi, i want to list all system processes showing the attributes pid, user name, cpu consumption, and the difference between the resident memory and the swap memory needed to stock the process in case of suspending it. i have two questions, the resident memory is the attribute size i think,... (4 Replies)
Discussion started by: Eskizoide
4 Replies
CAL(1)							    BSD General Commands Manual 						    CAL(1)

NAME
cal -- displays a calendar SYNOPSIS
cal [-3hjry] [-A after] [-B before] [-d day-of-week] [-R reform-spec] [[month] year] DESCRIPTION
cal displays a simple calendar. If arguments are not specified, the current month is displayed. The options are as follows: -3 Same as ``-A 1 -B 1''. -A after Display after months after the specified month. -B before Display before months before the specified month. -d day-of-week Specifies the day of the week on which the calendar should start. Valid values are 0 through 6, presenting Sunday through Saturday, inclusively. The default output starts on Sundays. -h Highlight the current day, if present in the displayed calendar. If output is to a terminal, then the appropriate terminal sequences are used, otherwise overstriking is used. If more than one -h is used and output is to a terminal, the current date will be high- lighted in inverse video instead of bold. -j Display Julian dates (days one-based, numbered from January 1). -R reform-spec Selects an alternate Gregorian reform point from the default of September 3rd, 1752. The reform-spec can be selected by one of the built-in names (see NOTES for a list) or by a date of the form YYYY/MM/DD. The date and month may be omitted, provided that what is specified uniquely selects a given built-in reform point. If an exact date is specified, then that date is taken to be the first missing date of the Gregorian Reform to be applied. -r Display the month in which the Gregorian Reform adjustment was applied, if no other month or year information is given. If used in conjunction with -y, then the entire year is displayed. -y Display a calendar for the current year. If no parameters are specified, the current month's calendar is displayed. A single parameter specifies the year and optionally the month in ISO format: ``cal 2007-12'' Two parameters denote the month (1 - 12) and year. Note that the century must be included in the year. A year starts on Jan 1. NOTES
In the USA and Great Britain the Gregorian Reformation occurred in 1752. By this time, most countries had recognized the reformation (although a few did not recognize it until the 1900's.) Eleven days following September 2, 1752 were eliminated by the reformation, so the calendar for that month is a bit unusual. In view of the chaotic way the Gregorian calendar was adopted throughout the world in the years between 1582 and 1928 make sure to take into account the date of the Gregorian Reformation in your region if you are checking a calendar for a very old date. cal has a decent built-in list of Gregorian Reform dates and the names of the countries where the reform was adopted: Italy Oct. 5, 1582 Denmark Feb. 19, 1700 Spain Oct. 5, 1582 Great Britain Sep. 3, 1752 Portugal Oct. 5, 1582 Sweden Feb. 18, 1753 Poland Oct. 5, 1582 Finland Feb. 18, 1753 France Dec. 12, 1582 Japan Dec. 20, 1872 Luxembourg Dec. 22, 1582 China Nov. 7, 1911 Netherlands Dec. 22, 1582 Bulgaria Apr. 1, 1916 Bavaria Oct. 6, 1583 U.S.S.R. Feb. 1, 1918 Austria Jan. 7, 1584 Serbia Jan. 19, 1919 Switzerland Jan. 12, 1584 Romania Jan. 19, 1919 Hungary Oct. 22, 1587 Greece Mar. 10, 1924 Germany Feb. 19, 1700 Turkey Dec. 19, 1925 Norway Feb. 19, 1700 Egypt Sep. 18, 1928 The country known as Great Britain can also be referred to as England since that has less letters and no spaces in it. This is meant only as a measure of expediency, not as a possible slight to anyone involved. HISTORY
A cal command appeared in Version 6 AT&T UNIX. BSD
December 21, 2007 BSD
All times are GMT -4. The time now is 10:44 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy