•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Shell Scripting section within the Software Development category of DaniWeb, a massive community of 391,685 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,210 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Shell Scripting advertiser:
Views: 695 | Replies: 10 | Solved
![]() |
•
•
Join Date: Nov 2007
Posts: 104
Reputation:
Rep Power: 1
Solved Threads: 0
•
•
•
•
Hey,
I know this is closed, but wanted to follow up since I missed you last timeSorry
To get the basename, with sed, just so you have it for your stockpile, just change your expression:
to
Of course, you're right, basename and dirname are much simpler to use
Cheers,
Mike
just wanna thank mike for the follow up.... i was banging my head to get to sed to work until i saw the first post (thank to who posted too)... and i looked it up "basename" (i m pretty new to shell scripting).. and i think there must be something does the opposite of basename... and wooooo!!!... dirname leads the way!!!... thanks again for helping
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb Shell Scripting Marketplace
Similar Threads
- Slow Network Access Not Always Due to Scheduled Tasks Check (Windows tips 'n' tweaks)
- USB Ports not recognizing periferals (Peripherals)
- Please Check The Errors'..Dont know what else to do (C++)
- Check items before installing for Spyware? (Viruses, Spyware and other Nasties)
- Another hijack this log to check (Viruses, Spyware and other Nasties)
- Spyware check (Windows Users Lounge)
- Check for Disk Errors in Windows XP (Windows tips 'n' tweaks)
- IE6 - dialogue boxes , check boxes and radio buttons work very slowly after hijacking (Viruses, Spyware and other Nasties)
- Ureaka!! I found it! Please check this log (Web Browsers)
- flash check it out (Geeks' Lounge)
Other Threads in the Shell Scripting Forum
- Previous Thread: unix little quiz
- Next Thread: please take a look at my question

Sorry
Linear Mode