Search Results

Search: Posts Made By: lienyca
1,162
Posted By jayan_jay
$ sed "s,..:..-,$(date +%Y)-,g" infile hostname...
$ sed "s,..:..-,$(date +%Y)-,g" infile
hostname 2007-Feb-9 /u100/DEVCO/Patching a.log
hostname 2010-Jun-25 /u100/DEVCO/DumpCleaner a.log
hostname 2011-Jun-25 /u100/DEVCO/DumpCleaner/sample a.log...
1,162
Posted By itkamaraj
$ awk -v d=`date +%Y`...
$ awk -v d=`date +%Y` '{sub(/[0-9][0-9]:[0-9][0-9]/,d)}1' input.txt
hostname 2007-Feb-9 /u100/DEVCO/Patching a.log
hostname 2010-Jun-25 /u100/DEVCO/DumpCleaner a.log
hostname 2011-Jun-25...
1,830
Posted By alister
sed 's#/\([^/]*\)$# \1#' Regards, Alister
sed 's#/\([^/]*\)$# \1#'

Regards,
Alister
Showing results 1 to 3 of 3

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