Search Results

Search: Posts Made By: woodson2
4,188
Posted By Scrutinizer
Hi, case statements cannot use regular...
Hi, case statements cannot use regular expressions, they use pattern matches, which have a different syntax.

Since there is no specification in this thread of what shell is going to be used, this...
4,188
Posted By Scrutinizer
Perhaps something like this, you'll get the idea ...
Perhaps something like this, you'll get the idea

trap clear EXIT
DIALOG=${DIALOG=dialog}
while :
do
rfcval=$($DIALOG --title "RFC NUMBER" --clear \
--inputbox "Please enter an...
1,376
Posted By Scott
Assign "when" inside the loop.
Assign "when" inside the loop.
1,376
Posted By Corona688
To execute a command, put it in $( ). You can...
To execute a command, put it in $( ). You can embed this inside "" quotes like a variable.

i.e.

echo "$(date +%Y-%m-%d-%H-%M-%S) server down"

I recomend YYYY-MM-DD-HH-MM-SS dates at the...
1,404
Posted By RudiC
You can grep -fgrplist on stdin from a pipe. ...
You can grep -fgrplist on stdin from a pipe.

Nested loops look like e.g. while read atd
do while read grp
do your_commands
done < GRPLIST
done < ATDINFILE The outer...
5,554
Posted By Corona688
I'm not sure it's 100% perfect. You should test...
I'm not sure it's 100% perfect. You should test it and make sure it's killing the logging processes correctly on logout.

if [ -z $PS1 ]
then
:
else
DATE="/bin/date" ...
2,984
Posted By Scrutinizer
Try replacing \s with [[:space:]]
Try replacing \s with [[:space:]]
2,984
Posted By Scrutinizer
There should not be double quotes around the...
There should not be double quotes around the regex...
3,453
Posted By Corona688
You can put redirection and pipes after a...
You can put redirection and pipes after a here-doc so, something like tee filename <<EOF | sendmail -t
...
...
EOF
4,066
Posted By Corona688
You don't need backreferences for that, just...
You don't need backreferences for that, just match zero or more -Suffix things like (-[A-Z][a-z]+)* Try my post above
4,066
Posted By neutronscott
Don't need to back reference anyway right? Have...
Don't need to back reference anyway right? Have you tried just removing all the "?:"
Showing results 1 to 11 of 11

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