Search Results

Search: Posts Made By: sea
2,381
Posted By sea
Try: if [[ "${file:0:2}" = 22 ]]; then echo...
Try:
if [[ "${file:0:2}" = 22 ]]; then echo "yes";fi

This will start 'reading' the string from 0 (the start) until character 2, so the first two.

hth
Showing results 1 to 1 of 1

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