Search Results

Search: Posts Made By: Kashyap
4,878
Posted By pravin27
-o, --only-matching Print only...
-o, --only-matching
Print only the matched (non-empty) parts of a matching line, with each such part on a separate output line.

Below would resolve your issue.

grep...
4,878
Posted By mirwasim
Use grep -w 'Installed' test.txt ...
Use
grep -w 'Installed' test.txt
Installed XYZ XYZA Image, API 18, revision 2
1,620
Posted By Yoda
awk '/SNAPSHOT/ { s=$2; v=$3; f++; c++; }...
awk '/SNAPSHOT/ {
s=$2; v=$3; f++; c++;
} $(NF-1)=="project" {
p=$NF; f++;
} $(NF-1)=="Name" {
n=$NF; f++;
} $(NF-1)=="environment" {
e=$NF; f++;
} f==4 {
printf "%d. The snapshot %s is...
1,620
Posted By Yoda
awk '/SNAPSHOT/{print ++c". The snapshot "$2" is...
awk '/SNAPSHOT/{print ++c". The snapshot "$2" is created by volume: "$3;}' filename
3,755
Posted By sathyaonnuix
you can try this: sendmail -t <<EOF ...
you can try this:

sendmail -t <<EOF
Content-type: text/html
TO: $mailaddress
CC: $mailccaddress
FROM: kashyap@xxx.com
SUBJECT: My html email
IMPORTANCE: High
$(sed 's/--*[$-]/\n/g' file |...
3,755
Posted By sathyaonnuix
You can try this, but they may be more easier way...
You can try this, but they may be more easier way than mine :)

sed 's/--*[$-]/\n/g' file | awk -F'|' 'BEGIN{print "<html>\n<table border="3" cellspacing="1" cellpadding="2">"} {print...
3,755
Posted By bakunin
A link in HTML looks like the following: <a...
A link in HTML looks like the following:

<a href=[target URL here]>[link text here]</a>

The following sed-command should get you what you want:

sed 's/\(URL:[^ ]*\)/<a href=\1>THE...
1,355
Posted By Don Cragun
The grep command Subbeh proposed works fine if...
The grep command Subbeh proposed works fine if your system's grep supports the -o option. If your system's grep doesn't support the -o option, the following command will also work:
awk '{for(i=1;...
1,355
Posted By Subbeh
grep -o /client[^\ ]* inputfile > outputfile
grep -o /client[^\ ]* inputfile > outputfile
Showing results 1 to 9 of 9

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