Sponsored Content
Top Forums UNIX for Dummies Questions & Answers analyzing list with street addresses Post 302495600 by yinyuemi on Thursday 10th of February 2011 05:10:47 PM
Old 02-10-2011
it works fine in my computer,
Is the results what you want?

Code:
 awk -F ",| " '/Strawinskylaan/{print >"Strawinsky_"$2".txt"}' file
ls *.txt
Strawinsky_1.txt  Strawinsky_2.txt  Strawinsky_3.txt
cat Strawinsky_1.txt
Strawinskylaan 1, 1077XW Amsterdam
Strawinskylaan 1, 1077XW Amsterdam
cat Strawinsky_2.txt
Strawinskylaan 2, 1077XW Amsterdam
cat Strawinsky_3.txt
Strawinskylaan 3, 1077XW Amsterdam
Strawinskylaan 3, 1077XW Amsterdam

Y
 

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Help extracting MAC addresses from List

Hello all. I have a large number of text files outputted from various Netstumbler Wireless Scans; from which I need to extract the MAC addresses of the various Access Points. The Text files look like this: # $Creator: Network Stumbler Version 0.4.0 # $Format: wi-scan summary with... (9 Replies)
Discussion started by: dhs23
9 Replies

2. UNIX Desktop Questions & Answers

Using Mailx to send to list of email addresses

Im trying to use a shell script to send to a list of email addresses in a txt file. Here is what i have tried but it keeps sending to dead.letter... Success.ksh contains... mailx -s"Night Batch Success" 'cat /Scripts/email_addresses.txt' < /Scripts/email_body_message.txt The email body... (1 Reply)
Discussion started by: aguad3
1 Replies

3. Solaris

Command to list all the VIP addresses assigned to Solaris server

Hello All, I want to list all the VIP addresses assigned to Solaris server. whats the command we have use on solaris for this? Please help Thanks!! Weblogic Consultant (1 Reply)
Discussion started by: weblogicsupport
1 Replies

4. Shell Programming and Scripting

Extract list of IP addresses from a text file.

I have an xml file with IP addresses all over the show. I want to print only the IP addresses and cut off any text before or after the IP address. Example: Note: The IP addresses (x.x.x.x) do not consistently appear in the xml file as per the pattern below. Sometimes there are text before... (8 Replies)
Discussion started by: lewk
8 Replies

5. Shell Programming and Scripting

how to run an already made script run against a list of ip addresses solaris 8 question

how to run an already developed script run against a list of ip addresses solaris 8 question. the script goes away and check traffic information, for example check_GE-VLANStats-P3 1.1.1.1 and returns the results ok. how do I run this against an ip list? i.e a list of 30 ip addresses (26 Replies)
Discussion started by: llcooljatt
26 Replies

6. Shell Programming and Scripting

Formatting list of IP addresses into a grep command

Hi I have an input file with a list of random IP addresses, each on a new line. Below is just an example as I omitted the real IP addresses for obvious reasons. Input: random_ip.txt 10.0.0.1 10.0.0.1 10.0.0.1 10.0.0.1 10.0.0.1 10.0.0.1 10.0.0.1 10.0.0.1 10.0.0.1 10.0.0.1... (7 Replies)
Discussion started by: lewk
7 Replies

7. UNIX for Dummies Questions & Answers

List Contacted Web Addresses?

Greetings. I'm in the process of tracking down an issue with Firefox, and need some way of gathering the actual web addresses which are connected to from localhost. The specific problem centers around the determination/capture of the exact generated app.update.url address formed by the... (2 Replies)
Discussion started by: LinQ
2 Replies
Data::Faker::StreetAddress(3pm) 			User Contributed Perl Documentation			   Data::Faker::StreetAddress(3pm)

NAME
Data::Faker::StreetAddress - Data::Faker plugin SYNOPSIS AND USAGE
See Data::Faker DATA PROVIDERS
us_zip_code Return a random zip or zip+4 zip code in the US zip code format. Note that this is not necessarily a valid zip code, just a 5 or 9 digit number in the correct format. us_state Return a random US state name. us_state_abbr Return a random US state abbreviation. (Includes US Territories and AE, AA, AP military designations.) From the USPS list at http://www.usps.com/ncsc/lookups/usps_abbreviations.html street_suffix Return a random street suffix (Drive, Street, Road, etc.) From the USPS list at http://www.usps.com/ncsc/lookups/usps_abbreviations.html street_name Return a fake street name. street_address Return a fake street address. secondary_unit_designator Return a random secondary unit designator, with a range if needed (secondary unit designators are things like apartment number, building number, suite, penthouse, etc that differentiate different units with a common address.) secondary_unit_number Return a random secondary unit number, for the secondary unit designators that take ranges. SEE ALSO
Data::Faker AUTHOR
Jason Kohles, <email@jasonkohles.com> COPYRIGHT AND LICENSE
Copyright 2004-2005 by Jason Kohles This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.1 2005-07-14 Data::Faker::StreetAddress(3pm)
All times are GMT -4. The time now is 04:25 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy