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

Ravi Sir's Cards › AWS

AWS Cloud

Cut prefix and suffix

This revision card explains Cut prefix and suffix. It starts from the need that # cuts from the front, shortest. It describes ## cuts from the front, longest. The how-to section notes % cuts from the end. An example on the card is %% longest from the end.

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