Search Results

Search: Posts Made By: dzl
7,282
Posted By dzl
^^That is good, and it sorta worked, but I found...
^^That is good, and it sorta worked, but I found something much easier to identify an IP for a hostname:

`dig +short www.example.com`

That returns only the IP, nothing else. Works extremely...
7,282
Posted By dzl
Right, but I removed the irrelevant stuff. it now...
Right, but I removed the irrelevant stuff. it now only has 3 fields (hostname, Date, Status).

I'm understanding that the IFS (internal field separator) is being designated as a comma (,) and that...
7,282
Posted By dzl
Well, I was using the example you posted. I...
Well, I was using the example you posted. I haven't really changed anything except for the file that it reads.

The script outputs
Host:
Date:
Status:

which is good, I just want to know how...
7,282
Posted By dzl
OK this is a good start. I only need the...
OK this is a good start.

I only need the Host, Date, and Status fields (1st, 2nd, and 3rd columns, respectfully).

I would like the output to be comma separated values as well.

Also, the...
7,282
Posted By dzl
Thanks Frans. Here is a sample line from the...
Thanks Frans. Here is a sample line from the file.

1,xxx.example.com,,SSL Web Server certificate-1Year,07-Nov-09,Expired

There are about 40 more lines like that.
7,282
Posted By dzl
Parsing a CSV File
Hey guys,

I'm in the process of learning PHP and BASH scripting. I'm getting there, slowly ;)

I would like some help with parsing a CSV file. This file contains a list of hostnames, dates, and...
Showing results 1 to 6 of 6

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