10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hii,
Could someone help me to append string to the starting of all the filenames inside a directory but it should exclude .zip files and subdirectories.
Eg.
file1: test1.log
file2: test2.log
file3 test.zip
After running the script
file1: string_test1.log
file2: string_test2.log
file3:... (4 Replies)
Discussion started by: Ravi Kishore
4 Replies
2. Shell Programming and Scripting
Hi,
I have used the command
cat * | grep -r <<String>> *
It returns:
cat : JAN : is directory
***********************
*********************
My directory structure:
log
- JAN
-catalina.out
-FEB
-catalina.out
-MARCH
... (11 Replies)
Discussion started by: nanthagopal
11 Replies
3. Shell Programming and Scripting
Hi,
I have got a large number of .PDF files that are archived in .RAR & ZIP files in various directories and I would like to search for strings inside the PDF files.
I would think you would need something that can recursively read directories, extract the .RAR/.ZIP file in memory, read the... (3 Replies)
Discussion started by: lewk
3 Replies
4. UNIX for Dummies Questions & Answers
Hi,
Im facing a problem that im stucked,
I have the following structure:
thales@pereirtc-vbox:/home/VfARM$ ls
code config doc lib manifest.bak manifest.rel manifest.v3 ns pub
if i try to execute zip -q -o arm.zip VfARM/* it will create a zip file with the folder VfARM.... (2 Replies)
Discussion started by: Thales.Claro
2 Replies
5. Shell Programming and Scripting
I am new to shell scripting. Can someone help me out with this one please?
I need to write a script fot the following scenario:
I am currently in /parent directory.
I have a set of files in /parent/error_files directory
My script has to search for a file in /parent/erratic_files... (1 Reply)
Discussion started by: ss3944
1 Replies
6. Solaris
Hi,
I am trying to write a script that will search in a particular directory and tell me how many files are in there. I then want to be able to email certain users of how many files are in that directory and what the file names are?
any help would be great as i am getting confused.
thanks (3 Replies)
Discussion started by: Pablo_beezo
3 Replies
7. UNIX for Advanced & Expert Users
Hi Expert,
How can i able to see the directory and the files inside the directories.
Is it possible, please suggest.
Thanks
shaan (4 Replies)
Discussion started by: shaan_dmp
4 Replies
8. Shell Programming and Scripting
May be a simple question for experts here....
I need to get the list of files older than 30 days in the current folder. I tried "find", but it searches recursively in all the sub directories.
Can I restrict the recursive search and extract the files only from current directory ? (18 Replies)
Discussion started by: cxredd4
18 Replies
9. Shell Programming and Scripting
Hi everyone,
I need to search files starting with RPT_0, RPT_1,........ in a directory. How can I implement that through a shell script. Also I want to read the last line of each file after searching them. Can someone help me out in this regard.
One more thing how I can extract a particular... (7 Replies)
Discussion started by: srivsn
7 Replies
10. UNIX for Dummies Questions & Answers
Hi,
I've searched this site and not found this already, so if I missed on my search, sorry.
I need to pass in a variable to a script, where the first three characters of that variable represent a calendar quarter, and the last 2 characters are the year. I.E. Q0105 for Q1, Q0205 for Q2, and... (3 Replies)
Discussion started by: Rediranch
3 Replies