Search Results

Search: Posts Made By: dbashyam
598
Posted By Peasant
Well, at least, you should show us some attempts...
Well, at least, you should show us some attempts at the problem.

Try this awk
awk ' {gsub("\\[|\\]","",$0); split($7,a,":"); date=$1 FS $2 FS $3 FS $4; print date, a[1], a[3] } ' <your file>

...
18,284
Posted By bakunin
I am not sure what you mean by "netgroup". If you...
I am not sure what you mean by "netgroup". If you mean NIS-groups they are stored in /etc/netgroup on AIX and i suppose on other systems too - if you could tell us your OS we could probably give...
8,290
Posted By rajamadhavan
This will solve your need. This is a giveaway,...
This will solve your need. This is a giveaway, but you are expected to make an attempt to write it yourself and post to the forum when you hit any issue.


#!/usr/bin/perl -w

use strict;...
1,763
Posted By elixir_sinari
The value of ? ($?) which you are testing is for...
The value of ? ($?) which you are testing is for the echo $ver statement (which will almost always be true (0)) and subsequently, only 12.5.txt will be appended to.

You don't seem to be needing...
1,763
Posted By elixir_sinari
awk '{while(match($0,/12\.5\.0\.2307/)) { ...
awk '{while(match($0,/12\.5\.0\.2307/))
{
print substr($0,RSTART,RLENGTH)
sub(/12\.5\.0\.2307/,"")
}}' file
or with Perl:
perl -ne 'while(/(12\.5\.0\.2307)/){
print $1 . "\n";...
876
Posted By ctsgnb
awk '/^CLASS/{print $NF}' infile
awk '/^CLASS/{print $NF}' infile
Showing results 1 to 6 of 6

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