[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Strings manipulation without using variables
From: |
Francesco Pretto |
Subject: |
Strings manipulation without using variables |
Date: |
Wed, 31 Mar 2010 16:22:16 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
Hello,
I'm sorry if this isn't the wrong place to ask, but I couldn't find an user
mailing list. My question is if it's possible to manipulate strings without
using variables. Or, how to do the following in one line without using a
variable:
FILENAME=$(ls | tail --lines=1)
echo ${FILENAME%.*}
I searched a lot and, surprisingly, I couldn't find any other syntax.
Thanks,
Francesco
- Strings manipulation without using variables,
Francesco Pretto <=