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 decrease the amount of time that it takes Outlook 2007 to Send an Receive emails when Outlook is using POP3 for its mail connectivity?
How to close linq to sql connection in database access layer
limited access to view
Window 7 Repair
null fields
copying long file names
Populate value for the first item
firefox and thunderbird displaying text/font funny
Remote Desktop Server 2003 Group Policy and Server 2008
Can MS Excel 2007 design the same layout image (See below) using scalable framed cells and embed fields text or images for use by web developers