10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I want to move all the files in a given directory up one level.
For example:
Dir1
Subdir1
I want to move all the files in Subdir1 up to Dir1 (then I want to ultimately delete Subdir1)
Thanks,
Ted (10 Replies)
Discussion started by: ftrobaugh
10 Replies
2. Shell Programming and Scripting
I have the below command to delete all .xml files older than 90 days
find . -type f -name '*.xml' -mtime +90 -exec rm {} \;
What will be the command to move all the .xml files older than 90 days to this folder -> "/tmp/my_bk"
My OS: SunOS my-pc 5.10 Generic_150400-17 sun4v sparc... (4 Replies)
Discussion started by: mohtashims
4 Replies
3. UNIX for Dummies Questions & Answers
Greetings. I know enough Unix to be dangerous (!) and know that there is a clever way to do the following and it will save me about a day of agony (this time) and I will use it forever after! (many days of agony saved in the future)!
Basically
I need to find any image files (JPGs, PSDs etc)... (5 Replies)
Discussion started by: Clyde Lovett
5 Replies
4. Shell Programming and Scripting
I have have 6 empty directory below. I would like write bash scipt if any files less "1000000000" bytes then move to "/export/home/mytmp/final" folder first and any files greater than "1000000000" bytes then move to final1, final2, final3, final4, final4, final5 and that depend see how many files,... (6 Replies)
Discussion started by: dotran
6 Replies
5. Shell Programming and Scripting
I need help with a bash script.
We have a directory of files which need to be renamed and moved to another directory based on filename information in a cvs file.
The contents of the cvs file are as follows:
A102345,abc123
A102347,dfg475
Where dfg475 is the basename without extension
Our... (8 Replies)
Discussion started by: Lloyd Boyette
8 Replies
6. Shell Programming and Scripting
hi , could you help me with shell scripting
in a shell script i have these commands
a=`ls -R $dir | grep ./ `
cp -R ./$a/* ./$output/
with the first command i have all the directories with the second command i want to copy them in a new directory something like this... (2 Replies)
Discussion started by: faethon
2 Replies
7. Shell Programming and Scripting
Hi, all:
My folder structure is like:
What I'm expecting to realize is to have my folders look like:
How to realize it?
Cheers
Pei (0 Replies)
Discussion started by: jiapei100
0 Replies
8. UNIX for Dummies Questions & Answers
Hi:
I have:
folderA
|----folderB
|----folder1
|----folder2
|----folder3
|----folder3.1
Question:
How can I find *.txt ONLY from /folderA/folderB/ and not the others folder1,2,3??
I tried:
find... (8 Replies)
Discussion started by: iga3725
8 Replies
9. Red Hat
To find a word from multiple level files:
"find . -type f -exec grep {} +" is working on UNIX machines but not working on Linux machine. What is the equivalent command on Linux to find the word from multiple level files?
Input is appreciated. (3 Replies)
Discussion started by: ywu081006
3 Replies
10. Shell Programming and Scripting
i have some 1000 files in my dir and i want to find top 100 files and move them to some other location:
below the 2 commands i used, but it is not working
ls -ltr | grep ^- | head -100 | xargs mv destination - _________>not working
ls -ltr | grep ^- | head -100 | xargs mv {}... (3 Replies)
Discussion started by: ali560045
3 Replies