LDP/LDP/guide/docbook/abs-guide/ex75.sh

17 lines
228 B
Bash
Raw Permalink Normal View History

2001-07-10 14:25:50 +00:00
#!/bin/bash
2003-11-03 16:25:16 +00:00
# This script is supposed to delete all filenames in current directory
2001-10-15 14:21:41 +00:00
#+ containing embedded spaces.
2003-11-03 16:25:16 +00:00
# It doesn't work.
# Why not?
2001-07-10 14:25:50 +00:00
badname=`ls | grep ' '`
2004-04-28 12:08:07 +00:00
# Try this:
2001-07-10 14:25:50 +00:00
# echo "$badname"
rm "$badname"
exit 0