Search Results

Search: Posts Made By: annelisa
20,391
Posted By annelisa
Send e-mail in Shell script
How to send an error mail from a shell script
e.g.

mail destination_adr@blabla.int "Message : here an error message "

thanks, Ann.
19,882
Posted By annelisa
Ignore case sensitive in Case Switch
In a Case switch, how to ignore case sensitive in the test:

e.g.

case "$field" in
"TEST) action1;;
*) action2;;
esac


How to go in action1 in case of...
16,224
Posted By annelisa
grep
$ echo "V_43.6.543" | egrep '^.*[0-9]+\.[0-9]+\.[0-9]+$'
seems to work for something like v_3.4.5 but now for v_21.43.434" ( when version number is made of numbers of more than 1 digit !

How...
130,624
Posted By annelisa
Extract the last character of a string
How can I extract the last character of a string (withou knowing how many characters are in that string ! )
16,224
Posted By annelisa
egrep command
I'd like to grep a pattern of a version number as
*_number.number.number
number should be digit
my grep is

|egrep '^*+[0-9+\.+[0-9]+\.+[0-9]'

It works for V_3.2.1 or V _5.3.2 but not with...
17,601
Posted By annelisa
seems not working
a=TEXT_TEXT_XP_4.3.2A ( I'd like to extract 4.3.2A )

I'm typing :
echo $a |cut -f2 -d XP_

and error is cut:invalid delimiter
17,601
Posted By annelisa
cut command
I have to cut a string using a multiple character delimiter.

I use -d'XP_' -f2
But delimiter is invalid ???? :mad:

( I have tried -d 'XP_' or -d"XP_" or -d "XP_" . Same error :mad:
...
Showing results 1 to 7 of 7

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