Sponsored Content
Full Discussion: Basic IF Command Question
Top Forums UNIX for Dummies Questions & Answers Basic IF Command Question Post 302521919 by methyl on Thursday 12th of May 2011 06:19:31 PM
Old 05-12-2011
This is extraordinarily difficult because the data does not include the week number within the year.
It is much easier to group the data by Month or Month-Day within the Year.

If weeks are important we would need to know:
What Operating System and version you are running?
What Shell you prefer?
Whether this is forward-looking processing which can be changed to include the Week Number in the data or retrospective processing which needs to derive the week number from a date in a data file?

Week numbering is itself a contentious topic. Some detailed examples would help (particularly around the change of year).
Beware of the accountancy "week 53".
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

basic question

I have some basic doubts. Can someone clarify in this forum? 1)if then eval ' tset -s -Q -m ':?hp' ' else eval ' tset -s -Q ' what does it exactly mean in .profile? 2) what are 'nobody' and 'noaccess' usernames in /etc/passwd file. ... (3 Replies)
Discussion started by: asutoshch
3 Replies

2. UNIX for Dummies Questions & Answers

basic question

hey...when i type who...what does "pts" field mean??? eg pts 0 etc (1 Reply)
Discussion started by: urwannabefriend
1 Replies

3. UNIX for Dummies Questions & Answers

Very Basic Question

How to know if my AIX 5.2 is running at 64bits? THANKS (5 Replies)
Discussion started by: GermanSkull
5 Replies

4. UNIX for Dummies Questions & Answers

Really basic question....

Hello all. Let me start off by saying I know a little more then it seems by me asking this question... here goes I have an old 486 box and I want to start messing around with unix. I've been taking classes for 3 or 4 years in c programming in unix, so I am used to the commands and such, but I... (1 Reply)
Discussion started by: robherms
1 Replies

5. Programming

q_zero question basic C

What am I doing wrong?... My code looks like this: #include <stdio.h> float answer; /* The result of our calculation */ int main() { answer = 1.0 / 3.0; printf(“The value of 1/3 is %f\n”, answer); return (0); } ==============================END And this is... (4 Replies)
Discussion started by: gumigecko
4 Replies

6. HP-UX

Basic OS question

Could someone tell me the command to find out the OS version which will give 12 character not the 9 characters(which is usually machine id). uname -i gives machine id and uname -a is more comprehensive way to look. Thanks! (4 Replies)
Discussion started by: catwomen
4 Replies

7. Shell Programming and Scripting

basic question

hi, I have a basic question,, i am in a directory called /intas/OCU_3.9.1/sbin ocuut1@france>mv itsa_tcs itsa_tcs_old mv: itsa_tcs_old: rename: Permission denied i am logging as the owner of the file. when i am doing this i am getting the above error of permission denied. I know... (3 Replies)
Discussion started by: namishtiwari
3 Replies

8. Shell Programming and Scripting

basic nc question

i'm doing this in one terminal: nc -lu 7402 and it appears to start listening properly, then in another i do this: echo "hello" | nc -u localhost 7402 and nothing happens on the listening terminal - what am i doing wrong? thanks. (7 Replies)
Discussion started by: peterworth
7 Replies

9. UNIX for Dummies Questions & Answers

Basic awk question...getting awk to act on $1 of the command itself

I have a script problem that I am not able to solve due my very limited understanding of unix/awk. This is the contents of test.sh awk '{print $1}' From the prompt if I enter: ./test.sh Hello World I would expect to see "Hello" but all I get is a blank line. Only then if I enter "Hello... (2 Replies)
Discussion started by: JasonHamm
2 Replies

10. UNIX for Beginners Questions & Answers

Basic Linux command line question

:D:D:D These are list of command i typed on opensuse terminal and evolve lots of doubt around ,that i can't answer. COMMAND 1 linux-xavv:/ # cd COMMAND 2 linux-xavv:~ # Does above command 1 and command two with red labelled sign make different meaning or same . 1 linux-xavv:/... (1 Reply)
Discussion started by: lobsang
1 Replies
CFETOOLINFO(8)						User Contributed Perl Documentation					    CFETOOLINFO(8)

NAME
cfetoolinfo - Get information about a database SYNOPSIS
cfetool info name [--path|-p directory name] [--daily|-d] [--weekly|-w] [--yearly|-y] [--verbose|-v] [--help|-h] DESCRIPTION
Prints out some basic information about the specified database, including: the location of the database, the location of the histogram file (if there is one), the step interval, the database age, the time it was last updated, and the current overall average and variation. OPTIONS
--path|-p directory name The directory in which to find the database folder. If this argument is not provided, the current working directory will be assumed. --daily|-d Provide information about the daily averages database. --weekly|-w Provide information about the weekly averages database. --yearly|-y Provide information about the yearly averages database. --verbose|-v Print details of the command's execution to the standard output stream. --help|-h Prints a short help message and then exits. EXAMPLE
% cfetool info temperature --path /my/path Weekly average database: Database Location: /my/path/temperature/weekly.db Histogram file: /my/path/temperature/weekly.hist Step: 10 minutes Database Age: 0.000992 weeks (1 steps) Last update: Mon Sep 13 16:20:40 2004 (1095117640) Current average: 7.105000, Var: 38.280217 AUTHORS
The code and documentation were contributed by Stanford Linear Accelerator Center, a department of Stanford University. This documentation was written by Elizabeth Cassell <e_a_c@mailsnare.net> and Alf Wachsmann <alfw@slac.stanford.edu> COPYRIGHT AND DISCLAIMER
Copyright 2004 Alf Wachsmann <alfw@slac.stanford.edu> and Elizabeth Cassell <e_a_c@mailsnare.net> All rights reserved. perl v5.8.4 2004-09-21 CFETOOLINFO(8)
All times are GMT -4. The time now is 02:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy