Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

shell remove last character

# removes the FIRST character
cut -c2-
# removes the FIRST 5 characters
cut -c6-
# removes the LAST 3 characters
rev | cut -c4- | rev
# returns the charcaters INBETWEEN the 2. and 4. character
cut -c2-4
 
PREVIOUS NEXT
Tagged: #shell #remove #character
ADD COMMENT
Topic
Name
7+6 =