10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi Team,
I'm new to unix and i have a requirement to copy or move files from one directory to another based on current date mentioned in the .zip file name. Note that i need to copy only the recent zip file. please help me with the code
i tried the code as:
#! /usr/bin/sh
find... (3 Replies)
Discussion started by: midhun3108
3 Replies
2. UNIX for Dummies Questions & Answers
Very new to shell scripting. Not sure if my title is correct but I will try and explain.
Directory has 100+ files with this format, " ABCD_ABC_Abc_AB0126.abc ". When a new file gets created, the 16-19 characters in the file name gets incremented by 1. Ex...todays most recent file is... (14 Replies)
Discussion started by: askvip
14 Replies
3. Shell Programming and Scripting
Dear All,
I need to transfer all files present in one location to another but those files should be of specific extension like.
Find and copy all files of extension .xls, .pdf, .txt from location usr/tmp to location /per/Treat (6 Replies)
Discussion started by: yadavricky
6 Replies
4. Shell Programming and Scripting
I am looking to do the following:
In a folder with multiple files in it, take the listing (ls) and search another directory for there file names, then take that output and copy the files out.
This is to update a webpage. So a dev writes a new file and puts it in an update folder then i copy... (7 Replies)
Discussion started by: darbs121
7 Replies
5. UNIX for Dummies Questions & Answers
Hi ,
As i am a dummy in shell scripting ,i was trying to find the files which are created today and hold them in variable and the copy them to a location using a partcular command this is what did. can any one help.There may be many files under the path
SOURCE=/path/to/files/
A= find... (1 Reply)
Discussion started by: vikatakavi
1 Replies
6. Shell Programming and Scripting
I am new, really new to bash scripts.
I want to search an XML file for a certain string, say "1234567890"
Once found, I want to copy the entire contents from the previous instance of the string "Entity" to the next instance of "/Entity" to a txt file.
And then continue searching for the... (4 Replies)
Discussion started by: jrfiol
4 Replies
7. Shell Programming and Scripting
> Advice please as much as possible to fill in large file in various folder to the server
> Folder structure
/www/1.org/htdocs
/www/2.org/htdocs
/www/3.org/htdocs
> Can tell me there is a way to fill in large file into htdocs, and then climb
> In each Diru and load for a long time. Thank you (1 Reply)
Discussion started by: lol100
1 Replies
8. Shell Programming and Scripting
Hi Everybody,
i want a samll help to write a script.
i had source location with :/user/bin (bin contains subdirectories with like names emails etc and had several files in each subdirectory)
and target location with :/usr/scripts (having same subdirectories names and had some files)... (1 Reply)
Discussion started by: Reddy482
1 Replies
9. UNIX for Dummies Questions & Answers
Hi, I am trying to do something relatively easy, but am having some trouble getting it to work.
I have multiple files called "distances.log" in numerous subdirectories and sub-subdirectories within a directory. I would like the contents of each of these "distances.log" files to be appended to a... (2 Replies)
Discussion started by: euspilapteryx
2 Replies
10. UNIX for Advanced & Expert Users
Hello there
I need to find a string in an file, and then copy to a new file from the previous 6 lines to 41 lines after the string.
So, what i need to do , and just don't know how, is to find the string and copy 48 lines where the string would be in the 7th line.
I don't know if i can do it with... (10 Replies)
Discussion started by: vascobrito
10 Replies