10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi Team,
I am new to the linux commands and I really need help . I would be really thankful if I can get some inputs.
I have below folders in the path "/home/temp"
20170428
20170427
20170429
changes
tempI need to get the files generated in the last 15 mins in all the above folders... (4 Replies)
Discussion started by: JackJinu
4 Replies
2. Shell Programming and Scripting
Hello Experts,
Any help is appreciated.
I would like to find and replace a string in a specific file ( e.g abc.xml) only for the directories starting with "AB 1.0 DIR".
I've 50 sub directories starting with "AB 1.0 DIR". And I would like find the file abc.xml in those sub-directories and... (4 Replies)
Discussion started by: builderj
4 Replies
3. SCO
This may be ludicrously easy to most people, but I've been scratching my head today trying to do it.
I'm archiving data on a OpenServer 5.0.6a box using a combination of FIND, CPIO and BZIP2.
What I'd like to do is archive a range of folders, but ignore some.
For instance, if I have 5... (1 Reply)
Discussion started by: mmcardle
1 Replies
4. UNIX for Dummies Questions & Answers
I'm no linux guru so any help would be greatly appreciated!
I need to output all folders that do not contain a file of a certain extension.
Currently I have the following
find / ! -name '*.txt' -printf %h\\n
This doesn't work because although it finds folders that do not contain *.txt,... (2 Replies)
Discussion started by: hodnov
2 Replies
5. Shell Programming and Scripting
I am trying to get a list of folders contained in a given directory and would then like to delete any folders/files older than 60mins.
So far I am able to get the list of folders using:
ls -l /home/uploads | grep '^d.*'
the output:
drwxr-xr-x 6 flk flk 4096 2010-02-11 13:30... (2 Replies)
Discussion started by: flk
2 Replies
6. Shell Programming and Scripting
In current folder, there are many subfolders, subfolder's subfolders... under it.
How can I find out the empty folders with no files in it.
I only need the top folder list.
For example,
I have folders like below:
a/b/c
a/b/x/x.txt
a/s
a/s/y
I need get the folder a/s, but not... (6 Replies)
Discussion started by: rdcwayx
6 Replies
7. Shell Programming and Scripting
I need a script which can search for two files in location /share/point/ which has year and month stamps example 1) Extract200806.txt
2)file_new200805.csv
If these files exists then it should run a code named abc.sas (3 Replies)
Discussion started by: reachsarath
3 Replies
8. UNIX for Dummies Questions & Answers
Hey there!
I try to use 'find' to remove empty directories like this:
find . -depth -type d -empty -exec rm -rf {} ';'
It works just fine, but there are some directories i want to exclude.
So i tried to do sth like this:
find . -depth -type d -empty -exec grep -v "not this one please" -exec... (5 Replies)
Discussion started by: deTTo
5 Replies
9. UNIX for Dummies Questions & Answers
Is there a command I can use to rename all directories with a certain name to a new name. For instance from my root directory I want to change all folders named '123' to '321' that are in the root directory or any subdirectory.
Thanks in advance! (6 Replies)
Discussion started by: mkingrey
6 Replies
10. UNIX for Advanced & Expert Users
Hi
I would like to find the diff between two folders:
Ex:
Folder:1
html.java
go.java
ten.java
Folder:2html.java
go.java
ten.java
you.java
Questions comes:
Folder:1 contains a files with old version, know the files were modified and updated with the new version in Folder2.
I... (2 Replies)
Discussion started by: gkrishnag
2 Replies