11-27-2016
RE:
Thank you for the steering, my Mac OS is Yosemite 10.10.5.
That control flow statement you wrote, how would I nest that in the code. appreciated.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
egrep Date: *.html > out.htm
I would like to grep the match as sorted by time stamp of the html files. how do I do that? (1 Reply)
Discussion started by: zer0
1 Replies
2. Shell Programming and Scripting
I have a requirement, which is as follows
*. Folder contains list of xmls. Script has to create new xml files by copying the existing one and renaming it by appending "_pre.xml" at the end.
*. Each file has multiple <Name>fileName</Name> entry. The script has to find the first occurance of... (1 Reply)
Discussion started by: sudesh.ach
1 Replies
3. Shell Programming and Scripting
File_A contains Strings:
a
b
c
d
File_B contains Strings:
a
c
z
Need to have script written in either sh or ksh. Derive resultant files (File_New_A and File_New_B) from lists File_A and File_B where string elements in File_New_A and File_New_B are listed below.
Resultant... (7 Replies)
Discussion started by: mlv_99
7 Replies
4. Shell Programming and Scripting
Have to read one file say sourcefile containing several words and having another folder containing several files.
Now read the first word of Sourcefile & search it into the folder consisting sevral files, and create another file with result. We hhave to pick the filename of the file in which... (3 Replies)
Discussion started by: mukesh.baranwal
3 Replies
5. Shell Programming and Scripting
Hello, I'm trying to write a script which is listing files based on different preferences, like filetype or permissions. All is fine, except for one: I want to list files in /home which has a different owner than the home directory it is in.
Here is an example:
/home/UserA is the directory, and... (10 Replies)
Discussion started by: Zwiebi
10 Replies
6. Shell Programming and Scripting
I am very new to UNIX as well as scripting so please be gentle, haha.
I have a Linux client which has a mount point mapped to my /etc folder on a NetApp FAS system. I woudl like to be able to copy the hosts and rc files once a week from the FAS to a different location for backup.
When the... (4 Replies)
Discussion started by: minnino
4 Replies
7. Shell Programming and Scripting
Hi,
I am trying to write a shell script which can read folder names from a text file and then go to the folder and picks up a xml file and write on my sipp script so that I can run the sipp script.
For example:
I have a text file called thelist.txt where I have provided all the folders... (7 Replies)
Discussion started by: pm1504
7 Replies
8. Shell Programming and Scripting
Plese help I need a urgent requirement.
Ex: test.log
requirement : using shell script I need to archive the log file and nil and the content of (test.log) file to 0 kb
and then in the archive folder log files are name to test.tar
test1.tar
test2.tar
EX:
/home/abc/
test.log ... (1 Reply)
Discussion started by: johney1981
1 Replies
9. Shell Programming and Scripting
Hi All,
When i use sort Test, here is the output:
$ sort Test
a
b
b
c
d
e
f
g
h
i
But the contents in the file remain unsorted, how to do that?
]$ cat Test
g
i (6 Replies)
Discussion started by: chandrakanth
6 Replies
10. UNIX for Beginners Questions & Answers
I have an interactive script which works terrific at processing a folder of unsorted files into new directories.
I am wondering how I could modify my script so that( upon execution) it provides an additional labelled summary file on my desktop that lists all of the files in each directory that... (4 Replies)
Discussion started by: Braveheart
4 Replies
LEARN ABOUT DEBIAN
flow-expire
flow-expire(1) General Commands Manual flow-expire(1)
NAME
flow-expire -- Manage storage of flow file archives by expiring old data.
SYNOPSIS
flow-expire [-h] [-d debug_level] [-e expire_count] [-E expire_size] -w workdir
DESCRIPTION
The flow-expire utility will remove the oldest flow files in a directory based on either a count of files or space utilization. The direc-
tory is recursively searched for flow files. Files that do not have a flow-tools signature will be ignored. The internal timestamp is
used so backups or copies of the flow files that do not retain the original timestamp will not impact the operation of flow-expire. flow-
expire is typically used to manage storage in a distributed environment where flows are collected on a different server than they are
archived.
OPTIONS
-d debug_level
Enable debugging.
-e expire_count
Retain the maximum number of files so that the total file count is less than expire_count.
-E expire_size
Retain the maximum number of files so that the total storage is less than expire_size. The letters b,K,M,G can be used as multi-
pliers, ie 16 Megabytes is 16M.
-h Display help.
-w workdir
Work in workdir.
EXAMPLES
Remove the oldest flow files in /flows/krc4 until the total storage is less then 2 Gigabytes.
flow-expire -E2Gig -w /flows/krc4
Remove the oldest flow files in /flows/krc4 until the total number of files is less then 100.
flow-expire -e100 -w /flows/krc4
BUGS
Empty directories are not removed.
AUTHOR
Mark Fullmer maf@splintered.net
SEE ALSO
flow-tools(1)
flow-expire(1)