Search Results

Search: Posts Made By: necron
2,404
Posted By necron
Hi Birei, Appriciated, but that would...
Hi Birei,

Appriciated, but that would involve installing perl (not default on FreeBSD) and since awk is 'base' I'll stick to that.
2,404
Posted By necron
I've solved it this way: awk '{gsub(/...
I've solved it this way:
awk '{gsub(/ /,"",$2);gsub(/,/,"-",$1);sub(/^0/,"+31",$2);print $1FS$2$3}' FS=";" file
If you have a better solution let me know, but this works fine too.
2,404
Posted By necron
Hero! Thanks a million :) The only thing I...
Hero! Thanks a million :)
The only thing I changed is the print $1":"$2$3}
I replaced the : with ; so it's still a ; seperated file for the import.

Oh one thing though, I noticed the spaces in...
2,404
Posted By necron
awk/sed/something else for csv file
Hi,

I have a filename.csv in which there are 3 colums, ie:

Name ; prefixnumber ; number
root ; 020 ; 1234567
user1,2,3 ; 070 ; 7654321


What I want is to merge colum 2 and 3 that it...
4,665
Posted By necron
Thanks alot for the quick response anbu23, ...
Thanks alot for the quick response anbu23,

As I mentioned, its a logfile with more then one line (141 lines to be exact).

$ cat PC_TODAY.LOG | awk -F "," ' { print $1 , $(NF-1) } '

Works...
4,665
Posted By necron
a SED/AWK way to remove everything except...
Hi all,

I have a logfile which has lines as following:
DOMAIN\username,Deposit,DOMAIN\ServiceAccountName,25/03/2010,00:10,\\SERVER,,,,/Ts=4BAA9BD6,,,10.00,10.03

It's a log of a pcounter...
9,353
Posted By necron
Ah ok, no problem :-) Didn't know that.
Ah ok, no problem :-)
Didn't know that.
9,353
Posted By necron
Hi Frans, I'm using sshguard already, quite...
Hi Frans,

I'm using sshguard already, quite simulair to fail2ban, but it can be used for more services then only sshd.
Thx for your advice though!

---------- Post updated at 10:17 AM...
9,353
Posted By necron
Hey Pludi, Yeah I know, I always ran ssh @...
Hey Pludi,

Yeah I know, I always ran ssh @ 22222, but from some locations the tcp 22222 outbound was blocked, while 22 wasn't.
Im still working to migrate from the IPFW to PF as firewall, since...
9,353
Posted By necron
Exactemundo! awk it is, thx alot (: ...
Exactemundo!
awk it is, thx alot (:

---------- Post updated at 12:10 PM ---------- Previous update was at 12:06 PM ----------

In case anyone cares, I added a different output, since the above...
16,848
Posted By necron
why dont use cscript (vb)? its default supported...
why dont use cscript (vb)? its default supported on all Windows versions from 2003 if I recall correct
9,353
Posted By necron
SED to add a suffix
Hi all,

Im trying to make a proper hosts.allow with the lists of sshbl.org to block the ssh brute force attackers.

The list is a text file with an IP on every line.
What I've gotten up...
1,393
Posted By necron
When I run sed without the -i the output is...
When I run sed without the -i the output is indeed just what I want, without the # line.
Should I pipe the output to a new file?

---------- Post updated at 04:00 PM ---------- Previous update was...
1,393
Posted By necron
I'm getting this when I'm running it. ...
I'm getting this when I'm running it.


When in vi(m) I'm getting:
Characters after search string, line offset and/or z command

How can I make sed/vi know that it's ok to delete all chars...
1,393
Posted By necron
Delete lines
Hi,

Can anyone help me with sed (or any other way) to delete a couple of lines?
The file begins with a couple of commented lines which i want to delete.
If I do it complains about the chars...
Forum: SCO 10-01-2009
6,236
Posted By necron
Seems that way haha, thx for the help sofar!
Seems that way haha, thx for the help sofar!
Forum: SCO 10-01-2009
6,236
Posted By necron
It's Unixware 7, Release 7.1.1. Does that make...
It's Unixware 7, Release 7.1.1.
Does that make a difference?
I found the manuals for it on The SCO Group, Inc. | Support | Docs | Documentation | UnixWare (http://sco.com/support/docs/unixware/),...
5,372
Posted By necron
I have a script on my BSD box that runs via...
I have a script on my BSD box that runs via crontab every 5 mins.
If you want I can paste the script here? It's a bash script.
Forum: SCO 09-30-2009
6,236
Posted By necron
Relink?
Thx for the response!

Do you have a link for the 'relink the kernel' part?
Or is it that simpel that you can explain it in a simple reply? :)
5,372
Posted By necron
Script
Sry, I read the question wrong... deleted previous rubish :-)

However, I have a simuliar situation. I have a Windows batchfile that moves backup files to a certain share that is accessible via...
Forum: SCO 09-30-2009
6,236
Posted By necron
Cannot create pipe
Hi,

I'm new here, so please dont shoot me if I forgot something :)
Some SCO box we've (our company) got recently from a new customer runs an app that hangs the entire box every once in a while....
Showing results 1 to 21 of 21

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