Simple life, Complicated mind
Thursday, November 24, 2011
remove strip file filename extension
Method 1:
list directory contents, cut the output by a dot, output the first field.
# ls | cut -d . -f 1
Method 2:
# ls | sed 's/\(.*\)\..*/\1/'
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment