Microsoft
Software
Hardware
Network
Question : Perl or awk
Hi!
I’m trying to convert the output of a svcs –a into a cvs file to load
It into a mysql db, and I have a limited success in using a awk command
To split my fields
This is my awk command
svcs -a | grep disable | awk '{print $1", " "yes" ", "$2", " $3", "}' > /var/tmp/svcs-out
which produces this which mysql won’t recognize I suspect it would like
something like CVS and I don’t hnow how to convert the output into a CVS
Thank you for any help
disabled, yes, Jul_21, svc:/network/ipsec/ike:def
ault,
disabled, yes, Jul_21, svc:/network/ipsec/manual-
key:defaul
t,
disabled, yes, Jul_21, svc:/network/dns/client:de
fault,
Answer : Perl or awk
what does the output of svcs -a look like, and what would you like the result in /var/tmp/svcs-out to look like?
Random Solutions
How can I use double click function on a subform datasheet to open a new form with a specific record?
What do I need to do with my existing win 2003 server DC when adding a Win 2008 SBS in the domain as a GC
I need a document Management System need HELP?
CAB (inside MSI) files Vs EXE file
How to turn off warnings in Word when opening Hyperlinks
TV SETUP WITH MULTIPLE INPUTS
Autologoff from C# app
Remote desktop options
Problem starting Mysql server
NDR spam on exchange 2003