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 SkipVought 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: xmb
  • Order by date
  1. xmb

    how to make socat work with awk

    subject: awk 1 doesnt work with socat socket cat prototype: socat <socat> <socat> manual page...
  2. xmb

    using ftp file system as local

    As an answer: 1) maybe not. the open dialog from applications, depending what toolkits or something is used they can or cannot open special stuff via the network 2) mounting is possible, for example with lufs ( http://directory.fsf.org/network/tools/lufs.html ) . Mac for productivity ...
  3. xmb

    files count

    Nice piece of excessive multipurpose awk mike :) I'd just add -A to lsls -ARp | awk '/^\.:$/,/^$/ { next } ! /\/$|^\.\/.*:$|^$/' | wc -lOr..shopt -s dotglob find [-L] startdir/*/ -type f | wc -l find . -type f | grep /.\*/ -c ( find . -type f | awk -F/ '$3' | wc -l ) ( find startdir/ -type f |...
  4. xmb

    file beginning with $

    Using "$file" doesnt work cause $file would get expanded, as without quotes, \$file or "\$file" would work. . Mac for productivity .. Linux for developement ... Windows for solitaire
  5. xmb

    find function question

    Oops!
  6. xmb

    find function question

    Or more correctly: grep -v /xxxx$
  7. xmb

    find function question

    I haven't ever seen an exclude option, cant think of a reason any/GNU doesnt have a such. grep -v xxxx$ is the way to go . Mac for productivity .. Linux for developement ... Windows for solitaire
  8. xmb

    Linus Snort Install

    Good request, good luck =) I didnt look at snort.org, but they're as hell supposed to provide install and other instructions, yet they are very open minded. ACID will have its own instructions. . Mac for productivity .. Linux for developement ... Windows for solitaire
  9. xmb

    How to sleep for less than 1 second in unix shell script

    Some sleep(1) commands as the GNU one support this. Maybe better get one of those.. having perl involked all the time may surprise you with excessive CPU usage. . Mac for productivity .. Linux for developement ... Windows for solitaire
  10. xmb

    How to find a range of time in a log file

    Simplification of your script/one liner: awk -v t1=02:25:00 -v t2=22:25:00 '/PM|AUDT/ { t = substr($0,24,8); if (t !~ /[0-9]+:[0-9]+:[0-9]/) next if (t >= t1 && t <= t2) { u = substr($0,24,13) print u, $0 } }' [ | sort -n | cut -c15- ] . Mac for productivity .. Linux for...
  11. xmb

    sum disk usage from df -k with awk help

    Due to the awk syntax being <optional expression> { processing block } And your expression would be NR > 1. For an introduction into awk, see faq271-5564 / Grymoire / (g)awk manual . Mac for productivity .. Linux for developement ... Windows for solitaire
  12. xmb

    add X11 to existing RH Enterprise box

    As a starting point, get xorg and any window manager throught 'yum', detailes i cant give cause i dont run fake enterprise linux stuff. . Mac for productivity .. Linux for developement ... Windows for solitaire
  13. xmb

    How to decode such characters for a string or file content

    gsub() is the same as sub(), replacing all matchings, where sub() would just replace the first. man nawk, for online stuff see http://www.grymoire.com/Unix/Awk.html and http://www.gnu.org/software/gawk/manual . Mac for productivity .. Linux for developement ... Windows for solitaire
  14. xmb

    How to decode such characters for a string or file content

    Hiya mico =) A last comment about my char encoder ( char_enc.tgz ) It works with gawk / the original awk, probably nawk, not with mawk. [file=map_file] [awk=awk] [do_enc=1] enc.sh [files] $ awk=gawk sh enc.sh plz encrypt this & kthx ¸³Ü­% éWW[tÀªW[ thanks W[ ­À $ awk=gawk do_dec=1 sh...
  15. xmb

    How to decode such characters for a string or file content

    Mico, probably running it with nawk or something newer than your plain 'awk' will fix that. My char encoder could be modded to word instead char mapping by small changes, to work like PH showed.
  16. xmb

    How to decode such characters for a string or file content

    Mico, that echo | tr works for me on debian. Your topic inspired me to have another try on some awk scripts to decode/encode files with <from>-<to> char mappings that i began in late 2003. It just wouldnt work, now finally does tho. It has problems mapping the '&' char back tho, no idea why...
  17. xmb

    Iptables and Port Forwarding problems.

    There are good reasons standing behind not having an edit/post. Todays ipchains are called 'iptables', introduced with Linux 2.4. For complete docs or a howto, see netfilter.org (where also ipchains came from). all I really want to do is forward an incoming port on my server to a port on one...
  18. xmb

    How to pass contexts of a file to a command as a parameter

    Mine did get created especially for speed. Neither mass grep, nor ps, nor anything spawning multiple times is required. gregor, read i ii -> grep -qw $i logins && cmd . Mac for productivity .. Linux for developement ... Windows for solitaire
  19. xmb

    Linux distro. P1 166MHz for home web server + perl

    A P1 is sure somewhat usable, perl will just take a few seconds to start up from time to time.
  20. xmb

    Linux distro. P1 166MHz for home web server + perl

    Perl might take over two seconds to compile'nrun simple scripts on such a slow machine btw.

Part and Inventory Search

Back
Top