10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I supposed that it was working fine but now I see that it's not working as expected.
I am running under ubuntu14.04, trusty.
My plan was to search folderA and all subdirectories and move any txt file to destination folder, folderB :
find /home/user/folderA/ -type f -iname "*.txt"... (0 Replies)
Discussion started by: baris35
0 Replies
2. Shell Programming and Scripting
Hi Team,
I am new to shell script and there is a requirement where files should be moved from Subfolder to parent folder.
Eg:
parent folder --> /Interface/data/test/IN
Sub folder -->/Interface/data/test/IN/Invoice20180607233338
Subfolder will be always with timestamp... (6 Replies)
Discussion started by: srivarun15
6 Replies
3. 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
4. Shell Programming and Scripting
Hi all,
I am receiving files named like:
ABC_20120730.csv
ABC_20120801.csv
ABC_20120812.csv
They are residing in a folder named Incoming.
I am supposed to write a script that will create a filelist which will contain only the name of the latest file beginning with ABC_, by YYYYMMDD... (3 Replies)
Discussion started by: kedrick
3 Replies
5. Shell Programming and Scripting
Hi All,
So I have another question. I'm trying to search for files with a certain extension and then move all of them up one level in the folder hierarchy.
So something like this:
original: /path/to/file/test.txt
after: /path/to/test.txt
I had some great help recently with another... (4 Replies)
Discussion started by: ideal2545
4 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,
I have the following subfolder with files:
/data/a/1/xxx.txt
/data/b/2/yyy.txt
/data/c/3/zzz.txt
And i have a set of new folders which have exactly the same structure as above but different disk without the files:
/data_02/a/1/
/data_02/b/2/
/data_02/c/3/
Now i would like to... (6 Replies)
Discussion started by: total_ysf
6 Replies
8. UNIX for Dummies Questions & Answers
Hello,
Well I have a web with a very bad structure (a vBulletin forum) and I want it redirected to a newer folder in the same server but with a upper level folder.
Current structure is:
https://www.unix.com/vbulletin/upload/index.php
And I want it to be:... (0 Replies)
Discussion started by: Rafaweb
0 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I have a folder with a million subdirectories which all have a million files in them (some of them duplicates)..
I am looking for the right program command to move all of the files out of the directories and into one folder-- and replace all of the duplicates..
If anyone has any ideas,... (2 Replies)
Discussion started by: patrick99e99
2 Replies
10. UNIX for Dummies Questions & Answers
What is the purpose (function) of the following upper level directories: -
/bin
/dev
/etc
/home
/mnt
/media
/sbin
/tmp
/var
I have encountered these, but as i said, i am new to unix and i am not quite sure what they are and what their fucntions are.
Any help would be greatly... (2 Replies)
Discussion started by: carlvernon
2 Replies