Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Diubidone
  • Order by date
  1. Diubidone

    Bash Script - Users administration on squid

    I posted this on the Linux section but after doing some search on the forum I find this section more appropriate, sorry! Hey all, We need to setup a squid-proxy for a hotel, and we need to do some automation on the users administration. For this we have created a solution based on a bash...
  2. Diubidone

    Basic code to create a csv file from txt file.

    Strange, I installed gawk and that command doesn't work...why did you proposed gawk instead of awk?
  3. Diubidone

    Basic code to create a csv file from txt file.

    Here's the original code without real names (privacy ;) ) desc samid fn ln acctexpires disabled Dip XIII soc IBM temp.lastname Firstname Lastname 06/11/2009 no...
  4. Diubidone

    Basic code to create a csv file from txt file.

    PS sorry, I forgot to explain the firs line, those are fields of a LDAP Organisation Unit describing users parameters.
  5. Diubidone

    Basic code to create a csv file from txt file.

    desc samid fn ln acctexpires disabled Zone XIII IBM temp.Doe John Doe 06/11/2009 no Is this ok?
  6. Diubidone

    Basic code to create a csv file from txt file.

    It works but with a little issue: every space is replaced by comma. I have this example desc samid fn ln acctexpires disabled Dip IBM temp.lastname John Doe 06/11/2009 no Cosmopol temp.lastname2 Claire Madarena 14/12/2009 no Is it possible to trasform...
  7. Diubidone

    Basic code to create a csv file from txt file.

    Hi all, I'm trying to figure out what would a basic awk command to create a csv file out of a very basic (but very large) txt file. Txt file is formated like desc samid fn ln acctexpires disabled description user name lastname never yes and I need this in normal csv...
  8. Diubidone

    CSV PARSER

    Ok the problem was the csv file... I copied the content and pasted in another file.csv and the thing worked like a charm... I know I'm busting your nuts but could you explain me the code?
  9. Diubidone

    CSV PARSER

    yes the system is the same... I'll try to work on my csv file... Thank you for your help...
  10. Diubidone

    CSV PARSER

    Your script works fine on the example I gave to you but not on my original csv file. So there's a problem with the original csv file... It's really long, we're talking about 5000 rows...could it be the reason?
  11. Diubidone

    CSV PARSER

    mmmh I this command: sort -t , 25_26_10_2009.csv | awk -F, 'l==$1{print"\t",$3;next}{l=$1}1' I have no output whatsoever is \t the variable you're using to select rows? Shoud I replace it? Thanks for your help...
  12. Diubidone

    CSV PARSER

    Hi, Wow thx for ur reply...two things: 1. The connections are already summoned in the original csv file as I said in first thread: Here's a piece of the csv after I did the sort -t s Domain\X901K631,6,10.144.190.58 Domain\X901K631,6,10.144.190.59 Domain\X901K631,6,10.144.190.60...
  13. Diubidone

    CSV PARSER

    Hi, I need to parse a big CSV file that has some issues It contains list of users of a network as it follows: domain\firstname.secondname,number_of_connections_with_that_user,ip_used_to_connect Example: college\john.doe,5,192.168.1.1 college\mario.rossi,1,192.168.1.3...

Part and Inventory Search

Back
Top