Hi All,
My requirement is create an unix script to parse the xml file and display the values of the Elements/value between the tags on console. Like say, I would like to fetch the value of errorCode from the below xml which is 'U007' and display it. Can we use SED command for this? I have tried... (10 Replies)
I've seen the executable open in the application OmniOutliner, can I create an executable with this app? I'd like to be able to create the unix executable and insert it into terminal, but I'm not sure if the Omni app will allow me to create it.
Any one have any ideas or possibly familiar with... (10 Replies)
Hi,
I am a beginner in scripting...I have to do a script where I have to read a file which has list of job names, line by line and for every line execute a dsjob command to find the log details of the job and extract only the start time of the job, if it is greater than jan 01 2008 and create... (1 Reply)
I am new in shell scripting. currently i am using cygwin. My problem is
i created a profile file in my own folder. file name is first.profile in which i gave following values to variable
export a=10
now i am executing this profile file by below command
./.first.profile
it executed... (4 Replies)
first i created a profile file(my_var.profile) which contains
export my_var=20
after that i created shell scripts(my_var.sh) which contains
#!/bin/bash
. ./my_var.profile
echo '$my_var='$my_var
but when i am executing sh my_var.sh it is showing error that no such file/directory .profile.... (6 Replies)
Hello,
I need to compare two flat files (ASCII format), say file OLD and file NEW. Both have similar structure. These files are | delimitted files and have around few million of records (lines) each. Each file has same set columns and same set of key columns (i.e. the 3rd and 5th column of the... (7 Replies)
I have a flat file that contains dynamic list of variables like
a=1
b=2
c=3
.
..
z=26
I need to convert the above into a csv file having the format below:
a,b,c,..,z
1,2,3,..,26
Please note, I do not want a comma separating the last variable.
I tried to refer the post... (4 Replies)
Hi All,
I have two xml files.
One is having below input
<NameValuePair>
<name>Daemon</name>
<value>tcp:7474</value>
</NameValuePair>
<NameValuePair>
<name>Network</name>
<value></value>
</NameValuePair>
... (2 Replies)
Thanks of your suggestions i was able to calculate the delta between some numbers in a column file with .
awk 'BEGIN{last=0}{delta=$1-last; last=$1; print $0" "delta}'
the file was like
499849120.00
500201312.00
500352416.00
500402784.00
500150944.00
499849120.00
500150944.00... (3 Replies)
Delete
---- Original post, restored by mod after being deleted by abhilashnair ----
I have a requirement where, I need to create a control file which will have 3 columns in the header row as below:
Filename
Count
Checksum
This above control file has to contain metadata as above... (2 Replies)
Discussion started by: abhilashnair
2 Replies
LEARN ABOUT DEBIAN
gtimer
GTIMER(1) GTimer GTIMER(1)NAME
gtimer - an application for recording time spent on user-defined tasks.
SYNOPSIS
gtimer [-midnight offset] [-weekstart day] [-nosplash] [-resume] [-start task]
DESCRIPTION
GTimer allows the user to time one or more activities. Users define tasks that can be timed. Text annotations can also be added to tasks.
Reports can be generated that summarize time spent and annotations.
OPTIONS -midnight offset
Specify the offset of midnight to use. Users can allow time spent after midnight to be recorded for the previous day. For exam-
ple, the command
gtimer -midnight 400
will not consider everything 3:59AM the previous day.
-weekstart day
Specify which day of the week should be considered the beginning of the week when generating reports. day should be a number
between 0 and 6, where 0 is Sunday. For example, the command
gtimer -weekstart 1
will use Monday as the first day of the week for all weekly reports. The default is 0 (Sunday).
-resume Start timing any tasks that were still be timed when GTimer last exited.
-start taskname
Start timing the specified task immediately. This option can be used more than once on the command line. For example, you can
start a tasks with:
gtimer -start 'GTimer development'
-nosplash
Do not display the splash window on startup.
FILES
~/.gtimer/ data storage
SEE ALSO enscript(1), lpr(1)AUTHOR
Craig Knudsen <cknudsen@cknudsen.com> <http://www.cknudsen.com/>
GTimer WWW home page: <http://www.cknudsen.com/gtimer/>
GTimer Mar 19, 2003 GTIMER(1)