Search Results

Search: Posts Made By: mambo2523
4,292
Posted By mambo2523
worked...thank u
worked...thank u
4,292
Posted By mambo2523
that works, but it also picks up the first number...
that works, but it also picks up the first number it encounters.

fname="reddogssamsfile1.f0633.bin"
fnametmp=${fname#*[_.](V|v|F|f)}
parse=$(echo $fname | sed 's/[^0-9]*\([0-9][0-9]*\)[^...
53,953
Posted By mambo2523
find . -type f -mtime -30 -print or find ....
find . -type f -mtime -30 -print
or
find . -type f -mtime -30 -ls
print just displays files, ls shows dates and times etc
4,292
Posted By mambo2523
extract characters from file name - script
trying to extract the numbers in this file name:
fname="ebcdic.f0633.cmp_ebcdic.f0633.bin"
fnametmp=${fname#*[_.](V|v|F|f)}
parse=${fnametmp%%[_.](ENC|enc|CMP|cmp|BIN|bin)}}
echo FLRECL=$parse
...
Showing results 1 to 4 of 4

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