Ravindra BagaleCourses & study guides मराठी Track your progress

Ravi Sir's Cards › AWS

Cut prefix and suffix

What is a VPC: your own private network inside one AWS Region, example ThreeTierVpc 10.0.0.0/16.

Cut prefix and suffix # cuts from the front, shortest. ## cuts from the front, longest. % cuts from the end. %% longest from the end.
Cut prefix and suffix · Download PNG
Read card text

What this card says

Why do we need it?

# cuts from the front, shortest.

What is it?

## cuts from the front, longest.

${path##*/}

How to do it

% cuts from the end.

${f%.*}

Example

%% longest from the end.

${f%%.*}

See all AWS revision cards