yep yep it works fine to show the timestamp correctly but after that i wish to do a grep on my log file counting XX alarms like so :
for i in $(seq 0 $HOUR); do printf "%s %02d:\n" "$DATE" "$i"; printf $(grep "$DATE $i:" $LOGFILE | grep -i alarm_type1 | wc-l); done
but if i do this, the grep line would use the $i variable as 1 instead of 01.
My logfile timestamp being "Feb 28 HH:MM:SS" It would grep nothing on "Feb 28 1:"
Hi,
Normally, I will manually to use "ll" command to list the following file from \FILE\CACHE\ directory and check the jump seq. Can I write a script to loop or/and check jump seq file (if jumped seq and show "missing seq no" message for me)
-rw-rw----+ 1 user develop 14012 Sep 4... (1 Reply)
Hi guys. i have the following script:
1 #!/bin/bash
2 linkcount=$(grep "/portal" tickets | wc -l)
3 grep "/portal" tickets > links
4 for i in $(seq 1 $linkcount); do
5 echo "BLYAT"
6 let link$i=$(sed -n "$i"p links)
7 echo $
8 done
the problem is, that "let" can`t... (1 Reply)
Hi all. Im trying to use a sequence in a while loop like this below. I need it for navigating a year, month, day folder structure where a user can input the start date and have it go to the desired end date. The script will grab a certain file on each day then move onto the next. Ive got all that... (3 Replies)
I usually just browse the forum/google for answers, however I've been stuck on a problem for a number of hours now and I've decided to join up and actually ask I've searched the forum ad naseum in an attempt to find answer to my query, however so far I have been unsuccessful.
I'm no expert... (3 Replies)
Assuming one does not have such luxuries as bash, zsh, jot, rs, perl, etc. what is the most elegant way to print out a formatted date series like this:
01-01-2010
01-02-2010
01-03-2010
...
02-01-2010
02-02-2010
...
Can I accomplish this with just basic shell builtins and seq, or... (3 Replies)
i have something like this
tablesName="abc def hij akn ... etc etc"
count=0
for i in $tablesName
do
echo -en "\b\b\b\b\b\b\b\b\b\b\b\b\bTableCount: $count"
count=`expr $count + 1`
done
the above is just a description wha i need is when the loop executes
the... (1 Reply)
I am processing RNA-seq data files that have been aligned using RUM. One of the output files is a *.sam that includes:
Unique alignments
Non-unique alignments
original read files
I want to extract only the unique alignments by pulling out alignments that have "IH:i:1" (indicates this read... (2 Replies)
Hi! I'm trying to do this:
1 -
2 -
3 -
4 -
5 -
I'm using seq for this:
seq 1 20 > filename.txt
How do I get the "-"? I've tried -f per man but can't get anything to work. Also, is there an easier or better way than using sequence? Thanks! (6 Replies)
Discussion started by: TonyBe
6 Replies
LEARN ABOUT SUSE
wmcalclock
WMCALCLOCK(1) General Commands Manual WMCALCLOCK(1)NAME
WMCALCLOCK - Dockable Calendar Clock
SYNOPSIS
wmCalClock [-h] [-display <Display>] [-b <Volume>] [-e <Command>] [-24] [-s] [-S] [-L <Longitude>] [-l] [-tc <color>] [-bc <color>] [-tek-
ton] [-comicsans] [-arial] [-luggerbug] [-jazz]
DESCRIPTION
wmCalClock is a simple Calendar Clock with anti-aliased text and drop-shadows.
OPTIONS -h Display list of command-line options.
-display [display]
Use an alternate X Display.
-b <Volume>
Beep on the hour with specified volume (between -100 and 100).
-e <Command>
Command to execute via double click of mouse button 1. (Use quotes if your command has white space in it).
-24 Show time in 24-hour format instead of default 12-hour AM/PM format.
-s Show Greenwich Mean Sidereal Time (GMST) in 24-hour format.
-S Dont show seconds.
-L <Longitude>
Show Local Sidereal Time (LST) in 24-hour format. Longitude is in degrees (- for West + for East).
-l Force use of lower color pixmap to conserve colors. On displays with <= 8 bits, the low color Pixmap will always be used.
-tc <color>
Change color of time-field digits.
-bc <color>
Change color of time-field background.
-tekton
Use the Tekton font for time field.
-arial Use the Arial (i.e. Helvetica) font for time field.
-jazz Use the JazzPoster font for time field.
-luggerbug
Use the LuggerBug font for time field.
-comicsans
Use the ComicSans font for time field.
BUGS
Who knows? (Let me know if you find any).
AUTHOR
Michael G. Henderson <mghenderson@lanl.gov>
16 December 1998 WMCALCLOCK(1)