All Questions
15
questions
1
vote
0
answers
25
views
How do I delete all folders with a similar name that do not contain large files on linux commandline?
On my linux server for my media library I used a function to change show season names to have a leading zero when needed, so "Season 1" would be Season 01" and so on. The problem is ...
1
vote
1
answer
3k
views
recursively wget in specific folder
I'm trying to get files from HTTP using wget command.
I need every file in:
http://9.9.9.9/a/b/c/d/
which is not a directory.
I was trying it by:
-A log,html,tgz,zip,txt,css,js
In addition, ...
3
votes
1
answer
2k
views
making sense of wget -r output
This is the output of tree command in one directory:
.
|-- asdf.txt
|-- asd.txt
|-- fabc
| |-- fbca
| `-- file1.txt
|-- fldr1
|-- fldr2
| `-- index.html
|-- fldr3
| |-- cap.txt
| `-- f01
`--...
0
votes
2
answers
93
views
Copy linux directory into another one - delete contents
BIG EDIT:
I currently have a directory with folders and files inside:
-css
--addons
---myaddon
----addon
-----firsfile.xml
-----secondfile.xml
----cfg
-----anotherfile.cfg
-----lastcfg.cfg
---...
0
votes
2
answers
2k
views
Why does `rm -rf`` silently fail?
[EDIT]
Please don't waste your time reading my question below. It turns out my colleague is an idiot.. :)
On my server I'm trying to remove a folder and all its subfolders with the usual rm -rf ...
0
votes
1
answer
78
views
How to group "Only in" lines in diff at the beginning of the output
I did:
diff -r directory1/ directory2/
Some files are different, and some files were only in one tree or the other, creating several Only in ... lines.
How do I group these lines at the beginning ...
4
votes
1
answer
2k
views
How do you remove nested empty directories using a Bash script on Linux?
I want to be able to run a script that will remove all my empty directories. The problem is some of them are nested, i.e. directories that only have empty directories in them, so the script needs to ...
0
votes
1
answer
1k
views
How to Unzip files recursively in Linux / DOS
I have a zipped folder which contains thousands of zipped folders contained in itself and that goes down the hierarchy, I have to unzip each and every file and place it in a single folder.
This task ...
10
votes
1
answer
10k
views
How to find files that don't belong to a given user
How do I recursively search for all files or directories that do not belong to given user?
15
votes
2
answers
37k
views
How do you search for specific text in specific file types? [duplicate]
Possible Duplicate:
How can I grep in source files for some text?
What's the command to search for specific text in specific file types, recursively, under the current directory?
4
votes
4
answers
7k
views
Recursive search for files that hold some specific text
How do I recursively generate a text file which has a list of all files on my server which contain a specific string anywhere in the files?
I know the following command can be used to replace a ...
1
vote
2
answers
6k
views
recursively replace every instance of a word in a directory from linux command line
I have a directory with several subdirectories that all contain text files. In these text files, there is a certain word that occurs over and over again, and I want to replace every instance.
My ...
3
votes
3
answers
4k
views
How to rename everything matching a certain string in a folder
I want/need to rename everything within a folder that matches a given string. By everything I mean:
folders/files
content within a file
content in hidden files
Basically, I want to refactor a Java-...
1
vote
1
answer
3k
views
Recursive filesystem notifications (inotify) for Ubuntu Karmic Koala
I need a program which generates events when a file is moved, removed or its extended attributes are changed. I'm running Ubuntu Karmic Koala 32-bit desktop.
inotify is the standard solution for such ...
36
votes
2
answers
38k
views
How can I force only relative paths in "find" output?
I am attempting to create a script that can compress files with a certain extension in a number of directories into a single tar-ball. Currently what I have in the script file is:
find "$rootDir" -...