10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
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
2. UNIX for Beginners Questions & Answers
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)
Discussion started by: Gurjeet Singh
2 Replies
3. Shell Programming and Scripting
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)
Discussion started by: bash987
1 Replies
4. Shell Programming and Scripting
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)
Discussion started by: pareshkp
2 Replies
5. Shell Programming and Scripting
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)
Discussion started by: sahil_jammu
2 Replies
6. AIX
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)
Discussion started by: scriptr2be
4 Replies
7. UNIX for Dummies Questions & Answers
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)
Discussion started by: nmakkena
3 Replies
8. Windows & DOS: Issues & Discussions
: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)
Discussion started by: raghav525
2 Replies
9. Shell Programming and Scripting
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)
Discussion started by: yahoo!
1 Replies
10. Shell Programming and Scripting
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)
Discussion started by: hankooknara
8 Replies