The UNIX and Linux Forums
Forum Home
Linux and Unix Man Pages
Search Forums
Search Community Posts
Today's Posts
Quick Links
Man Pages
RedHat Commands
OpenSolaris Commands
Linux Commands
SunOS Commands
FreeBSD Commands
All UNIX Man Pages
All Linux Man Pages
Full Man Repository
Login or Register to Ask a Question and Join Our Community
Search Forums
Show Threads .
Show Posts
Tag Search
Advanced Search
Quick Links
Contact Us
Forum Rules
Today's Posts
FAQ
Pictures & Albums
All Albums
Miscellaneous
What is My IP
Whois
Mark Forums Read
Search Results
Showing results 1 to 3 of 3
Search took
0.00
seconds.
Search:
Posts Made By:
soueric
Forum:
Solaris
05-03-2011
4
Get file name in shell scrip loop: bad substitution
8,303
Posted By
soueric
Hi rdcwayx. Thanks for you answer, my problem...
Hi rdcwayx.
Thanks for you answer, my problem was solved.
However, your command does not work as it is still returning the entire path I wanted to get rid:
/........./filename.log
So first...
Forum:
Solaris
05-02-2011
4
Get file name in shell scrip loop: bad substitution
8,303
Posted By
soueric
Hi itkamaraj. Thanks, it's working well. I...
Hi itkamaraj.
Thanks, it's working well.
I have actually customized it into:
for file in $home/$input/*.txt do basename $file | sed 's/.txt//' done
Actually, I will reuse this base...
Forum:
Solaris
05-02-2011
4
Get file name in shell scrip loop: bad substitution
8,303
Posted By
soueric
Get file name in shell scrip loop: bad substitution
Hi guys. Good day, morning, afternoon or night, depending on where you live.
I have a script shell in which I am looping on files (absolute path) see code section above.
I always have an error: ...
Showing results 1 to 3 of 3
Member Badges and Information Modal
×