I have bunch of files in win xp machine with
123456 E15 filename
112333.E20 filename
123412.E11 filename
you get the pic, I mount that xp machine's share into linux and try to do a mass rename to something simpler
E15 filename
E20 filename and so on..
I wrote below thinking that it... (8 Replies)
hi experts(novice people can stay away as it is no child's game),
i am developing a script which works like recycle bin of windows.
the problem i am facing is that when ever i am trying to delete a file which is situated in parent directory or parent's parent directory i am unable to... (1 Reply)
:confused:
Hello,
Is there any way to use the dir command / some DOS Script to select only first file of similar pattern of files in a direcotory and rename it for example, one directory has 5 files
abc_1005.txt
abc_5256.txt
abc_2001.txt
abc_2003.txt
abc_3006.txt
by use script I would... (2 Replies)
I am very new to unix as well as shell scripting.
I have to write a script for the following requirement. In have to list all the files in directory and its sub directories along with file path and size of the file
Please help me in this regard and many thanks in advance. (3 Replies)
If I have a file/folder that a user does not have permission to and I try to rename it, it removes the entire parent folder. At that point it is only visible in a ls. (Not a ls -l, file, more, cd). It happens on every filesystem. This is Aix 5.3
$ cd test
$ ls -la
total 0
drwxr-xr-x 2 root ... (4 Replies)
Hello All,
I am trying to write a script to:-
1. Traverse entire file system, look for directories which has .git directory in it
2. Rename the immediate parent directory to <orignal_name.git>
3. Traverse new file structure and look for all directories with <original_name>.git
4. cd to... (2 Replies)
Hi Guys ,
I want create files Dire and Sub Dire. as same time using variable.
EX:
x1="/hk/Pt/put/NC/R1.txt"
x2="/hk/pt/Put/Ot/NC/RN.txt"
And i want delete all after done with my script.
Thanks (2 Replies)
I have files in the ABC_YYYYMMDD.zip format under a directory. Each zip file contains A text file in the ABC_YYYYMMDD.txt format.
I am trying to create a script that will Rename the zip files and their underlying text file replacing the datepart in them with .
For eg: in the case of... (1 Reply)
Hi All,
Just started learning unix and stuck into below issue.
Suppose i have folder structure as below.
Dir1/Dir2/Dir3/File1.msg
I am looking to rename the file name from File1.msg to File2.msg but from the parent Dir1
From Dir3 i can easily run the command like
mv File1.msg... (2 Replies)
Hi and good day,
This string lets me find the html files:
ls -R /Volumes/LC3/Sites/chu | grep "html"
But how to list the files with their parent dir 'attached' to them:
For example:
n/fofo.html
n/siso.html
m/…
/
Any assistance would be greatly appreciated!
With best regards,... (5 Replies)
Discussion started by: OmarKN
5 Replies
LEARN ABOUT HPUX
rediff
REDIFF(1) Man pages REDIFF(1)NAME
rediff, editdiff - fix offsets and counts of a hand-edited diff
SYNOPSIS
rediff ORIGINAL EDITED
rediff EDITED
rediff {[--help] | [--version]}
editdiff FILE
editdiff {[--help] | [--version]}
DESCRIPTION
You can use rediff to correct a hand-edited unified diff. Take a copy of the diff you want to edit, and edit it without changing any
offsets or counts (the lines that begin "@@"). Then run rediff, telling it the name of the original diff file and the name of the one you
have edited, and it will output the edited diff file but with corrected offsets and counts.
A small script, editdiff, is provided for editing a diff file in-place.
The types of changes that are currently handled are:
o Modifying the text of any file content line (of course).
o Adding new line insertions or deletions.
o Adding, changing or removing context lines. Lines at the context horizon are dealt with by adjusting the offset and/or count.
o Adding a single hunk (@@-prefixed section).
o Removing multiple hunk (@@-prefixed sections).
Alternatively, if only one argument is provided, it is taken to be the edited file and the counts and offsets are adjusted as appropriate.
Some assumptions are made when used in this mode. See recountdiff(1) for more information.
OPTIONS --help
Display a short usage message.
--version
Display the version number of rediff.
SEE ALSO interdiff(1), recountdiff(1)AUTHOR
Tim Waugh <twaugh@redhat.com>
Package maintainer
patchutils 13 May 2002 REDIFF(1)