Search Results

Search: Posts Made By: sags007_99
14,065
Posted By elixir_sinari
sed '/doing/s/.*//' file
sed '/doing/s/.*//' file
1,883
Posted By durden_tyler
$ $ cat f38 conn=1 uid=oracle conn=2...
$
$ cat f38
conn=1 uid=oracle
conn=2 uid=db2
conn=3 uid=oracle
conn=4 uid=hash
conn=5 uid=skher
conn=6 uid=oracle
conn=7 uid=mpalkar
conn=8 uid=anarke
conn=9 uid=oracle
conn=1 op=-1...
1,592
Posted By chihung
Try this: #! /bin/sh if [ $# -ne 1 ];...
Try this:

#! /bin/sh

if [ $# -ne 1 ]; then
echo "Usage: $0 <uid>"
exit 1
fi

awk -v uid=$1 '
NF==2 && $1~/^conn=/ && $2~/^uid=/ {
split($1, a, "=")
split($2,...
1,592
Posted By durden_tyler
$ $ $ cat f38 conn=1 uid=oracle conn=2...
$
$
$ cat f38
conn=1 uid=oracle
conn=2 uid=db2
conn=3 uid=oracle
conn=4 uid=hash
conn=5 uid=skher
conn=6 uid=oracle
conn=7 uid=mpalkar
conn=8 uid=anarke
conn=9 uid=oracle
conn=1 op=-1...
2,705
Posted By mirni
Would this be good enough? $ awk '/^[^...
Would this be good enough?

$ awk '/^[^ ]/{en=$1}/^ *inet /{print en,$2}' infile
en0: 10.27.53.21
en0: 10.27.58.48
en1: 10.26.52.25
en1: 10.26.52.41
lo0: 127.0.0.1
1,242
Posted By balajesuri
$ cat input 10.183.12.13 10.183.100.100 ...
$ cat input
10.183.12.13
10.183.100.100
10.10.10.10
10.145.123.123
10.183.1.1
$
$ sed 's:10\.183\.[0-9]\{1,3\}\.[0-9]\{1,3\}:10.174.17.55:g' input
10.174.17.55
10.174.17.55
10.10.10.10...
Showing results 1 to 6 of 6

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