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 bkrike 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 gawker

  1. gawker

    ksh - Reading/evaluating contents of input string for special characters

    Thank you very much PHV, that does work. In my haste in rewritting my post, I neglected to state the requirement that quotes and such were not to be used on the data. I thought about quotes, but that isn't typically something one would use, so enforcement would be a whole different problem...
  2. gawker

    ksh - Reading/evaluating contents of input string for special characters

    Greetings. This is a question about the ksh environment. Let's say that I want to evaluate a path name provided to my script as shown here: ./test.ksh /tmp/user-data/stuff This prior example is straight forward as there isn't anything that needs to be interpreted. The script variable shows...
  3. gawker

    Create a tar file and pipe to compress command

    I need to create a tar file in a filesystem with limited room. Is there a way to send the tar file directly to the compress command so that the tar output is directly compressed (i.e., no intermediate file) and therefore smaller? Thank you. Gawker [pc2]
  4. gawker

    grep wild card?

    In a file, I have strings such as: abc_1234_xyx abc_34kk_xyx abc_q3_xyx I am trying to find a wild card pattern I can use so that a single grep can find strings with abc at the start and xyx at the end. The string length may vary. I was hoping there was something like grep "abc*xyz"...
  5. gawker

    Determine telnet window size.

    Thank you xmb, I found that "stty -a" gives me the environmental variables I need in one of the lines: speed 9600 baud; 24 rows; 80 columns; From which I can then control my data return. [thumbsup2] Gawker
  6. gawker

    Determine telnet window size.

    I hope that this is the correct forum for this... I'm writting a script that will list user data files in a directory. The script will allow the user to select the file using an associated number that is displayed next to the file name. I want to control how many files (lines) are displayed...
  7. gawker

    find for multiple trees

    I guess it couldn't have been any simpler. I over-analyzed it and thought it was much more complicated. Gawker [surprise]
  8. gawker

    find for multiple trees

    I've a directory structure similar to this: /backup/test/servera/... /backup/test/serverb/... /backup/test/serverc/... /backup/test/serverd/... /backup/test/servere/... Using a single find command, is it possible to list just those files residing in /backup/test/serverb and...
  9. gawker

    Network connection drops when laptop inactive

    Should also have noted that the laptop is Windows 2000 and am connected at work to the LAN. This is a replacment PC with similar configuration to my older one (now junk) that never had this problem. Thanks!
  10. gawker

    Network connection drops when laptop inactive

    I've a IBM laptop that I use at work to connect via PCXware telnet sessions to various servers. When my PC is unattended for a time (for example lunchtime), my telnet sessions are no longer viable. The windows are still open, but when I try to do anything in one of the windows, the window is...
  11. gawker

    echo \c equivilent in awk?

    Both solutions are great - One gives more control, the other is simpler. I'll have to decide which to use. Gawker [2thumbsup]
  12. gawker

    echo \c equivilent in awk?

    Excellent! Thank you.
  13. gawker

    echo \c equivilent in awk?

    I've an awk process that does a number of system queries to build up a line of data and write out to a file. The format of the awk process is: awk ' { ... } ' >> work-file Since it takes a long time to gather the data, I'd like to use a process indicator to show that work is progressing so...
  14. gawker

    What order are files selected by tar?

    In what order are files selected from a directory by tar when creating a tar file of the directory? Thank you. Gawker [pc2]
  15. gawker

    Date/time manipulation - please repost solution.

    Last week, somebody was kind enough to post a snippet of PERL code on how to take a date/time value and subtract from it to get a date/time of (example) 10 minutes ago. My post on this question was deleted before I got to copy the response. [sad] Would that kind soul please repost his/her...

Part and Inventory Search

Back
Top