![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Duplicates to be removed | prvnrk | Shell Programming and Scripting | 6 | 07-10-2008 10:06 AM |
| a way to tell what was removed after rm -rf ? | thosch | UNIX for Dummies Questions & Answers | 4 | 06-30-2008 02:20 AM |
| after init all /tmp file has been removed | yesthomas | SUN Solaris | 5 | 12-06-2005 03:48 AM |
| directories are not getting removed | slavam | Shell Programming and Scripting | 6 | 11-17-2005 05:26 PM |
| Will Old Files Be Removed | sunsation | UNIX for Dummies Questions & Answers | 5 | 06-26-2005 09:24 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#8
|
||||
|
||||
|
Quote:
The thing is, you really don't want to replace all instances of \015, because that might represent code or some piece of instruction, initialization data, etc. You have to be more selective. Try something like this (and test it !!) Code:
perl -p -i -e 's/\015(\012)/ $1/gs' * I can imagine other sorts of headaches you might encounter. |
| Forum Sponsor | ||
|
|
|
#9
|
||||
|
||||
|
Hi.
Quote:
A filter to eliminate non-text items would be the first step I would suggest. The command file makes good guesses about the content of files, but it varies among systems, so one would need to do a few experiments first. Running commands and scripts with an echo in front of the command that will do the real work is often a good idea. One then can see what will get changed, and the process can be fine-turned until it meets the requirements. This was a good learning experience -- tough, but good -- and I think many of us have had that happen at least once. It underlines the usefulness of backups. Currently I do a lot of work in virtual machines, and the snapshot is very easy, not dissimilar to what buffoonix outlined for LVM volumes. I do that for almost every update that is made available. There was a number of weeks when GNU/Debian testing updates made a mess of fonts and the desktop. I did snapshots and restored until they got it straightened out ... cheers, drl |
|
#10
|
|||
|
|||
|
Thanks for all your replies .
Just to mention, Ctrl V and then Ctrl M was used to replace the characters in the executed command which changed most of my jar and lib files. My Sysadmin can backup the filesystem using /usr/openv/netbackup/bin/bp command Is it better to replace just the libraries that were changed on that mountpoint (they are too many including the ./java/jre/lib ) or the entire mountpoint since my vignette application is "installed" on Solaris at /apps dir , would replacing the entire /appl directory be sensible ? Another observation - No binary files were changed - signifying they dont have any such control chars. Last edited by telecomics; 09-02-2008 at 12:11 PM. |
|
#11
|
|||
|
|||
|
Restore as much as you can and start over, would be my advice.
|
|||
| Google The UNIX and Linux Forums |