Paste multiple files, but only the sorted head -50
Hello,
I want to merge multiple files (under hundreds folders) side by side. File name are the same but folder are different.
like
Normally it can be done as
but my challenge is I want to only merge the first 50 lines of each file as
to create intermediate files, then merge the intermediate files to have the result. I'd like to combine looping thru the folders with paste such as:
Of course this did not work. My question is how to pipe the multiple "head | sort" with paste to have single line command.
Thanks a lot!
Hi all,
please give me the commands using which i can compare 2 sorted files and get the difference in third file, indiating where the difference is from either file1 or file2.
as:
File1 (Original file)
GARRY
JOHN
JULIE
SAM
---------------
File2
DEV
GARRY
JOHN
JOHNIEE (7 Replies)
Hi,
As part of our project, we need to load historical data for a year before our system is live. We have the data feed files that we need to load. However, I need to make sure that the file structure (number of fields separated by a comma) on the field is same for all the files of the same... (1 Reply)
the sorting is based on name of file,
file size
modification time stamps o f file
it should dislay the output in the following format
"." and ".." enteries should be ignored
please give some idea how to do it (1 Reply)
Hi!
I've got a build process where scripts create multiple targets from their sources. But here I'm running into a conceptual problem of GNU make: If one has multiple targets in a dependency, make applies the rules once for every target that is out of sync - which is correct for normal... (3 Replies)
I have multiple files; each file contains a certain data in a column view
simply i want to combine all those files into one file in columns
example
file1:
a
b
c
d
file 2:
1
2
3
4
file 3:
G (4 Replies)
Hi
I have a requirement like below
I need to sort the files based on the timestamp in the file name and run them in sorted order and then archive all the files which are one day old to temp directory
My files looks like this
PGABOLTXML1D_201108121235.xml... (1 Reply)
Hi all,
I've multiple files. In this case 5. Space separated columns. Each file has 12 columns. Each file has 300-400K lines.
I want to get the output such that if a value in column 2 is present in all the files then get all the columns of that value and print it side by side.
Desired output... (15 Replies)
Hi all,
I am trying to paste thousands of files together into a matrix. Each file has only 1 column and all the files have the same number of rows (~27k rows). I tried
paste * > output as well as some other for loops
but the output only contains the columns from the 1st and last files. The... (8 Replies)
I have data of an excel files as given below,
file1
org1_1 1 1 2.5 100
org1_2 1 2 5.5 98
org1_3 1 3 7.2 88
file2
org2_1 1 1 2.5 100
org2_2 1 2 5.5 56
org2_3 1 3 7.2 70
I have multiple excel files as above shown.
I have to copy column 1, column 4 and paste into a new excel file as... (26 Replies)
Dear all
I have a multiple directories, say for example org1, org2, org3 ..... org100 and each directory having a file namely dnaG.fasta. I need to copy all the dnaG.fasta file from each directory and paste in another directory fastconcatg. Therefore, my script has to copy dnaG.fasta file from... (5 Replies)
Discussion started by: dineshkumarsrk
5 Replies
LEARN ABOUT MOJAVE
flists
FLIST(1) [nmh-1.5] FLIST(1)NAME
flist, flists - list the number of messages in given sequence(s)
SYNOPSIS
flist [+folder1 [+folder2 ...]] [-sequence name1 [-sequence name2 ...]] [-all | -noall] [-showzero | -noshowzero] [-recurse | -norecurse]
[-fast | -nofast] [-alpha | -noalpha] [-version] [-help]
flists is equivalent to flist -all
DESCRIPTION
Flist is used to search a list of folders and display the number of messages in these folders that are in a given sequence or set of
sequences (for example the "unseen" sequence). This is especially useful if you use some mechanism such as slocal or procmail (typically in
conjunction with rcvstore) to pre-sort your mail into different folders before you view it.
By default, the command flist will search the current folder for the given sequence or sequences (usually "unseen"). If (possibly multi-
ple) folders are specified on the command line with +folder, then all these folders are searched for the given sequence(s). Flist will
display for each folder searched, the number of messages in each of the specified sequences, and the total number of messages.
The option -sequence is used to specify the name of a sequence in which to search for. This option may be used multiple times to specify
multiple sequences. If this is not given, then the default is to search for all the sequences specified by the "Unseen-Sequence" profile
component. For more details about sequences, read the mh-sequence(5) man page.
Typically, flist will produce a line for each sequence, for every folder that is searched, even those which do not contain any messages in
the given sequence. Specifying -noshowzero will cause flist to print only those folder/sequence combinations such the folder has a non-
zero number of messages in the given specified sequence.
If -recurse is given, then for each folder that is search, flist will also recursively descend into those folders to search subfolders for
the given sequence.
If -fast is given, only the names of the folders searched will be displayed, and flist will suppress all other output. If this option is
used in conjunction with -noshowzero, then flist will only print the names of those folders searched that contain messages in in at least
one of the specified sequences.
Multiple Folders
If the option -all is given (and no folders are specified with +folder), then flist will search all the folders in the top level of the
users nmh directory. These folders are all preceded by the read-only folders, which occur as "atr-cur-" entries in the user's nmh context.
An example of the output of flist -all is:
/work/Mail has 5 in sequence unseen (private); out of 46
inbox+ has 10 in sequence unseen ; out of 153
junklist has 0 in sequence unseen ; out of 63
postmaster has 1 in sequence unseen ; out of 3
The "+" after inbox indicates that it is the current folder.
The "private" flag indicates that the given sequence for that folder is private. See the mh-sequence(5) man page for details about private
sequences.
If the option -all and +folder are both specified, then flist will search this folder, and all its first level subfolders for the given
sequence. You may specify multiple folders in this way.
If flist is invoked by a name ending with "s" (e.g. flists), then the switch -all is assumed by default.
The sorting order for the listing is alphabetical (with -alpha), or in a priority order defined by the "Flist-Order" profile entry (with
-noalpha). Each item in the "Flist-Order" is a folder name or a folder name pattern that uses * to match zero or more characters. Longer
matching patterns have precedence over shorter matching patterns. For example:
Flist-Order: personal petproject mh* * admin *junk
This order puts a few interesting folders first, such as those with mail addressed to you personally, those about a pet project, and those
about mh-related things. It places uninteresting folders at the end, and it puts everything else in the middle in alphabetical order.
FILES
$HOME/.mh_profile The user profile
PROFILE COMPONENTS
Path: To determine the user's nmh directory
mh-sequences: File that contains public sequences
Unseen-Sequence: The name of the unseen message sequence
Flist-Order: To sort folders by priority
SEE ALSO folder(1), rcvstore(1), slocal(1), mh-sequence(5)DEFAULTS
`-sequence' defaults to Unseen-Sequence profile entry
`-showzero'
`-noall'
`-norecurse'
`-noalpha'
`-nofast'
CONTEXT
If +folder is given, it will become the current folder. If multiple folders are given, the last one specified will become the current
folder.
MH.6.8 11 June 2012 FLIST(1)