05-12-2011
Basic IF Command Question
Hi,
I have a months worth of data that I need to separate into weekly files. There is a date column with dates in the following format: YYYYMMDD.
I'm thinking I can create the weekly files by using a grep command combined with an IF command and specify each day of the specific week I'm extracting within the if command. Does this seem efficient? How would I set up the IF command?
cwl
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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
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
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
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
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
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
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
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
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
: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
LEARN ABOUT FREEBSD
makewhatis.local
MAKEWHATIS.LOCAL(8) BSD System Manager's Manual MAKEWHATIS.LOCAL(8)
NAME
makewhatis.local, catman.local -- start makewhatis or catman for local file systems
SYNOPSIS
/usr/libexec/makewhatis.local [options] directories ...
/usr/libexec/catman.local [options] directories ...
DESCRIPTION
The makewhatis.local utility starts makewhatis(1) only for file systems physically mounted on the system where the makewhatis.local is being
executed. Running makewhatis by periodic weekly for rw nfs-mounted /usr may kill your NFS server -- all NFS clients start makewhatis at the
same time! So use this wrapper for cron(8) instead of calling makewhatis directly. The catman.local utility is using for same purposes as
makewhatis.local but for catman(1).
FILES
/etc/periodic/weekly/320.whatis run makewhatis.local every week
/etc/periodic/weekly/330.catman run catman.local every week
SEE ALSO
catman(1), find(1), makewhatis(1), cron(8), periodic(8)
HISTORY
The makewhatis.local utility appeared in FreeBSD 2.2.
BSD
April 26, 1996 BSD