Hi,
Is there any way to sort a file in cshell by sort command, sorting it by multiple fields, like to sort it first by the second column and then by the first column.
Thanks forhead (1 Reply)
I have a text file which got 6th coloumn as date and 7th coloumn as time. The text contains data for last one week. I need to remove all the data whose date & time is after 03/08/2011 06:00:00 and save it on another file
TEXT FILE
========
6 dbclstr-b IXT_Web Memphis_Prod_SQL_Diff... (4 Replies)
Hello all -
I am to this forum and fairly new in learning unix and finding some difficulty in preparing a small shell script. I am trying to make script to sort all the files given by user as input (either the exact full name of the file or say the files matching the criteria like all files... (3 Replies)
hello all,
I have an input file with four columns like this with a lot of lines
and for example, line 1 and line 5 match because the first 4 characters match and the fourth column matches too. I want to keep the line that has the lowest number in the third column. So I discard line 5.... (5 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)
Hello,
I have a file which lines' words are comma separated:
aa, bb, cc, uu b, ee, ff
bb, cc, zz, ee, ss, kk
oo, bb, hh, uu a, xx, ww
tt, aa, dd, yy aa, gg
I want to sort first by second column and in case of tie by fourth column with sort command.
So the output would be:
... (4 Replies)
I have a csv file that I would like to remove duplicate lines based on field 1 and sort. I don't care about any of the other fields but I still wanna keep there data intact. I was thinking I could do something like this but I have no idea how to print the full line with this. Please show any method... (8 Replies)
Hi,
I would like to sort a list in different ways:
1> Unique based on Field 1 with highest Field 4
For Instance Input:
1678923450;11112222333344;11-1x;2_File.xml
1678923450;11112222333344;11-1x;5_File.xml
1234567890;11113333222244;11-1x;3_File.xml
Output:
... (7 Replies)
I have /tmp dir with filename as:
010020001_S-FOR-Sort-SYEXC_20160229_2212101.marker
010020001_S-FOR-Sort-SYEXC_20160229_2212102.marker
010020001-S-XOR-Sort-SYEXC_20160229_2212104.marker
010020001-S-XOR-Sort-SYEXC_20160229_2212105.marker
010020001_S-ZOR-Sort-SYEXC_20160229_2212106.marker... (4 Replies)
Perl::Critic::Policy::Miscellanea::ProhibitUnrestrictedNUsertContributed Perl Perl::Critic::Policy::Miscellanea::ProhibitUnrestrictedNoCritic(3pm)NAME
Perl::Critic::Policy::Miscellanea::ProhibitUnrestrictedNoCritic - Forbid a bare "## no critic"
AFFILIATION
This Policy is part of the core Perl::Critic distribution.
DESCRIPTION
A bare "## no critic" annotation will disable all the active Policies. This creates holes for other, unintended violations to appear in
your code. It is better to disable only the particular Policies that you need to get around. By putting Policy names in a comma-separated
list after the "## no critic" annotation, then it will only disable the named Policies. Policy names are matched as regular expressions,
so you can use shortened Policy names, or patterns that match several Policies. This Policy generates a violation any time that an
unrestricted "## no critic" annotation appears.
## no critic # not ok
## no critic '' # not ok
## no critic () # not ok
## no critic qw() # not ok
## no critic (Policy1, Policy2) # ok
## no critic (Policy1 Policy2) # ok (can use spaces to separate)
## no critic qw(Policy1 Policy2) # ok (the preferred style)
NOTE
Unfortunately, Perl::Critic is very sloppy about parsing the Policy names that appear after a "##no critic" annotation. For example, you
might be using one of these broken syntaxes...
## no critic Policy1 Policy2
## no critic 'Policy1, Policy2'
## no critic "Policy1, Policy2"
## no critic "Policy1", "Policy2"
In all of these cases, Perl::Critic will silently disable all Policies, rather than just the ones you requested. But if you use the
"ProhibitUnrestrictedNoCritic" Policy, all of these will generate violations. That way, you can track them down and correct them to use
the correct syntax, as shown above in the "DESCRIPTION". If you've been using the syntax that is shown throughout the Perl::Critic
documentation for the last few years, then you should be fine.
CONFIGURATION
This Policy is not configurable except for the standard options.
AUTHOR
Jeffrey Ryan Thalhammer <jeff@imaginative-software.com>
COPYRIGHT
Copyright (c) 2008-2011 Imaginative Software Systems. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of this license
can be found in the LICENSE file included with this module.
perl v5.14.22012-06-07Perl::Critic::Policy::Miscellanea::ProhibitUnrestrictedNoCritic(3pm)