Search Results

Search: Posts Made By: success
1,058
Posted By success
regular expression for ab1-cd1.
Hi,
I am trying to write a regular expression in perl to match pattern like "ab1-cd1"(<alphabet><alphabet><number>-<alphabet><alphabet><number>) as below.

m/^[A-Za-z]+[0-9]+-+[-A-Za-z]+[0-9]?$/
...
3,007
Posted By success
It is working for me franklin. Thanks a lot,...
It is working for me franklin.
Thanks a lot, for your help , could you please explain this command.
3,007
Posted By success
unable to use new line in sed search pattern.
hi ,
my lilo.conf is as shown below :

prompt
default=Primary
read-only

image=/boot/bzImage
label=Primary
root=/dev/md0
append="reboot=t md=0 ip=off panic=5 quiet...
Forum: Programming 07-05-2010
1,475
Posted By success
Need to modify contents of file with complex patterns
Hi ,
Thanks for the solution, it modifies the lines with /var1 to /var and /flx1 to /flx respectively, But how to delete the lines with /dev/vg0/var and /dev/vg0/flx. when i use "grep -v...
Forum: Programming 07-05-2010
1,475
Posted By success
Need to modify contents of file with complex patterns.
hi,
my fstab file content is like this along with some other lines:

/dev/vg0/var1 /var1 ext3 defaults 0 2
/dev/vg0/flx1 /flx1 ext3 defaults 0 2
/dev/vg0/var /var ext3 defaults 0 ...
Showing results 1 to 5 of 5

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