bash
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
bash [2011/11/03 12:28] – GozvGrXGexY 201.73.184.161 | bash [2021/02/01 05:55] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | CKbpa7 , [url=http://auxpcxjyaskx.com/]auxpcxjyaskx[/url], [link=http://rmulpeexsons.com/]rmulpeexsons[/link], http:// | + | ====== bash programming tricks ====== |
+ | |||
+ | ===== extracting file extension ===== | ||
+ | |||
+ | file=" | ||
+ | file_extension=`echo $file | sed 's/.*\.//'` | ||
+ | |||
+ | ===== removing file extension ===== | ||
+ | |||
+ | file=" | ||
+ | file_extension=`echo $file | sed 's/.*\.//'` | ||
+ | file_without_extension=`basename $file .$file_extension` | ||
+ |
bash.1320323289.txt.gz · Last modified: 2021/02/01 05:55 (external edit)