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...
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...
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]
...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...
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
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...
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...
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!
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...
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...
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...
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]...
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...
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...
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 } '...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.