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...
after I installed EPEL repos yum update hangs with no sense reason:
> GET /pub/epel//7/x86_64/repodata/repomd.xml HTTP/1.1
User-Agent: urlgrabber/3.10 yum/3.4.3
Host: fedora.mirrors.telekom.ro
Accept: */*
Pragma:no-cache
* Empty reply from server
* Connection #13 to host...
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...
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...
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...
delimited by a space(s) or a tab(s).
eg. if in a line there is are:
u8-23.24.aaa 123.u8-23.24 u8-23.24.333
and want to check exactly for "u8-23.24" (in any field / line) I should get no match for above example line.
hello,
I have following input:
line01 ss7000:3000:296 test 00:00:00 07:01:39 07/09/13
line02 ss7000:3000:331 test 00:00:00 07:38:03 07/02/13
line03 ss7000:3000:574 test 00:00:00 04:21:40 07/12/13
line04 ss7000:3000:656 test 00:00:00 11:30:47 07/12/13
line05 ss7000:3000:725 test 00:00:00...
hello,
Example with [[:alnum:]] I found in post http://www.tek-tips.com/viewthread.cfm?qid=1699291 is not working good in case german letters Ä/ä, Ö/ö, Ü/ü are in a string:
# echo 243dÜdd|awk '$1 !~ /^[[:alnum:]]+$/ {print "notalnum"}'
# echo 243dÜdd|awk '$1 !~ /^[a-zA-Z0-9]+$/ {print...
hi,
the input file text contains multiple spaces, tabs, multible tabs and I need to replace all of them with single space
which command removes all leading and trailins spaces:
sed "s/^[[:space:]]*//;s/[[:space:]]*$//"
I tried to use this for removign white spaces inside the it doesn't do...
Hello,
I am looking for equivalent in ksk88
$ ksh93
$ Version M-12/28/93e
$ d=(a=1 b=2 c=3)
$ print ${d.c}
3
$
in ksh88 it doesn't work in that way:
$ Version M-11/16/88f
$ d=(a=1 b=2 c=3)
ksh: 0403-057 Syntax error: `(' is not expected.
how to explain that awk in red doesn't return version numbers?
is it caused by ++- in the variable?
is it possible to get it working with the variable?
$ A="libstdc++-devel"
$ rpm -qa|grep ^${A}-[0-9]
libstdc++-devel-3.3.2-5
$ rpm -qa|grep ^${A}-[0-9]|awk -F "${A}" '{print $2}'|cut -d- -f2-...
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.