Search Results

Search: Posts Made By: fly2matrix
1,854
Posted By fly2matrix
In order to get timestamp in history you have to...
In order to get timestamp in history you have to export HISTTIMEFORMAT.

export HISTTIMEFORMAT='%F %T '
1,260
Posted By fly2matrix
Try this one : perl -pi.bak -e "s#(.{2}$)##g;"...
Try this one : perl -pi.bak -e "s#(.{2}$)##g;" info.txt

This is one liner perl code ...
1,260
Posted By fly2matrix
my $example1="John Carey:507-699-5368:29 Albert...
my $example1="John Carey:507-699-5368:29 Albert way, Edmonton, AL 25638:9/3/90:45900";


if ($example1 =~ /(.*)(.{2}$)/ )
{
print "$1";
}
else
{
print "Not Matched";
}
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 01:00 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy