Sponsored Content
Full Discussion: splitting value
Top Forums Shell Programming and Scripting splitting value Post 302576570 by SAYGIN on Friday 25th of November 2011 08:52:12 AM
Old 11-25-2011
splitting value

Hello, i want to take a one word from my file.

-- myfile.txt --
test
blablabla
suPHP_ConfigPath /home/performe/etc
blablabla
etc. bla bla.
-- myfile.txt --


How can i take performe from this file ?


Thank you.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need help in splitting the file

Hi, I got a file which may have 100 - 500 rows with header and trailer... based on the total number of real rows ( excluding header and trailer) I want to break the file in 3 or 4 files .. Coded like this .. but giving error in the AWK in 8th line of below code. awk 'NR > 5 {print line}... (3 Replies)
Discussion started by: Vaddadi
3 Replies

2. Shell Programming and Scripting

splitting a file

I have a huge file with 13 million records , how do i split this file into 13 files which has 1 million records in each ( each record is one line) I tried this but how to print the second million etc cat file | head -1000000 > file1 cat file | tail -1000000 >file13 please shed some... (1 Reply)
Discussion started by: ramky79
1 Replies

3. UNIX for Dummies Questions & Answers

splitting the files

Hi, I have some files with 2 million odd records which i need to split into chunks of 0.5 millions. I have the file sorted with a key column in order. The same key value can appear as 4 or 5 records in the file. Hence after splitting we are checking whether all the key values are present in the... (5 Replies)
Discussion started by: dnat
5 Replies

4. UNIX for Dummies Questions & Answers

Help splitting file

hi, i was wondering how do i split a large text output file from a keyword, e.g. as soon as 'saveabc.dat' appears in the file. any answers would be much appreciated. thanks:confused: (3 Replies)
Discussion started by: shabs1985
3 Replies

5. Shell Programming and Scripting

splitting the file

Hi , I have one file which has many headers. Say suppose HEDAER ..data DATA DATA ..data ..data HEADER ..data ..data DATA .data HEADER. ..data ..data If there are 3 HEADERS in source file then I need to split the source file into 3 separate file.... (2 Replies)
Discussion started by: tanyaheerani
2 Replies

6. AIX

Splitting the File

Hello I have a requirement where i have to split the file into number of files. Lets say i have 200 records and i need to split the file with 50 records each which would be 4 files. If the file has 60 records then first 50 records in first file and then rest of the 10 records in second file. if... (3 Replies)
Discussion started by: dsdev_123
3 Replies

7. Shell Programming and Scripting

help in splitting

Hi experts, In the lines below I am trying to copy only the words which come after "//" into an array short nloh; // Comments int age; // Age of the person Please help me in achieving this After the code, the output of the array should Comments Age of the person (6 Replies)
Discussion started by: ramakanth_burra
6 Replies

8. UNIX for Dummies Questions & Answers

Help with file splitting

Hey everyone, I would really appreciate some help with a problem I have filing away some data I have. I have multiple fasta files that have different pieces of information in each. I want to split each file into parts, and then file away each separate part into its own file. Here is an example... (8 Replies)
Discussion started by: Sneeketeeke
8 Replies

9. Shell Programming and Scripting

Splitting columns

Hi Friends, My input file has more than 20 columns UniProtKB A0A183 LCE6A GO:0031424 GO_REF:0000037 IEA UniProtKB-KW:KW-0417 P Late cornified envelope protein 6A LCE6A_HUMAN|C1orf44|LCE6A protein taxon:9606 20120303 UniProtKB ... (9 Replies)
Discussion started by: jacobs.smith
9 Replies

10. Shell Programming and Scripting

Help with splitting of file

Hi, I'm beginner in UNIX I would like to split file in separate files depending on Pattern. Input file looks like:-A B C brfbeg A B C brfbeg A B C brfbeg . . n so on (7 Replies)
Discussion started by: Rohit_Mokal
7 Replies
EBook::Tools::MSReader(3pm)				User Contributed Perl Documentation			       EBook::Tools::MSReader(3pm)

NAME
EBook::Tools::MSReader - Helper code for working with Microsoft Reader (.lit) e-books. SYNOPSIS
use EBook::Tools::MSReader qw(find_convertlit find_convertlit_keys system_convertlit); $EBook::Tools::MSReader::convertlit_cmd = '/opt/convertlit/clit'; $EBook::Tools::MSReader::convertlit_keys = '/opt/convertlit/keys.txt'; my $convertlit = find_convertlit(); my $keyfile = find_convertlit_keys(); system_convertlit(infile => 'myfile.lit', dir => 'myfile-unpacked'); PROCEDURES
All procedures are exportable, but none are exported by default. "find_convertlit()" Attempts to locate the convertlit executable by making a test execution on predicted locations (including just checking PATH) and looking in the EBook::Tools user configuration directory (see "userconfigdir()" in EBook::Tools. Returns the system command used for a successful invocation, or undef if nothing worked. This will use package variable $convertlit_cmd as its first guess, and set that variable to the return value as well. "find_convertlit_keys($filename)" Attempts to locate the convertlit "keys.txt" file by checking predicted filenames, both in the current working directory and in the EBook::Tools user configuration directory (see "userconfigdir()" in EBook::Tools. If $filename is provided, the file "basename-keys.txt" will also be checked in both locations. Returns the name of the first file found, or undef if nothing was found. This will use package variable $convertlit_keys as its first guess, and set that variable to the return value as well. "system_convertlit(%args)" Runs "convertlit" to extract or downconvert a MS Reader .lit file. The procedures find_convertlit() and find_convertlit_keys() are both called to locate necessary helper files. Returns the return value from convertlit, or undef if convertlit or the input file could not be found, or neither output file nor directory is specified. Arguments o "infile" The input filename. If not specified or invalid, the procedure croaks. o "outfile" The output filename. If this is specified convertlit will perform a downconversion. o "dir" The output directory. If this is specified, and "outfile" is not, convertlit will perform an extraction. If both this and "outfile" are specified, convertlit will downconvert and place the downconverted file into the specified directory. o "keyfile" The location of the "keys.txt" file containing the encryption keys, if available. This is only required if the ".lit" file is DRM- protected and package variable $convertlit_keys does not point to the correct file. BUGS AND LIMITATIONS
o All handling happens through ConvertLIT as an external helper. Native Perl code may eventually be written to handle non-DRMed extraction. o Unit tests are unwritten AUTHOR
Zed Pobre <zed@debian.org> LICENSE AND COPYRIGHT
Copyright 2008 Zed Pobre Licensed to the public under the terms of the GNU GPL, version 2. ConvertLIT (not included) is copyright 2002, 2003 Dan A. Jackson, and licensed under the terms of the GNU GPL, version 2 or later. perl v5.10.1 2012-01-05 EBook::Tools::MSReader(3pm)
All times are GMT -4. The time now is 09:01 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy