## get charachters from positionX to positionY

unix

### Next

• 1. phreads and processes
I have a program that uses pthreads. I now need to run it in multiple processes also. I guess the question would be if I have added shared memory and SysV semaphores, do I still require the pthread mutexes and events; i.e. do pthreads honor the SysV semaphores or can I substitute the semaphores for the pthread mutexes and events? It still needs to be multi-threaded. Thanks,
• 2. implementation of FD_SET
• 3. Makefile error?
• 4. get current user name?
How do I retrieve the username of the currently logged in user? I basically to check if the user is logged in as root and if not, exit the program. I though about using the LOGNAME environment variable, but if a regular user used su root, the environment variable still has the user's login name.

### get charachters from positionX to positionY

Hello,
I have a file with list of rows.
I need to get the charachters in position 69-79 from each row.

for example:
from the following line:
000000059026255852  03BKVAKOV  BE1193YN20070228104737AKUVMTG
048605612   0000XXX

I need the the strings "048605612"

How can I do it?

THANKS!



### Re: get charachters from positionX to positionY



cut -c 69-79 filename
--
Fred L. Kleinschmidt
Boeing Associate Technical Fellow
Aero Stability and Controls Computing



[Note, I know its beta etc etc, this is not me being a troll, its just a
little bit of humor]

This assumed me, this is the command line for installing iis

start /w pkgmgr /l:log.etw
/iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;IIS-HttpRedirect;IIS-ApplicationDevelopment;IIS-ASPNET;IIS-NetFxExtensibility;IIS-ASP;IIS-CGI;IIS-ISAPIExtensions;IIS-ISAPIFilter;IIS-ServerSideIncludes;IIS-HealthAndDiagnostics;IIS-HttpLogging;IIS-LoggingLibraries;IIS-RequestMonitor;IIS-HttpTracing;IIS-CustomLogging;IIS-ODBCLogging;IIS-Security;IIS-BasicAuthentication;IIS-WindowsAuthentication;IIS-DigestAuthentication;IIS-ClientCertificateMappingAuthentication;IIS-IISCertificateMappingAuthentication;IIS-URLAuthorization;IIS-RequestFiltering;IIS-IPSecurity;IIS-Performance;IIS-HttpCompressionStatic;IIS-HttpCompressionDynamic;IIS-WebServerManagementTools;IIS-ManagementConsole;IIS-ManagementScriptingTools;IIS-ManagementService;IIS-IIS6ManagementCompatibility;IIS-Metabase;IIS-WMICompatibility;IIS-LegacyScripts;IIS-LegacySnapIn;IIS-FTPPublishingService;IIS-FTPServer;IIS-FTPManagement;WAS-WindowsActivationService;WAS-ProcessModel;WAS-NetFxEnvironment;WAS-ConfigurationAPI

Now that's the longest ever command line option I have seen, as more and
more bits of Linux are made friendly we are getting complex cmd line things
to run, will this make us windows users look more intelligent? we will have
lots of different colored msh prompts open with outputs off of commands :)

....... I presume this is due to a bug in add windows feature but joking
aside, its nice to see that things can be scripted as for iis I think this
was possible since version 4.

Steve