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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: w5000
  • Content: Threads
  • Order by date
  1. w5000

    automatic text formatting with printf (basing on maxlength of each column)

    hi, the input file has n columns delimeted with "|" like on example below. how to find max lenght for each column and use it later for printf formatting the input file? awk '{ printf "%-[highlight #EF2929]max1[/highlight]s %-[highlight #EF2929]max2[/highlight]s %-[highlight...
  2. w5000

    sssd vs. winbind

    hell I have joined a linux to domain using sssd realm join --user=administrator example.com it configured all stuff in sssd.conf, nsswitch.conf and in pam modules there are sss configured in I can see users accounts from AS but I can't login ssh or even su. ssh fails on Mar 29 14:15:35 host...
  3. w5000

    sort by one columnt and then by another

    Hello, please tell me why second sort ignores -k4,4 sort? # sort -t"," -k4,4 test 4,c,d,a,a 6,a,d,b,d 7,a,d,b,d 8,a,d,b,d 9,a,d,b,d 1,d,c,c,a 5,a,b,c,d 2,b,c,d,a 3,a,b,d,d # sort -t"," -k4,4 -nk1,1 test 1,d,c,c,a 2,b,c,d,a 3,a,b,d,d 4,c,d,a,a 5,a,b,c,d 6,a,d,b,d 7,a,d,b,d 8,a,d,b,d 9,a,d,b,d...
  4. w5000

    a regex

    Hello, I want a regex (with OR as below) also matching "md" lines in which 3rd column is not a string "active". Is it possible? https://regex101.com/r/LxD8t2/2
  5. w5000

    get address of specific interface stanza in config file

    hello. I have network interfaces configuration file on debian - with a few stanzas like: allow-hotplug eth2 iface eth2 inet static address 192.168.198.24 netmask 255.255.255.0 broadcast 192.168.198.255 I'd like to extract from this file IP of address attribute of...
  6. w5000

    print first line unconditionally

    hello, I'd like to get whole 1st line (header line, makred in blue) printf in each iteration in below for loop. What I get now is: # cat inputtest ===> hostA: transfer 16/09/2016,00:00:01 - 16/09/2016,23:59:59 5 42.64 ===> hostB: transfer 16/09/2016,00:00:01 -...
  7. w5000

    split text file

    I've a text file with many lines where are many messages beginning with XX and ending with bracket ")" (each one) I'd like to split it so each message is saved to separate file (e.g. file names with increasing number) so file1 will have: XX sfjsklf sfsfsfsf (sdfsdfsf sfsfsf gfdfgdgdghdh)...
  8. w5000

    bash string check

    Hello, why test returns "clean" what is marked in red in belongs strings comparison? # d=274y82heE # [[ $d =~ [^[:alnum:]] ]] && echo "not clean $d" || echo "clean $d" clean 274y82heE # d=274y82he^E # [[ $d =~ [^[:alnum:]] ]] && echo "not clean $d" || echo "clean $d" not clean 274y82he^E #...
  9. w5000

    password

    how long it would take someone want to hack password like this? ^3<JOG;=s#iT4&Fb;9/UH<|<}>Th|U6OBx?fcr~e$UgdWc8Jv9^?*^q]BOesCtM}|"7gA?%Q_?)h^E2k75S4!_&MdN9j9tdSs$ZJ
  10. w5000

    software RAID (mdadm) disk failed

    one of the mdraid (md0/md1) disks is lost - raid works as degraded fine but all LV commands hands now. why? is there a way fix it withour reboot? lv commands hangs for a long and returns errors that can't read failed disk - why? the volume group is built of md devices.
  11. w5000

    NPIV &quot;mixed&quot; with VSCSI?

    Hello, I have a dual VIOS each serving NPIV to client LPARs. Can I create additional zonning to the physical FC adapters on VIOS (which are also used for NPIV traffic) to map SAN storage to VIO itself? Or maybe someone knows if Debian linux for power can be boot/supports NPIV storage attached?
  12. w5000

    lspv -u

    how could I guess on client lpar side what type of storage (real storage box/type) is mapped to it from vios? I have no access to vios. should client lpar using such VSCSI disks have installed any host attachment kit so there are valid ODM entries and I can see proper disk type on lsdev? Now i...
  13. w5000

    (solved) exim4

    is it possible with exim4 (on Debian) to get all outgoing mails redirected to one/same email address? so process all outgoing emails and somehow replace their recipients to one external mail address?
  14. w5000

    mounting a filesystem multiple times - what sense?

    is it a bug? for me it is insecure if the same fs can be mounted many times in such "hidden" mode root@clnod1:~# mount /dev/drbd1 /mnt root@clnod1:~# mount /dev/drbd1 /opt root@clnod1:~# mount /dev/drbd1 /mnt2 root@clnod1:~# df|grep drbd /dev/drbd1 2535100 115712 2277680...
  15. w5000

    openssh - user config

    hello, was there any change from some openssh version that following does not work anymore? here only simple example of the config: Host host2 Hostname localhost Host host1 Hostname host2 when I run ssh host1 it fails: $ ssh host1 ssh: Could not resolve hostname host2: no...
  16. w5000

    ksh: check if varaible's value ends with specific string

    here are my tries: $ a=abc $ [[ "$a" = @(abc) ]] && echo ends with abc ends with abc $ a=aabc $ [[ "$a" = @(abc) ]] && echo ends with abc $ [[ "$a" = @(abc)$ ]] && echo ends with abc $
  17. w5000

    basing on dir names, find those &quot;older&quot; than 10 days

    hi, I have many of dirs named like in example: 31DEC15 01JAN16 ... 09JAN16 ... and want to delete those whose name is older than 10 days I have no gnu sort on a system (no -M), is there any possibility to get reliable solution in such case?
  18. w5000

    colore email adress

    hi, I'd like to have colored the first occurrence of an email address xxxx@xxxx.xxx.xxx in each matched line I tried with gnu grep like this: grep --color -P "[[:space:]]+[[:alpha:]]+@[[:alnum:]]+.+[[:space:]]" input but it shows all in color to the end of line. I found another way with tput...
  19. w5000

    merge two lines - parent+child processes

    hello, on the output of: ps -uauser -e -o pid,ppid,args I can extract lines like (it is example): 17531 11234 bcommand options ..... 17803 17802 /bin/bash ascript ..... 17871 17803 acommand options ..... 11234 17755 /bin/bash bscript ..... etc... and I want to search for pairs of...
  20. w5000

    print from a string to the end of line

    hello input from ps can be: user 29976 29787 2 16:45 ? 00:00:00 rsync -H --timeout=60 --force -av --no-owner --no-group --log-file=/tmp/rsync.1448639132.log --include-from=/tmp/sycnzKVqT .... but options can also be in another order, like: user 29976 29787 2 16:45 ? 00:00:00...

Part and Inventory Search

Back
Top