If all you are trying to do is ls a list of files with the same prefix and extension, just do ls RLI-12720.txt*, like you did in your first example. I'm not clear as to what else you are trying to accomplish.
Jeremiah Bess Penguin Geek, Network Ninja, Father of Five On Jul 11, 2012 4:55 PM, "ping" <[email protected]> wrote: > experts: > > I'm trying following Parameter Expansion but somehow it just does't work > -- I do remember previously something like that works fine! > > ping@640g-laptop:/data/backup/**Juniper/MX/RLI$ ls RLI-12720* > RLI-12720 RLI-12720.html RLI-12720-slides.html RLI-12720-slides.txt > RLI-12720-slides.txt~ RLI-12720.txt RLI-12720.txt~ RLI-12720.xml > > > ping@640g-laptop:/data/backup/**Juniper/MX/RLI$ ls "${RLI-12720.txt%.*}" > ls: cannot access 12720.txt%.txt: No such file or directory > > my intention here is to remove the ".txt" suffix so I got filename > RLI-12720 and then ls it, am I missing anything? > > > thanks! > > regards > ping > > -- > You received this message because you are subscribed to the Linux Users > Group. > To post a message, send email to > linuxusersgroup@googlegroups.**com<[email protected]> > To unsubscribe, send email to linuxusersgroup+unsubscribe@** > googlegroups.com <linuxusersgroup%[email protected]> > For more options, visit our group at http://groups.google.com/** > group/linuxusersgroup <http://groups.google.com/group/linuxusersgroup> > References can be found at: http://goo.gl/anqri > Please remember to abide by our list rules (http://tinyurl.com/LUG-Rulesor > http://cdn.fsdev.net/List-**Rules.pdf<http://cdn.fsdev.net/List-Rules.pdf> > ) > -- You received this message because you are subscribed to the Linux Users Group. To post a message, send email to [email protected] To unsubscribe, send email to [email protected] For more options, visit our group at http://groups.google.com/group/linuxusersgroup References can be found at: http://goo.gl/anqri Please remember to abide by our list rules (http://tinyurl.com/LUG-Rules or http://cdn.fsdev.net/List-Rules.pdf)
