AdziE
1
Hi guys, sorry if my english not very well.. i have a problem.. i have a file and the structure is :
Folder/
Folder/10.123.124.20/pm_data/A200807
Folder/10.123.124.20/pm_data/A200807
Folder/10.123.124.20/pm_data/A200807
Folder/10.123.124.20/pm_data/A200808
Folder/10.123.124.20/pm_data/A200808
Folder/10.123.124.20/pm_data/A200808
Folder/10.123.124.21/pm_data/A200807
Folder/10.123.124.21/pm_data/A200807
Folder/10.123.124.21/pm_data/A200808
Folder/10.123.124.21/pm_data/A200808
Folder/10.123.124.21/pm_data/A200808
I just wanna delete A200808, but till now i even can't sorting the file using this command
ls Folder/10*/pm_data/A200808*
but when am type
ls Folder/10*/pm_data/*
it's work.. pls somebody.. help me :(...
For deleting the file that starts with A200808*, u can use the below code
rm -f ls -1 Folder/10*/pm_data/A200808*
AdziE
3
many thx for replying my thread.. I already found the pattern..
find Folder/ -name A200808* -exec rm -f {} \;
am lil bit confuse, i've been trying this command before, but it's not working.. when am try again few hour ago, and they work's... strange...
i use this SunOS machine :
SunOS 5.9 Generic_118558-11 sun4u sparc SUNW,Sun-Fire-V240
btw thx for helping me ;)....
You should execute below.
find Folder/ -name 'A200808*' -exec rm -f {} \;
Because
Before command parameters is used by find command
Your shell expands parameters.
After you execute "touch A200808.txt",
You can figure out difference by below commands.
echo A200808*
echo 'A200808*'
AdziE
5
[quote=p50p100;302226935]
You should execute below.
find Folder/ -name 'A200808*' -exec rm -f {} \;
i've been tried using that patternm but it seems doesn't work.. anyway i will check again.. thx for replying bro....