Search Results

Search: Posts Made By: radoulov
2,629
Posted By radoulov
sed 's/[0-9]*\.csv$//' infileAnd perhaps in most...
sed 's/[0-9]*\.csv$//' infileAnd perhaps in most cases this will be sufficient:

sed 's/[0-9]*.csv//' infileor:
sed 's/.\{12\}$//' infileActually, for fixed length prefixes you could use cut -c1-n...
2,629
Posted By radoulov
Assuming there is a typo in your example output: ...
Assuming there is a typo in your example output:

% s=f610_gen_o_t_MASTER_AS_YB_20130324.csv
% printf '%s\n' "${s%_*}_"
f610_gen_o_t_MASTER_AS_YB_
Showing results 1 to 2 of 2

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