Search Results

Search: Posts Made By: Sekullos
2,662
Posted By Scrutinizer
Quickly flung together : for i in $(seq 0...
Quickly flung together :
for i in $(seq 0 $(date +"%H")); do printf "%s %02d:\n" "$(date +"%b %d")" "$i"; done | grep -f- "$LOGFILE" | grep -i alarm_type1 | wc-l
2,662
Posted By Corona688
Capture the output of printf for your string...
Capture the output of printf for your string then.

You can also avoid the wc -l by using grep -c.

D=$(printf "%s %02d\n" "$DATE") ; printf "%s: %d" $D $(grep "$D" $LOGFILE | grep -c -i...
4,755
Posted By Scrutinizer
According to David Korn: KSH-93 -...
According to David Korn:


KSH-93 - Frequently Asked Questions (http://kornshell.com/doc/faq.html) #Q17

I would install a genuine ksh93 package and try again...
2,662
Posted By Scrutinizer
Try: printf "%s %02d:\n" "$DATE"...
Try:
printf "%s %02d:\n" "$DATE" "$i"
4,743
Posted By Corona688
find is trying to look inside the directory and...
find is trying to look inside the directory and fails to do so after it's deleted.
2,045
Posted By Corona688
You already found and moved your FILENAME...
You already found and moved your FILENAME directory. The only time you'd ever delete it is when mv didn't work :wall:

If you'd tell me exactly what that function takes as inputs and exactly what...
2,854
Posted By birei
Put your 'function.cfg' in the PATH environment...
Put your 'function.cfg' in the PATH environment variable as you say in first post.

In your script, put:

source function.cfg
ConfirmOrExit
Does this work? Any error?

Regards,
Birei
2,854
Posted By birei
Hi, It should work, take a look: $ cat...
Hi,

It should work, take a look:

$ cat mytest.sh
#!/bin/bash ...
8,142
Posted By binlib
I was experimenting different regexes and...
I was experimenting different regexes and accidentally left out the escapes of the parentheses (or you can add -regextype with the type of your favorite regexes.)
find . -regex...
8,142
Posted By yazu
I think you want this find . -iname '*.ext' |...
I think you want this
find . -iname '*.ext' | egrep '[^0-9](001|01|[^0-9])\.ext$'
But you should understand
1) that *.ext matches every file with .ext extension and *01.ext matches *201.ext, etc....
Showing results 1 to 10 of 10

 
All times are GMT -4. The time now is 03:56 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy