because I can't find any command replacement to the built-in 'history' command, I'd like to ask you if can use watch + history to continuously view history changes with date:
root@test:~# history|tail -2
598 17/11/15 14:23:48 :: HISTTIMEFORMAT="%d/%m/%y %T :: "
599 17/11/15 14:23:54 ...
I can get fingerprints of all keys authorized in authorized_keys but only using temporal file (here "line"), like:
cat au*s|while read a;do echo $a >line;ssh-keygen -l -f line;done
(unfortunatelly, command: "ssh-keygen -l -f authorized_keys" ignored >1 lines)
1) can the ssh-keygen -l be fed...
hello,
I have a html file with many lines like:
<p><font size="1">a1</font></p>
<p><font size="1">val1</font></p>
</td>
<td>
<p><font size="1">a4</font></p>
<p><font size="1">val2</font></p>
</td>...
even after successfull defragfs AIX gives up...
fs has 290MB used and 1300MB free of total 1600MB
# df -vg /repo
Filesystem GB blocks Used Free %Used Iused Ifree %Iused Mounted on
/dev/mksysblv 1600.00 289.47 1310.53 19% 155 305407221 1% /repo
# chfs -a...
sometime nmon process running with -d can lock the disk (even if not assigned to any vg). if so, stop nmon and try again.
also, try lsof - you should see nmon locking disk if this is the case.
hello
example input:
aaaa
bbbb
cccc
so when matched line would be bbbb, expected output would be:
aaaa bbbb
cccc
thank you in advance for a short sed/awk code.
I have input with single filed in each line, like.
$ echo "aaa1\naaa2\nbbbbb0\naaa11\nbbbbb10\nbbbbb1\nbbbbb8\naaa9"
aaa1
aaa2
bbbbb0
aaa11
bbbbb10
bbbbb1
bbbbb8
aaa9
and can do "by number" sorting in that way:
$ echo "aaa1\naaa2\nbbbbb0\naaa11\nbbbbb10\nbbbbb1\nbbbbb8\naaa9"|sort -kn1.4...
hi,
how to achieve this without sorting input file?
only first occurrence of duplicates should stay.
following command found on a site does remove also empty lines and with #es which I don;t want to be removed.
perl -ni -e '$s{$_}++||print' file
so, lines like:
#####
(a whitespace)#(a...
hello,
command produces output with many lines as on example:
No filesets which have fixes for IV00149 are currently installed.
All filesets for IV00151 were found.
All filesets for 71-01-031207_SP were found.
All filesets for 71-00-041140_SP were found.
All filesets for...
...output but:
1) add contition that in case there is yet no matching ""xxxxxxxxx="" option in the config file, so in case this:
/(^[[:space:]]*)xxxxxxxxx([[:space:]]*=)/ && s/(^[[:space:]]*)xxxxxxxxx([[:space:]]*=.*)/xxxxxxxxx=desired/
gets nothing, then add xxxxxxxxx=desired to the input...
hello,
in a config file in which I need to replace (or add if not existing at all) an option. Also, if the option is lead by a space(s) or tab(s) (or such mixed together). Each option is followed by = sign, but there also might be some white characters beetween the option and = sign, but such is...
thank you. PHV's method worked in my case. is the way (PHV's modified a bit) with variable ok below?
$ echo "u8-23.24.aaa 123.u8-23.24 u8-23.24.333\nu8-23.24.aaa 123.u8-23.24 u8-23.24.333 u8-23.24 u8-23.24.333"|nl
1 u8-23.24.aaa 123.u8-23.24 u8-23.24.333
2 u8-23.24.aaa 123.u8-23.24...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.