Search Results

Search: Posts Made By: vchee
2,466
Posted By vchee
Yes just saw it, tested and working. Thanks all...
Yes just saw it, tested and working. Thanks all for the help :)
2,466
Posted By vchee
How do I change it to apply to only lines with...
How do I change it to apply to only lines with "CNAME"? Will grep work? Thanks.
2,466
Posted By vchee
The Text is as follows, mars IN ...
The Text is as follows,

mars IN A 202.27.17.78
sentosa IN A 202.27.17.100
www IN CNAME mars
majordomo IN CNAME mars...
2,466
Posted By vchee
Append a searched string with another string using sed
Hi,

I need to replace and append a string in a text if grep is true. For eg:

grep ABC test.txt | grep -v '\.$' | awk {'print $4'} | sed "s/ ?

How do I replace all instances of "print $4"...
2,125
Posted By vchee
Thanks for all the help. It works.
Thanks for all the help. It works.
2,125
Posted By vchee
Maths in shell scripts
Hi,

Need help on this. I need to increment a variable by 1 but retain as 2 characters.

I am using expr to do additions:
NEWSERIAL=`expr $SERIAL + 1`

$SERIAL can range from 01-99. After...
14,491
Posted By vchee
Thanks for all the help. Works fine.
Thanks for all the help. Works fine.
14,491
Posted By vchee
grep exact string from a file
Hi,

I have the following output from a file

zone "adm.test.com" {
abc
test1.db
}
zone "test.com" {
xyz
test2.db
}
zone "1.test.com.sg" {
1abc
test3.db
}
zone "3.test.com.uk" {
1xyz...
Showing results 1 to 8 of 8

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