Search Results

Search: Posts Made By: surender reddy
1,765
Posted By Aia
You could try, awk -F'[,:]' ' ...
You could try,
awk -F'[,:]' ' # separate by a coma or a colon
BEGIN{
print "COUNT,BNG_IP,PORT,OVLAN,DSLAM_IP" # start by displaying the header
}...
1,396
Posted By panyam
I am providing you a sample output , apply the...
I am providing you a sample output , apply the same logic to other rows as well.

$ cat file
I-H-2048-10GB-M
I-H-4096-12GB-M
I-H-2048-p1000-M

for id in `cat file`
do
echo "UPDATE...
6,143
Posted By panyam
Are you capturing the log of the script any...
Are you capturing the log of the script any where?

I guess , the gzip may not be available in path!!!..

Do this,issue below command:

$ which gzip

copy the above path and use it in the...
1,525
Posted By Yoda
I edited my post, try that code instead.
I edited my post, try that code instead.
1,525
Posted By Yoda
awk '/^[a-zA-Z]/ { if(/^Card...
awk '/^[a-zA-Z]/ {
if(/^Card Status/||/^Max Circuits/||/^Num Circuits \(TOTAL\)/)
f=1;
else
f=0;
} f==1 {
print;
} /^IP/ {
...
1,308
Posted By Jotne
awk '!/server/' infile > outfile
awk '!/server/' infile > outfile
1,106
Posted By Yoda
join -1 1 -2 1- from join manual page: -o...
join -1 1 -2 1- from join manual page:

-o 1.1 1.2 1.3 2.3 - from join manual page:
1,106
Posted By Yoda
join -1 1 -2 1 -o 1.1 1.2 1.3 2.3 file1 file2
join -1 1 -2 1 -o 1.1 1.2 1.3 2.3 file1 file2
3,787
Posted By RudiC
man awk is your friend... However, gsub ( ...
man awk is your friend... However,

gsub ( # globally substitute pattern (= substring) in string
/ # pattern start
.local. # <any single...
7,066
Posted By Scrutinizer
On Solaris use /usr/xpg4/bin/awk rather than awk...
On Solaris use /usr/xpg4/bin/awk rather than awk or nawk
2,879
Posted By RudiC
Try this as a starting point. This works on linux...
Try this as a starting point. This works on linux mawk, not necessarily on other versions of awk (esp. the separator for split). As you can see, the conditions to pick fields are quite sensitive, so...
Showing results 1 to 11 of 11

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