Search Results

Search: Posts Made By: telecomics
4,721
Posted By telecomics
Yes is only for affirmative answers , I want a...
Yes is only for affirmative answers , I want a negative answer so that the file being copied is not overwritten.

I used this - yes no|cp A B

is still overwriting file B with A.

If I give...
4,721
Posted By telecomics
yes|cp -i A B would only give me "y" as an...
yes|cp -i A B

would only give me "y" as an answer which means permission to overwrite.

I want to give "n" as an answer to the question since i dont want to overwrite -

cp : do you want to...
4,721
Posted By telecomics
Copy interactively - shell input
Hello,

I am making a script to copy files interactively from one directory to another using the "i" option because I dont want to overwrite the files.

cp -i *.html ./../otherdir/
cp: do...
4,490
Posted By telecomics
Thanks for all your replies . Just to...
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...
4,490
Posted By telecomics
Removed ^M from Libraries
I used the following to remove ^M in all files - I guess i did it in haste :mad:

find / -name "*" | xargs perl -p -i -e 's/^M//g' *


It changed all my LIBRABRIES since i used -- perl -p -i...
49,890
Posted By telecomics
Recursive Control M
For each file recursively I used -

find / -name "*" | xargs perl -p -i -e 's/^M//g' *

This will find all files "*" starting from the root and on each file having ^M will perform a cleanup...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 10:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy