get charachters from positionX to positionY
by shulamitm » Wed, 16 May 2007 21:00:41 GMT
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
by Fred Kleinschmidt » Wed, 16 May 2007 23:29:15 GMT
cut -c 69-79 filename
--
Fred L. Kleinschmidt
Boeing Associate Technical Fellow
Aero Stability and Controls Computing
Similar Threads:
1.OT - as Linux gets more likes windows, windows gets more like Linux
[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
2.[News] Eee PC Gets Beryl in the Debian Repositories, Gets Praised
3.[News] GNU/Linux Gets More Reliability, Windows Gets Even Less Reliable
4.[News] Sony Playstation 3 Gets Better, Gets Much More Affordable (While Microsoft Goes the Other Way)
5.[News] Embedded Linux Gets More Sophisticated, Tiny Linux Board Gets LCD Module
6. [News] Linux-based Nokia Tablet Gets a High Score, Another Linux PDA Gets Better
7. [News] Linux Tablet Gets Rave Reviews, iPhone Gets Some Yawns, Apple Helps in Promoting Linux
8. [News] Open Handset Alliance Gets New Member, OpenMoko Gets Enlightenment