sort works with fields. It can't know by this input where a field begins and where it ends because there is no field separator. Because of this many dates are written in format
which is easy to sort.
Either way, I think you got to reformat your date in some way before working with sort, depending on how you want to use it.
Here an example:
If you need the old format, you see the substr functions above and just read up about them in some awk manual and reformat your now sorted date back.
When i am trying to
$uncompress tress.dmp.Z
I am getting tress.dmp.Z permission denied.
What action i have to perform to unzip or uncompress
It has rw-r--r-- permissions
When i am trying to change the permissions chmod 744 it says.
chmod: Warning: can't change tress.dmp.Z
Just... (1 Reply)
hi,
how can i saerch for foll pattern
the line contains many entries:
xxx xxxx ddd ffff gggg 30%
rr eeee eeee rrrr rrrr 100%
rr eeee eeee rrrr rrrr 43%
how can i display lines having size greater than 40%?what pattern shud i use in grep?
thanks!
regards
vivek.s (1 Reply)
There is problem in my system whenever i run a command lsattr -El mem0 it shows 3gb memory and when i run lscfg -vp | grep Size it shows 8 modules of 512 mb. it means it shows 4 gb how is it possible. (1 Reply)
Hi all
I am getting the following error when i execute my cronjob :
stty: : No such device or address
stty: : No such device or address
What could be the problem.
Thanks
Rahul (3 Replies)
Hi
I have a directory having following three set of files as follows:
test.20060804
test.20060801
test.20060802
I want to list the latest file which is less than 20060803. in this case, it will be test.20060802.
How can i achieve the same? Any pointers to above will be appreciated.
... (7 Replies)
Hi all,
i want mount directory with permission
#NFS Server = FreeBSD
/etc/export =
/data -alldirs -network 192.168.0.0 -mask 255.255.255.0
#NFS Client = Ubuntu
192.168.0.8:/data /dir nfs intr
but i m unable to create folder in /dir
whts the wrong?
Please... (4 Replies)
# mount /dev/dsk/c1d1s1 /mnt
mount: /dev/dsk/c1d1s1 is not this fstype
I tried to mount the above raw patition and it gave an error. but can someone help (3 Replies)
Hi,
I have downloaded as86-0.16.17.tar file. When I umcompressed it I found it consisting of C source and header files. How can i create an executable for compiling assembly programs. Kindly help me with this. I am working on windows XP professional and system is HP DX 2700.
Zulfi. (0 Replies)
hi could some body help me?
im making a program that writes in a file.txt
how can i compare my "char x" to another char?
#include<iostream>
#include<fstream>
#include<string.h>
using namespace std;
int main()
{
char x;
char y;
cout << "enter title" << endl; (0 Replies)
Perl::Critic::Policy::BuiltinFunctions::ProhibitLvalueSuUser(Contributed Perl DocumPerl::Critic::Policy::BuiltinFunctions::ProhibitLvalueSubstr(3)NAME
Perl::Critic::Policy::BuiltinFunctions::ProhibitLvalueSubstr - Use 4-argument "substr" instead of writing "substr($foo, 2, 6) = $bar".
AFFILIATION
This Policy is part of the core Perl::Critic distribution.
DESCRIPTION
Conway discourages the use of "substr()" as an lvalue, instead recommending that the 4-argument version of "substr()" be used instead.
substr($something, 1, 2) = $newvalue; # not ok
substr($something, 1, 2, $newvalue); # ok
The four-argument form of "substr()" was introduced in Perl 5.005. This policy does not report violations on code which explicitly
specifies an earlier version of Perl (e.g. "use 5.004;").
CONFIGURATION
This Policy is not configurable except for the standard options.
SEE ALSO
"substr" in perlfunc (or "perldoc -f substr").
"4th argument to substr" in perl5005delta
AUTHOR
Graham TerMarsch <graham@howlingfrog.com>
COPYRIGHT
Copyright (c) 2005-2011 Graham TerMarsch. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.16.3 2014-06-09 Perl::Critic::Policy::BuiltinFunctions::ProhibitLvalueSubstr(3)