Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by ogniemi

  1. ogniemi

    awk bug in Solaris 10? awk and nawk return incorrect integer in $NF

    just curious if running swap -l;swap -l;swap -l;swap -l;swap -l will print the same lines
  2. ogniemi

    a shell builtin command in watch?

    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 ...
  3. ogniemi

    getting rsa key fingerprints

    by temp file I meant auxiliary file used later for -f parameter of ssh-keygen
  4. ogniemi

    getting rsa key fingerprints

    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...
  5. ogniemi

    epel on Centos 7

    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...
  6. ogniemi

    global change in html source file

    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>...
  7. ogniemi

    IO test jobs

    there was also util called iozone
  8. ogniemi

    AIX can't reduce fs space

    sorry! M!!! should be G! ;-)
  9. ogniemi

    AIX can't reduce fs space

    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...
  10. ogniemi

    unable to remove disk after migratepv

    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.
  11. ogniemi

    remove new line (\n) from line before matched

    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.
  12. ogniemi

    sorting case

    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...
  13. ogniemi

    removing duplicate lines ignoring empty lines and lines with #

    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...
  14. ogniemi

    get &quot;bigger&quot; value combined with a text

    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...
  15. ogniemi

    edit/fix a parameter in a config file from command line

    Hello, thank you. Finally following command produces expected 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:]]*=)/ &&...

Part and Inventory Search

Back
Top