9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I do have folders containing having funny strings in their names and one space.
First, I do remove the funny strings and replace the space by an underscore.
find . -name '* *' | while read file;
do
target=`echo "$file" | sed 's/... (2 Replies)
Discussion started by: tempestas
2 Replies
2. Windows & DOS: Issues & Discussions
Well.
I would love to have a way to:
1.) search a folder, lets say: X:\Files
for any file that contains a "Conflict" in its filename (only!)
(recursively so it searches the whole contents of the folder)
2.) Move all files to another Folder.
All this under DOS.
Any help... (6 Replies)
Discussion started by: pasc
6 Replies
3. Shell Programming and Scripting
Hi there,
I am having trouble with a script I have written, which is designed to search through a directory for a header and payload file, retrieve a string from both filenames, compare this string and if it matches make a backup of the two files then move them to a different directory for... (1 Reply)
Discussion started by: alcurry
1 Replies
4. UNIX for Dummies Questions & Answers
Howdy,
I am trying to search for a string within a directory, and then return the filename only, without the directory itself.
I am using korn shell and the command
x=$(find /XXXXX/XXXXX/XXXXX/I2 -exec grep -c "$line" {} /dev/null \;)
which returns the directory and the filename:
... (4 Replies)
Discussion started by: jgrosecl
4 Replies
5. Shell Programming and Scripting
Hi,
My Requirement is to read the filenames which possess space charatcer in it and pass the same file name to the other shell script as input parameter.
Please provide your valuable suggestion. (5 Replies)
Discussion started by: cnraja
5 Replies
6. UNIX for Dummies Questions & Answers
hi,
i am new to linux and stuck to moving files according to filename.
i have PDF files, named like 20110131_125023.pdf (YYYYMMDD_HHMMSS.pdf)
i want to move those files to the subfolders YYYY/MM/ on monthly basis.
thanks for any help... (2 Replies)
Discussion started by: igmox
2 Replies
7. Shell Programming and Scripting
Hi All
I need a script to manipulate files based on a filename:
example filename: 66600_042706.pdf
the script will create a directory 66000 only if this directory is not existing. If that directory is existing it will just move the file to 66000/666000_042706.pdf
in addition, i want to... (4 Replies)
Discussion started by: aemestech
4 Replies
8. UNIX for Dummies Questions & Answers
I am trying to create files with special characters in its filenames for testing purposes. This is on a Linux RHEL4 but this should also be applicable on a Unix shell.
I am able to create files with special characters in the filenames...e.g.
cp -pv foo.gif \*special.gif
cp -pv foo.gif \... (6 Replies)
Discussion started by: sqa777
6 Replies
9. UNIX for Dummies Questions & Answers
I need to move a bunch of files into folders that have the same name. I wanted to either do this with some filter command or some type of batch file that I could save that would already include all of the mv commands since I will have to do this process often. Whatever method you think is easier.
... (7 Replies)
Discussion started by: italia5
7 Replies