- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Script help needed.
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2001 05:12 AM
11-22-2001 05:12 AM
$tmpdir="/opt/omni/newconfig/var/opt/omni/tmp /opt/hpnp/tmp /opt/bb18b3/tmp /opt/foglight/tmp /tmp /var/opt/pd/tmp /var/opt/omni.bak/tmp /var/tmp /var/spool/cron/tmp /var/dt/tmp"
I use this command to put a /* at the end of each path:
# echo $tmpdir | sed -e 's/ /\/\* /g' | sed -e 's/\(.*\)$/\1\/\*/'
Now if I:
a=$(echo $tmpdir | sed -e 's/ /\/\* /g' | sed -e 's/\(.*\)$/\1\/\*/');
The output of $a have all the file in each path. How do I prevent path filename resolving in inline substitution
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2001 05:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2001 05:23 AM
11-22-2001 05:23 AM
Re: Script help needed.
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2001 05:28 AM
11-22-2001 05:28 AM
Re: Script help needed.
That's why I love this forum. I just learned something new :-))
thanks!!!
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2001 05:56 AM
11-22-2001 05:56 AM
Re: Script help needed.
#mkdir -p /tmp/temp_dir111
#cd -p /tmp/temp_dir111
(there are no files here, so nothing to expand)
#cd -
#rm -rf /tmp/temp_dir111
if only i was into this forum back then...
