Search Results

Search: Posts Made By: kdelok
2,659
Posted By kdelok
Regex to match when input is not a certain string (can't use grep -v)
Hey everyone,

Basically, all I'm looking for is a way to regex for not a certain string. The regex I'm looking to avoid matching is:

D[A-Z]222

i.e. an equivalent of:

awk '!/D[A-Z]222/'
...
15,156
Posted By kdelok
Suppress awk warnings
Hello everyone,

Sorry if this is a bit of an RTM thing, but I can't find any flags for suppressing warnings with awk and Googling (this site too) didn't yield much useful. Does anyone know how to...
8,883
Posted By kdelok
Perhaps multiply the number of days difference by...
Perhaps multiply the number of days difference by 9 (for 9 working hours) and subtract the working hours not included on the first day and last day? Similarly subtract 9 from days which are weekends.
19,205
Posted By kdelok
getopts with non-option arguments?
Hello everyone,

Is it possible to use getopts and also receive arguments without option flags?

e.g. myscript arg1 arg2 -a arg3 -b arg4

If so, how do you stop getopts from exiting as soon as...
Showing results 1 to 4 of 4

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