Sponsored Content
Top Forums UNIX for Advanced & Expert Users help with private keys (blocs) extraction from file Post 302506152 by pat38000 on Friday 18th of March 2011 04:37:43 PM
Old 03-18-2011
Hi fpmurphy

no need to decode really, I just need to extract these blocs into separate files as hey are. Also, there is no need to take the length of each line into account... It might as well be one unique long (but wrapped) line.

Actually, only the extraction of blocs should be considered here. Another example :


----- start -----
Lorem ipsum an eos sumo accusam abhorreant, an mucius fabulas mei. Eum id dicit consulatu. No nec debet ridens debitis. Vis eu luptatum salutatus adversarium, affert omnium mnesarchum usu et, ex nibh nusquam torquatos pri.
----- end -----
----- start -----
Ullum aperiri virtute an his, qui ex solet tation. Veniam viderer evertitur eos ne. Ad percipit euripidis ius, nam no exerci melius labores. Ea vide doming minimum vix. No tempor latine quaerendum vis. Et labores menandri theophrastus per, eam diam laoreet inciderint ne.
----- end -----
----- start -----
Accumsan dignissim mea ei. Est et libris molestiae. Solum vivendo consulatu ea per. Cum ad sanctus salutatus.
----- end -----

etc.

Thanks !
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

arrow keys / special keys

how to use the arrow keys in shell scripting. is there any special synatax / command for this. i just want to use the arrow keys for navigation. replies appreciated raguram R (3 Replies)
Discussion started by: raguramtgr
3 Replies

2. UNIX for Advanced & Expert Users

SSH public and private keys

Firstly, i apologise if i have posted in a wrong section of the forum. Please let me know which is the correct section my post should go to. I have to SCP a file from one server(server A) to another (server B). I read around that a secure way is to use public and private keys. Assuming my... (2 Replies)
Discussion started by: new2ss
2 Replies

3. UNIX for Dummies Questions & Answers

ssh public/private Keys

Hello, I have an issue with an outside party trying to deliver a file to our server via SFTP. I have setup the .ssh directory under the home directory for the user account that is being used and setup the authorized_keys file with correct permissons etc for .ssh directory and file. We... (2 Replies)
Discussion started by: richo king
2 Replies

4. HP-UX

Problem - Creating SSH Public/Private keys. Please help.

HI, I'm trying to create SSH public/private keys using following command. hp023:/users/vikram> ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/users/vikram/.ssh/id_rsa): rsa Enter passphrase (empty for no passphrase): Enter same passphrase... (9 Replies)
Discussion started by: vickramshetty
9 Replies

5. Solaris

ssh private keys stored on home server

Where in the world are the ssh private keys stored on the home server? I know the public keys are renamed to authorized_keys under the /export/home//.ssh directory on the remote server. (1 Reply)
Discussion started by: jastanle84
1 Replies

6. UNIX for Advanced & Expert Users

openssh 5.3 needs password vs. 4.3 using private keys

Hello, I just installed a bran new Centos 6.2 including openssh 5.3. On older servers I installed older Linux including openssh 4.3, I am using keygen with private/public keys to log root on all servers (in a LAN) without typing password each time. To do this, of course, I have my local... (4 Replies)
Discussion started by: epoins
4 Replies

7. Shell Programming and Scripting

Shell script for SFTP using Public and private keys

Hi all, I needed a shell script for file transfering using public/private keys for authentication. Could you please help me out on this? A procedure to write a shell script is enough. Thanks in advance. Regards. Vidya N (8 Replies)
Discussion started by: Vidya N
8 Replies

8. Shell Programming and Scripting

SFTP - Private and Public keys

Hi All, I have a query....say on server A, I have generated the Private and Public keys and shared the public key with server B. Now i can surelyconnect(without password) from server A to server B..... but can i similarly connect from server B to server A as well Regards (1 Reply)
Discussion started by: Arpit Narula
1 Replies

9. Shell Programming and Scripting

sftp using private and public keys

hi guys , i have few files i have to do sftp, the public and private key work like a magic , no problem at all the syntax is as below sftp -0 identityfile=~/ure/blsl/loc2/.ssh/id_rsa_ssh1 ssh1@remote >log_dir/file.timestamp<<end lcd folder cd folder put * quit end ================ my... (3 Replies)
Discussion started by: rockymayavia
3 Replies

10. Shell Programming and Scripting

FILE_ID extraction from file name and save it in CSV file after looping through each folders

FILE_ID extraction from file name and save it in CSV file after looping through each folders My files are located in UNIX Server, i want to extract file_id and file_name from each file .and save it in a CSV file. How do I do that? I have folders in unix environment, directory structure is... (15 Replies)
Discussion started by: princetd001
15 Replies
Graph::Easy::Layout::Chain(3pm) 			User Contributed Perl Documentation			   Graph::Easy::Layout::Chain(3pm)

NAME
Graph::Easy::Layout::Chain - Chain of nodes for layouter SYNOPSIS
# used internally, do not use directly use Graph::Easy; use Graph::Easy::Layout::Chain; my $graph = Graph::Easy->new( ); my ($node, $node2) = $graph->add_edge( 'A', 'B' ); my $chain = Graph::Easy::Layout::Chain->new( start => $node, graph => $graph, ); $chain->add_node( $node2 ); DESCRIPTION
A "Graph::Easy::Layout::Chain" object represents a chain of nodes for the layouter. METHODS
new() my $chain = Graph::Easy::Layout::Chain->new( start => $node ); Create a new chain and set its starting node to $node. length() my $len = $chain->length(); Return the length of the chain, in nodes. my $len = $chain->length( $node ); Given an optional $node as argument, returns the length from that node onwards. For the chain with the three nodes A, B and C would return 3, 2, and 1 for A, B and C, respectively. Returns 0 if the passed node is not part of this chain. nodes() my @nodes = $chain->nodes(); Return all the node objects in the chain as list, in order. add_node() $chain->add_node( $node ); Add $node to the end of the chain. start() my $node = $chain->start(); Return first node in the chain. end() my $node = $chain->end(); Return last node in the chain. layout() my $todo = $chain->layout(); Return an action stack as array ref, containing the nec. actions to layout the chain (nodes, plus interlinks in the chain). Will recursively traverse all chains linked to this chain. merge() my $chain->merge ( $other_chain ); my $chain->merge ( $other_chain, $where ); Merge the other chain into ourselves, adding its nodes at our end. The other chain is emptied and must be deleted by the caller. If $where is defined and a member of $other_chain, absorb only the nodes from $where onwards, instead of all of them. error() $last_error = $node->error(); $node->error($error); # set new messags $node->error(''); # clear error Returns the last error message, or '' for no error. dump() $chain->dump(); Dump the chain to STDERR, to aid debugging. EXPORT
None by default. SEE ALSO
Graph::Easy, Graph::Easy::Layout. AUTHOR
Copyright (C) 2004 - 2006 by Tels <http://bloodgate.com>. See the LICENSE file for more details. perl v5.14.2 2011-12-23 Graph::Easy::Layout::Chain(3pm)
All times are GMT -4. The time now is 10:01 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy