Sponsored Content
Top Forums Shell Programming and Scripting How to segregate a section from big file? Post 303026651 by solaris_1977 on Saturday 1st of December 2018 02:54:21 AM
Old 12-01-2018
Quote:
Originally Posted by Peasant
I suppose you are reading the following document :
AWS IP Address Ranges - Amazon Web Services

If we look at the example 5 and 6 in the documentation, it is quite close to your requirement.
Yes, I did, but I was not able to run that command, even if I have configured AWS cli on my computer.
But curl+jq worked very well. Thanks
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to view a big file(143M big)

1 . Thanks everyone who read the post first. 2 . I have a log file which size is 143M , I can not use vi open it .I can not use xedit open it too. How to view it ? If I want to view 200-300 ,how can I implement it 3 . Thanks (3 Replies)
Discussion started by: chenhao_no1
3 Replies

2. Shell Programming and Scripting

cutting a section of a big file

Hi, I have a text file 10giga size. Opening the file with vi takes forever ... Im intersting only with the 100 first records. Is there way to copy those 100 lines to new file (with no need to open the file)? Thanks (6 Replies)
Discussion started by: yoavbe
6 Replies

3. Shell Programming and Scripting

segregate the file based on matching patterns

print 'test' SETUSER 'dbo' go create proc abc as /Some code here/ go SETUSER go print 'test1' SETUSER 'dbo' go Create Procedure xyz as /some code here/ go SETUSER go print 'test2' SETUSER 'dbo' (2 Replies)
Discussion started by: mad_man12
2 Replies

4. UNIX for Dummies Questions & Answers

How big is too big a config.log file?

I have a 5000 line config.log file with several "maybe" errors. Any reccomendations on finding solvable problems? (2 Replies)
Discussion started by: NeedLotsofHelp
2 Replies

5. Shell Programming and Scripting

Extract section of file based on word in section

I have a list of Servers in no particular order as follows: virtualMachines="IIBSBS IIBVICDMS01 IIBVICMA01"And I am generating some output from a pre-existing script that gives me the following (this is a sample output selection). 9/17/2010 8:00:05 PM: Normal backup using VDRBACKUPS... (2 Replies)
Discussion started by: jelloir
2 Replies

6. Shell Programming and Scripting

Delete a section of a file if...

i have a file as below that has n section : 2006 0101 1236 49.3 L 37.902 48.482 0.0 Teh 5 0.2 2.7LTeh 1 GAP=238 E Iranian Seismological Center, Institute of Geophysics, University of Tehran 6 ... (5 Replies)
Discussion started by: oreka18
5 Replies

7. Shell Programming and Scripting

Fetch a section from a file

Hi, I have a file like... $cat file1 +++++++++++++++++++ client1 +++++++++++++++++++++++++++++ col1 col2 col3 ------ ----- ----- (0 rows affected) ========================================================= +++++++++++++++++++ client1 +++++++++++++++++++++++++++++ col1 col2 col3... (6 Replies)
Discussion started by: sam05121988
6 Replies

8. Shell Programming and Scripting

How can i segregate?

I have this file which contains 91886,000,MiniC2-00,1.9.12,aML,en 91886,000,MiniC2-00,1.9.12,aML,en 91886,000,MiniC2-00,1.9.12,aML,en 91886,000,MiniC2-00,1.9.12,aML,en 91886,000,MiniC2-00,1.9.12,aML,en 91886,000,MiniC2-00,1.9.12,aML,en 91886,000,MiniC2-00,3.0,aML,en... (6 Replies)
Discussion started by: nikhil jain
6 Replies

9. Shell Programming and Scripting

Segregate by suffixed file names using Korn Shell

I have following files at /dir1 a.csv.20131201 b.csv.20131201 c.csv.20131201 d.csv.20131201 a.csv.20131202 b.csv.20131202 c.csv.20131202 d.csv.20131202 ....................... ....................... ....................... ....................... I need to move these files to... (4 Replies)
Discussion started by: JaisonJ
4 Replies

10. UNIX for Advanced & Expert Users

Segregate file content using sed backreference

I have some text like EU1BTDAT:ASSGNDD filename='$SEQFILES/SUNIA.PJ008202.CARDLIB/DATECARD' EU1BTDATEST:ASSGNDD filename='$SEQFILES/SUNIA.PJ008202.CARDLIB/DATECARD' EU1CLOSEDATES:ASSGNDD filename='$SEQFILES/SUNIA.PJ008202.CARDLIB/DATECARD' EU1DATED:ASSGNDD... (8 Replies)
Discussion started by: gotamp
8 Replies
MojoMojo::Formatter::Amazon(3pm)			User Contributed Perl Documentation			  MojoMojo::Formatter::Amazon(3pm)

   module_loaded
       Return true if the module is loaded.

NAME
MojoMojo::Formatter::Amazon - Include Amazon objects on your page. DESCRIPTION
This is an url formatter. it takes urls containing amazon and /-/ or /ASIN/ and make a pretty formatted link to that object in the amazon web store. It automatically handles books/movies/dvds and formats them as apropriate. You can also pass 'small' as a parameter after the url, and it will make a thumb link instead of a blurb. METHODS
format_content_order Format order can be 1-99. The Amazon formatter runs on 5. format_content calls the formatter. Takes a ref to the content as well as the context object. get <asin> Connects to amazon and retrieves a Net::Amazon object based on the supplied ASIN number. small <property> Renders a small version of the formatter. blurb <property> renders a full width blurb of the product, suitable for reviews and such. DVD <property> Product information suitable for DVD movies. Book <property> Product information suitable for books. Music <property> Product information suitable for music CDs. SEE ALSO
MojoMojo, Module::Pluggable::Ordered, Net::Amazon. AUTHORS
Marcus Ramberg <mramberg@cpan.org LICENSE
This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2011-02-12 MojoMojo::Formatter::Amazon(3pm)
All times are GMT -4. The time now is 02:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy