Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Substrings in Unix
Name: Jon Moore Date: June 6, 2005 at 07:39:25 Pacific OS: Unix CPU/Ram: 200/256
Comment:
Hi All,
I am having a problem extracting part of a string into a variable using korn shell. Using the id command the following is returned and stored in a variable called userid:
uid=2435(TY34955) gid=34543(systems)
I need to extract the (TY34955) without the braces when the length of both the uid(the 2435) and and the(TY34955) may vary.
Summary: Is there a way to print in "Landscape" format in Unix? I don't know if you need this info but here it is anyway: /home/narsman% uname -a OSF1 V4.0 1530 alpha Thanks, Narsman ...
Summary: In UNIX nearly all files are text files. there is yet another utility called "rtf2txt" - see a pattern here ? - that will do the rtf to text conversion. Just slip it into the command line pipe previou...