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: *

  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?

    ...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" where "*" tell grep to match anything in the middle. Thank you...
  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...
  16. gawker

    Count of array variables.

    Hi, If an array has been created in an awk process via the split command, is there a variable that reports on the number of array entries? I can get the information by reading the array with "while", but figure there must be a more direct way of getting the value. Thanks! [pacman]...
  17. gawker

    Ignoring "(" in a variable when used in a system call.

    vgesh99, I decided to place the data into a file instead of stdout. As far as why I went that path... good question. Perhaps it was because it was 2 a.m. when I coded that section [dazed] and got hung up on working with the problem rather then using a better method. Either way, I'm not using...
  18. gawker

    Ignoring "(" in a variable when used in a system call.

    Hi, In a awk process, I am reading data from a file where some of the data lines contain text bracketed by parenthesis like the following example: ...SysKonnect PCI FDDI Adapter (48110040) I set up a variable: Adapter_Desc = substr($0,30,length($0)) And then try to echo the data via a...
  19. gawker

    Field separator

    vgersh99, Once again, you've been a big help. [thumbsup2] Thanks! gawker
  20. gawker

    Field separator

    Hi, I want to read a file that contains email addresses and create a single string variable that contains all of the address, each address with a trialing space. The data in email_aix_users.lst looks like: user1@my.com user2@my.com ... And the code looks like: MAIL_LIST=`awk ' { print $0 } '...

Part and Inventory Search

Back
Top