Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Bash - TD2 - printExtension.sh
Xioth
Jan 27th, 2016
90
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Bash
0.17 KB
| None
|
0
0
raw
download
clone
embed
print
report
#!/bin/bash
fichiers
=$
(
ls
)
for
f
in
$fichiers
do
if
echo
$f
|
-q
grep
"\.[[:alpha:]]*"
then
extension
=$
(
echo
$f
|
cut
-d
'.'
-f2-
)
echo
".
$extension
"
fi
done
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
synology_wireguard_spk_build_fix
19 hours ago | 1.15 KB
Untitled
22 hours ago | 16.07 KB
AFT
1 day ago | 1.56 KB
OoT rando seed 5/25
1 day ago | 68.31 KB
Untitled
1 day ago | 0.08 KB
*Artists / Musicians
2 days ago | 1.66 KB
GSA
3 days ago | 1.91 KB
Untitled
3 days ago | 12.81 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!