Search Results

Search: Posts Made By: ttunell
11,717
Posted By ttunell
That works great! Many thanks!
That works great! Many thanks!
11,717
Posted By ttunell
How to use substr to return data into a shell script variable?
I'm writing a shell script in which I need to be able to pull a portion of the file name out. I'm testing with the following code:

x="O1164885.DAT"
y=`ls -ltr *${x}|awk '{print substr($0,3)}'`...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 08:35 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy