Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: Mr_47
1,480
Posted By Mr_47
tested with a similar test data. bash-3.00#...
tested with a similar test data.

bash-3.00# grep -vf a.out b.out > c.out
grep: illegal option -- f
Usage: grep -hblcnsviw pattern file . . .
bash-3.00# awk 'FNR==NR{a[$0]++;next} !($0 in a) '...
1,480
Posted By Mr_47
this is not working, Im using solaris 10 64bit (...
this is not working, Im using solaris 10 64bit ( unix ) btw

bash-3.00# grep -vf a.out b.out > c.out
grep: illegal option -- f
Usage: grep -hblcnsviw pattern file . . .
bash-3.00# awk...
1,480
Posted By Mr_47
Script to remove same content from other file
Hi/ Hello all Guru here,

I am trying to create script to remove same content from other file, already tested few idea and found that in unix it is limited to sort and uniq. There is many script...
1,496
Posted By Mr_47
fully tested, sorry wasn't aware of the non gz...
fully tested, sorry wasn't aware of the non gz file. ( thanks for reminding)

now it perfectly work and most importantly I learnt something today tq again Gurus here!


[root|] gzcat...
1,496
Posted By Mr_47
tested to remove -f, its running but result seems...
tested to remove -f, its running but result seems not right

gzcat mail.log.*.gz | cat - mail.log*[!g][!z] | grep a.out > c.out

cat: cannot open mail.log*[!g][!z]
[root] ls
a.out ...
1,496
Posted By Mr_47
yup similar idea but cant use grep -f grep:...
yup similar idea but cant use grep -f

grep: illegal option -- f
Usage: grep -hblcnsviw pattern file . . .
1,496
Posted By Mr_47
Shell script to search all entries from 1 file to all other separated files.
Hi,

I am trying to create a shell script in unix platform, hence will need info on how to start and any ideas from you guys. million thx.

Objective: Shell script to search all entries from 1...
2,878
Posted By Mr_47
thanks man that's work perfect! more...
thanks man that's work perfect!

more code1.out
rm -f b.out c.out
human=0
machine=0

while read line
do
TM=${line%%AM*}AM
[ ${#TM} -ge ${#line} ] && TM=${line%%PM*}PM
...
2,878
Posted By Mr_47
bash-3.00# uname -a SunOS mldap1 5.10...
bash-3.00# uname -a
SunOS mldap1 5.10 Generic_137138-09 i86pc i386 i86pc


its Solaris 10
2,878
Posted By Mr_47
got error when run this, bash-3.00# more...
got error when run this,

bash-3.00# more code1.out

rm -f b.out c.out
human=0
machine=0

while read line
do
TM=${line%%AM*}AM
[ ${#TM} -ge ${#line} ] && TM=${line%%PM*}PM
...
2,878
Posted By Mr_47
yup thats works great, anyway anyone can do it in...
yup thats works great, anyway anyone can do it in shell script as my unix server did not have any python inside.
2,878
Posted By Mr_47
Hi, from Jan 9, 2013 3:01:41 AM...
Hi,

from
Jan 9, 2013 3:01:41 AM com.sun.uwc.common.auth.IdentitySSOAuthFilter doFilter INFO login:41.203.67.54:null:login successful
Jan 9, 2013 3:01:43 AM...
2,878
Posted By Mr_47
if a.out contains, Jan 9, 2013 3:01:36 AM ...
if a.out contains,

Jan 9, 2013 3:01:36 AM com.sun.uwc.common.auth.IdentitySSOAuthFilter doFilter INFO login:41.203.67.54:null:login successful
Jan 9, 2013 3:01:41 AM...
2,878
Posted By Mr_47
thanks, need to test it out first. will let you...
thanks, need to test it out first. will let you know the result soon.

---------- Post updated at 03:40 PM ---------- Previous update was at 03:01 PM ----------

seems there is no python in my...
2,878
Posted By Mr_47
nope, a.out is the existing file. after we ran...
nope, a.out is the existing file. after we ran the shell script the command will generate 2 set of files, one is b.out which contain only IP from the a.out file and the other one is c.out which also...
2,878
Posted By Mr_47
Extract IP from logs and
story
------------------------
The file is a.out, it consist a set of logs from user access to my system ( email system)


question
--------------------------
using shell script, how can we...
5,543
Posted By Mr_47
Hi, need help with another question related...
Hi,

need help with another question related to manipulation base on 1 file, to extract selected information to a new file base on some conditions.


I got this pattern in a file a.out with...
2,657
Posted By Mr_47
nevermind, found it myself. thx
nevermind, found it myself. thx
5,543
Posted By Mr_47
works perfectly, thank you so much you help me a...
works perfectly, thank you so much you help me a lot.
2,262
Posted By Mr_47
hi I got error when run this command,
hi I got error when run this command,
5,543
Posted By Mr_47
Hi, I have another question, How to remove...
Hi, I have another question,

How to remove any domains(@something.com) in the file structure like this one?

-bash-3.00# more 30days.out
user/ris1@yiris.net/INBOX
user/ris2@giris.net/INBOX ...
2,657
Posted By Mr_47
this script will run ns-inactivate.pl with userid...
this script will run ns-inactivate.pl with userid including the domain,

-bash-3.00# ./tmnetscript.sh
Executing for the tmnet00003@solarisX.com.ru
Command : ./ns-inactivate.pl -h mldap1 -p 389...
2,262
Posted By Mr_47
thx its works
thx its works
5,543
Posted By Mr_47
my god, its works perfectly thank you so much.
my god, its works perfectly thank you so much.
5,543
Posted By Mr_47
my god, you guys are pro. it work now, every one...
my god, you guys are pro. it work now, every one of it. thx guys

---------- Post updated at 05:18 PM ---------- Previous update was at 03:44 PM ----------

another question, I generated this...
Showing results 1 to 25 of 48

 

Featured Tech Videos

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