I am using the Sublime Plugin LogHighlight.
I can use RegEx there to highlight some lines in sublime.
Now I need to find every line, that has a number of above 25000.
the lines look like this:
smart_sdl.result: 8947
smart_sdm.result: 8947
smart_sdn.result: 25000
Currently I am using the following RegEx:
It finds for example 25000 or 35000 or 68300
But it doesnt find 43000 or 40000 or 64000.
How can i proper get all number above 25000?
The numbers have a maximum of six digits.
Also, how can I do the same for numbers from 10000 to 24999?
I have some files in unix
ls -1
TMH.backend.tar.421E-03.Z
TMH.backend.tar.421E-04.Z
TMH.backend.tar.421E-05.Z
TMH.backend.tar.421E-06.Z
TMH.backend.tar.421E-07.Z
TMH.backend.tar.421E-08.Z
TMH.backend.tar.421E-08.Z.bak20081223164844
TMH.backend.tar.421E-09.Z... (1 Reply)
Hi guys
I need to find both negative and positive numbers from the following text file. And i also dont need 0.
0
8
-7
-2268
007
-07
-00
-0a0
0a0
-07a0
7a00
0a0
Can someone please give a regex to filter out the values in red. I tried a few things in awk but it didnt work... (9 Replies)
Hi,
I need to find out the files whcih contains date in YYYYMMDD in their name.
I don't know if I can use regex in side find.
Now I am using commad for the same purpose which is not full proof.
find . -name "**" -print
But I want then It should contain at lease 8 digit in their... (3 Replies)
Hi There,
Can anybody help me out for searching this regular expression?
xxxxx.yyy.zzzz.From-ABCD.To-XYZ.xxxxxx
I would like the ID1 and ID2 (knowing which one is Id1 and id2)
.From-<ID1>.
and
.To-<ID2>.
Thanks in advance!!
Regards,
Bhaskar (4 Replies)
How to do alternation using regular expressions in the 'find' command? Like say you want to find all files that do not match the names specifically "this" or "that" within a directory using regular expressions? (10 Replies)
I'm trying to use regular expression arguments as variables. I have to surround the regular expression with double quotes or else it automatically expands that regular expression to whatever is in that directory.
Unfortunately when I run 'find' it further surrounds the double quotes with single... (6 Replies)
Experts:
I don't know that regular expressions will ever be easy for me, so if one of you guru's could help out, I'd appreciate it.
I'm trying to match a line in our syslog, but I can't figure out how to match a number inside a bracket. This is what I'm trying to match.
"Jul 16 00:01:34... (2 Replies)
Hi All
I am new to this forum and also regex.
I am using bash scripting and have a file like this
"0012","efgh","12345678","adfdf", "36598745"
"87654321","hijk","lmno"
I want the ouput to be
12345678
36598745
87654321
Criteria like this
- number
- 8 carachters long
Please let... (21 Replies)
Discussion started by: buttseire
21 Replies
LEARN ABOUT DEBIAN
fs_setcachesize
FS_SETCACHESIZE(1) AFS Command Reference FS_SETCACHESIZE(1)NAME
fs_setcachesize - Sets the size of the disk cache
SYNOPSIS
fs setcachesize [-blocks <size (0 = reset)>>] [-reset] [-help]
fs setca [-b <size (0 = reset)>>] [-r] [-h]
fs cachesize [-b <size (0 = reset)>>] [-r] [-h]
fs ca [-b <size (0 = reset)>>] [-r] [-h]
DESCRIPTION
The fs setcachesize command changes the number of kilobyte blocks of local disk space available to the Cache Manager for its data cache, on
machines that use a disk cache. The command is not operative on machines that use a memory cache.
To return the cache size to the default value specified in the third field of the local /etc/openafs/cacheinfo file, provide a value of 0
to the -blocks argument.
To return the cache size to the value set when the machine was last rebooted, use the -reset flag instead of the -blocks argument. This is
normally the amount specified in the cacheinfo file, unless the -blocks argument was included on the afsd command to override the cacheinfo
value.
To display the current cache size and amount of cache in use, for both disk and memory caches, use the fs getcacheparms command.
CAUTIONS
This command is not operative on machines using a memory cache, and results in an error message. To change memory cache size, edit the
cacheinfo file and reboot, or reboot and provide the -blocks argument to the afsd command.
On machines using a disk cache, do not set the cache size to exceed 85% to 90% of the actual disk space available for the cache directory.
The cache implementation itself requires a small amount of space on the partition.
OPTIONS -blocks <size>
Specifies the amount of disk space available for the Cache Manager to devote to the cache. The size should be a positive integer
followed by an optional suffix: "K" for kibibytes (1024 bytes, the default), "M" for mebibytes (1024 kibibytes), "G" for gibibytes
(1024 mebibytes), and "T" for tebibytes (1024 gibibytes). Provide a value of 0 to set cache size to the default specified in the
cacheinfo file.
-reset
Returns the cache size to the value set when the machine was last booted. This agrees with the value in the cacheinfo file unless the
-blocks argument was used on the afsd command.
-help
Prints the online help for this command. All other valid options are ignored.
EXAMPLES
The following command sets the disk cache size to 25000 kilobyte blocks.
% fs setcachesize -blocks 25000
Both of the following commands reset the disk cache size to the value in the cacheinfo file, assuming that the -blocks argument to the afsd
command was not used.
% fs setcachesize -blocks 0
% fs setcachesize -reset
PRIVILEGE REQUIRED
The issuer must be logged in as the local superuser root.
SEE ALSO cacheinfo(5), afsd(8), fs_getcacheparms(1)COPYRIGHT
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas
Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.
OpenAFS 2012-03-26 FS_SETCACHESIZE(1)