I have a line like below:
/home/user/pigscripts/abc.pig
Can anybody help me in writing a shell script or unix command.
I want to get only abc from above line.
the out put should give me only
abc
$ python -c "import os; base, ext = os.path.splitext(os.path.basename('/home/user/pigscripts/abc.pig')); print base"
pig