GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: unix script
Operating System - HP-UX
1846575
Members
2063
Online
110256
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
09-02-2005 01:02 AM
09-02-2005 01:02 AM
unix script
I have ten files, each with output of diff command, e.g.
110a111
> ./dir1/filename
> ./dir1/filenameB
178a190
> ./dir1/subdir/filename
> ./dir1/subdir/filenameB
I want to check each of these files, and essentially copy all the files to an "old" area and then remove them. Each of the ten files need to produce a separate output file.
Any clues of what script to fit this?
110a111
> ./dir1/filename
> ./dir1/filenameB
178a190
> ./dir1/subdir/filename
> ./dir1/subdir/filenameB
I want to check each of these files, and essentially copy all the files to an "old" area and then remove them. Each of the ten files need to produce a separate output file.
Any clues of what script to fit this?
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2005 01:13 AM
09-02-2005 01:13 AM
Re: unix script
Hi
you don't say much about the output filename (how to recognize them !).
Also, instead of copy and delte why not move them ?
for fln in $(ls *.diff_out)
do
mv $fln $DEST/.
done
DEST is a vaiable for the target directory
Regards
Jean-Luc
you don't say much about the output filename (how to recognize them !).
Also, instead of copy and delte why not move them ?
for fln in $(ls *.diff_out)
do
mv $fln $DEST/.
done
DEST is a vaiable for the target directory
Regards
Jean-Luc
fiat lux
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2005 01:30 AM
09-02-2005 01:30 AM
Re: unix script
found answer myself through trial and error
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2026 Hewlett Packard Enterprise Development LP