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 xmb

  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.

Part and Inventory Search

Back
Top