Skip to main content
deleted 18 characters in body
Source Link
hassan
  • 195
  • 1
  • 6

using sed :

sed -r "s's/\#([0-9]*)/echo $(date -d @\1)/g"eg' test.txt

output :

bash uniquarray.sh
خ ينار أغس 124 0216:0009:0155 EET 19702016
ll /data/holding/email
خ ينار أغس 124 0216:0011:0146 EET 19702016
cat /etc/rsyslog.conf
خ ينار أغس 124 0216:0013:0158 EET 19702016
ll /data/holding/web

as my locale language is Arabic :)

using sed :

sed -r "s/\#([0-9]*)/$(date -d @\1)/g" test.txt

output :

bash uniquarray.sh
خ ينا  1 02:00:01 EET 1970
ll /data/holding/email
خ ينا  1 02:00:01 EET 1970
cat /etc/rsyslog.conf
خ ينا  1 02:00:01 EET 1970
ll /data/holding/web

as my locale language is Arabic :)

using sed :

sed -r 's/\#([0-9]*)/echo $(date -d @\1)/eg' test.txt

output :

ر أغس 24 16:09:55 EET 2016
ll /data/holding/email
ر أغس 24 16:11:46 EET 2016
cat /etc/rsyslog.conf
ر أغس 24 16:13:58 EET 2016
ll /data/holding/web

as my locale language is Arabic :)

Post Undeleted by hassan
Post Deleted by hassan
Source Link
hassan
  • 195
  • 1
  • 6

using sed :

sed -r "s/\#([0-9]*)/$(date -d @\1)/g" test.txt

output :

bash uniquarray.sh
خ ينا  1 02:00:01 EET 1970
ll /data/holding/email
خ ينا  1 02:00:01 EET 1970
cat /etc/rsyslog.conf
خ ينا  1 02:00:01 EET 1970
ll /data/holding/web

as my locale language is Arabic :)