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 [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)