Search Results

Search: Posts Made By: consult4life
20,584
Posted By consult4life
In nawk you can use the tolower function to do...
In nawk you can use the tolower function to do regex matching (I just saw this in another thread a minute ago):


Equivalent to grep -i abc (I hope):

nawk '
tolower($0) ~ /abc/ {print }
'
3,783
Posted By consult4life
Use parens to capture output from time to file
>cat a.sh
echo Hello, this is a.sh running
echo Here is a.sh writing to stderr >&2

>a.sh
Hello, this is a.sh running
Here is a.sh writing to stderr

>a.sh 2>err
Hello, this is a.sh running...
35,216
Posted By consult4life
While case...esac is fine, if you have your heart...
While case...esac is fine, if you have your heart set on using 'expr' you can use expr this way:

expr $parameter : ".*$search" >/dev/null && echo Found!!!

In this form, expr returns the # of...
Showing results 1 to 3 of 3

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