$ cat hist.txt
1234 Mon 12 Apr 2021 01:23:10 PM EDT cd /opt/data/
1235 Mon 12 Apr 2021 01:23:10 PM EDT ls
1236 Mon 12 Apr 2021 01:23:10 PM EDT scp *.cfg jay@lx206:/tmp/config
$ cat hist.txt | awk '{$1=$2=$3=$4=$5=$6=$7=$8=" "; print "$" $0;} | more}'
$ cd /opt/data/
$ ls
$ scp *.cfg jay@lx206:/tmp/config
Friday, July 16, 2021
AWK - Get the last 9th field only using awk
Subscribe to:
Post Comments (Atom)
Git branch show detached HEAD
Git branch show detached HEAD 1. List your branch $ git branch * (HEAD detached at f219e03) 00 2. Run re-set hard $ git reset --hard 3. ...
-
snmpconfig command allow you to managge snmpv1/v3 agent configuration on SAN switch. Event trap level is mapped with event severity level....
-
Firmware upgrade on HPE SuperDom Flex 280 - prerequisites tasks a. Set up repo b. Upload firmware to your webserver 1. For foundation so...
-
Disabling the Telnet protocol on Brocade SAN switches By default, telnet is enabled on Brocade SAN switches. As part of security hardening o...
No comments:
Post a Comment