Dear All,
I would like to split a file of the following format into multiple files based on the number in the 6th column (numbers 1, 2, 3...):
ATOM 1 N GLY A 1 -3.198 27.537 -5.958 1.00 0.00 N
ATOM 2 CA GLY A 1 -2.199 28.399 -6.617 1.00 0.00 ... (3 Replies)
Hello,
What's the best way to split a large into multiple files based on the last digit in the first column.
input file:
f
2738483300000x0y03772748378831x1y13478378358383x2y23743878383802x3y33787828282820x4y43748838383881x5y5
Desired Output:
f0
3738483300000x0y03787828282820x4y4
f1... (9 Replies)
I am unable to spit the file based on the 2nd column passing as a parameter with awk command.
Source file:
“100”,”customer information”,”10000”
“200”,”customer information”,”50000”
“300”,”product information”,”40000”
script: the command is not allowing to pass the parameters with the awk... (7 Replies)
Hi,
I have a fixed width text file without any header row. One of the columns contains a date in YYYYMMDD format.
If the original file contains 3 dates, I want my shell script to split the file into 3 small files with data for each date.
I am a newbie and need help doing this. (14 Replies)
Hi All
I have one query,say i have a requirement like the below code should be
move to diffent files whose maximum lines can be of 10 lines.Say in the below example,it consist of 14 lines.
This should be moved logically using the data in the fisrt coloumn to file1 and file 2.The data of first... (2 Replies)
i have file1.txt
asdas|csada|130310|0423|A1|canberra
sdasd|sfdsf|130426|2328|A1|sydney
Expected output : on eaceh third and fourth colum, split into each two characters
asdas|csada|13|03|10|04|23|A1|canberra
sdasd|sfdsf|13|04|26|23|28|A1|sydney (10 Replies)
Hi,
I have a similar input format-
A_1 2
B_0 4
A_1 1
B_2 5
A_4 1
and looking to print in this output format with headers. can you suggest in awk?awk because i am doing some pattern matching from parent file to print column 1 of my input using awk already.Thanks!
letter number_of_letters... (5 Replies)
Hi All,
I have a requirement to split file into 2 sets of file. Below is a sample data of the file
AU;PTN;24EX;25-AUG-14;AU;123;SE;123;Test NN;;;;ASD;
AU;PTN;24EX;25-AUG-14;AU;456;SE;456;Test NN;;;;ASD;
AU;PTN;24EX;25-AUG-14;AU;147;SE;147;Test NN;;;;ASD;... (6 Replies)
Hi all,
Newbie here, so please bear over with my stupid question :)
I have used far too long time today on figuring this out, so I hope that someone here can help me move on.
I have some annotation data for a transcriptome where I want to split a column containing NCBI accession IDs into a... (7 Replies)
Hi Team,
I have a requirement in such a way that need to split the file into two based on which column particular value appears.Please find my sample file below.
Lets consider the delimiter of this file as either comma or two colons.(:: and ,). So I need to split the file in such a way that all... (2 Replies)
Discussion started by: ginrkf
2 Replies
LEARN ABOUT LINUX
apr-1-config
APR-1-CONFIG(1) User Commands APR-1-CONFIG(1)NAME
apr-1-config - Return metainformation about apr library
SYNOPSIS
apr-1-config [OPTION]
DESCRIPTION
The apr-1-config program is used to retrieve information about the apr library in the system. It is typically used to compile and link
against the library.
When linking with libtool, an application should do something like:
APR_LIBS="`apr-1-config --link-libtool --libs`"
or when linking directly:
APR_LIBS="`apr-1-config --link-ld --libs`"
An application should use the results of --cflags, --cppflags, --includes, and --ldflags in their build process.
OPTIONS
Known values for OPTION are:
--prefix[=DIR]
change prefix to DIR
--bindir
print location where binaries are installed
--includedir
print location where headers are installed
--cc print C compiler name
--cpp print C preprocessor name and any required options
--cflags
print C compiler flags
--cppflags
print C preprocessor flags
--includes
print include information
--ldflags
print linker flags
--libs print additional libraries to link against
--srcdir
print APR source directory
--installbuilddir print APR build helper directory
--link-ld
print link switch(es) for linking to APR
--link-libtool
print the libtool inputs for linking to APR
--shlib-path-var
print the name of the shared library path env var
--apr-la-file
print the path to the .la file, if available
--apr-so-ext
print the extensions of shared objects on this platform
--apr-lib-target
print the libtool target information
--apr-libtool
print the path to APR's libtool
--version
print the APR's version as a dotted triple
--help print the help
AUTHOR
This manual page was written by Vincent Danjean <Vincent.Danjean@ens-lyon.org> for the Debian project (but may be used by others).
apr-1-config 1.2.2 March 2006 APR-1-CONFIG(1)