10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I have a .csv file that has ~600 columns and thousands of rows. I would like to create a numerical list of the column names (so that I can later easily select the columns I want to extract). The format that I would hope for is something like:
1 "ID"
2 "X"
3 "Y"
..
600 "Z"
... (4 Replies)
Discussion started by: aberg
4 Replies
2. Shell Programming and Scripting
Data files coming in different names in a file name called process.txt.
1. shipments_yyyymmdd.gz
2 Order_yyyymmdd.gz
3. Invoice_yyyymmdd.gz
4. globalorder_yyyymmdd.gz
The process needs to discard all the below files and only process two of the 4 file names available
... (1 Reply)
Discussion started by: dsravanam
1 Replies
3. Shell Programming and Scripting
Hi,
I want to display the file names and the record count for the files in the 2nd column for the files created today.
i have written the below command which is listing the file names. but while piping the above command to the wc -l command
its not working for me.
ls -l... (5 Replies)
Discussion started by: Showdown
5 Replies
4. UNIX for Dummies Questions & Answers
Hi All,
Could you please help to resolve my following issues:
Problem Description:
Suppose my user name is "MI90".
i.e. $USER = MI90
when i run below command, i get all the processes running on the system containing name MQ.
ps -ef | grep MQ
But sometimes it lists... (8 Replies)
Discussion started by: KDMishra
8 Replies
5. Shell Programming and Scripting
Hi,
I want to display latest files (created or modified) recursively in a path.
I tried in different ways, but didn't get any desired output:
find $path -type f -exec ls -lt {} \; | sort -n -r
find $path -type f -printf %p";" | xargs -d ";" ls -t
Second one is giving the error:... (21 Replies)
Discussion started by: karumudi7
21 Replies
6. Shell Programming and Scripting
Hi,
I'm trying to use a config file to define frequencies for checking log files. If the config file contains a frequency it will be used else a default value. The format of the config file (and hence the environment variable) is
FREQ_log_logname=value
A test shell script as below:... (2 Replies)
Discussion started by: u671296
2 Replies
7. UNIX for Advanced & Expert Users
Hello,
When listing the file systems (using ls -ltr) , if the group names are longer the group name is getting truncated.
Can someone help with the script which would display the truncated group name?
I appreciate if someone could help in this regard. (1 Reply)
Discussion started by: mike12
1 Replies
8. Shell Programming and Scripting
Sun Solaris Unix Question
Haven't been able to find any solution for this situation. Let's just say the file names listed below exist in a directory. I want the find command to find all files in this directory but at the same time I want to eliminate certain file names or files with certain... (2 Replies)
Discussion started by: 2reperry
2 Replies
9. UNIX for Dummies Questions & Answers
This is what I have to do:
Display the full file name (including the full path) and file size of all files whose name (excluding the path) is exactly 3 characters long.
This is the code I have:
find / -printf "Name: %f Path: %h Size: %s (bytes)\n" 2>/dev/null | grep -E "Name: .{3,} Path" |... (7 Replies)
Discussion started by: Joesgrrrl
7 Replies
10. UNIX for Dummies Questions & Answers
hello all,
iam new to shell scripting.I have searched the forum and could'nd find a close enough answer and hence this post:
I want to list all the file names whose names don't start as abc.
For example if my folder constains files with names: abc123.txt,erdf23.rdf,ed45r.fmb
i want a... (13 Replies)
Discussion started by: valluvan
13 Replies
IVMCONFIGPROPERTIES.XML(5) File Formats Manual IVMCONFIGPROPERTIES.XML(5)
NAME
IvmConfigProperties.xml - device properties to be monitored by ivman(8)
DESCRIPTION
IvmConfigProperties.xml specifies hardware properties to be monitored by ivman(8), and allows running of certain commands when device prop-
erties change.
IvmConfigProperties.xml is parsed as an XML file. The general form of the file is:
<?xml version="1.0" encoding="UTF-8"?>
<ivm:PropertiesConfig version="0.1" xmlns:ivm="http://www.eikke.com/ivm">
<ivm:Match name="matchname" value="matchvalue">
<ivm:Property name="propertyname">
<ivm:Action value="propertyvalue1" exec="command1" />
<ivm:Action value="propertyvalue2" exec="command2" />
...
</ivm:Property>
</ivm:Match>
...
</ivm:PropertiesConfig>
Each time a property changes on a device, this file will be parsed. If the Match rule matches the device on which the property changed,
and the Property rule matches the name of the property which changed, then all of the Action rules within that Property tag wil be parsed.
If 'value' is equal to the new value of the changed property, then the command specified in 'exec' will be executed.
A Match element can have any of the following names:
ivm.mountable
Whether or not HAL specifies that a device can and should be mounted. Must be "true" or "false".
hal.anything
The string in place of "anything" will be taken as the name of a HAL property string for the device, and the value of the prop-
erty will be compared to the value given. Run 'lshal' to see a list of HAL properties which can be used here.
* Match every device. Use with care!
As many Matches can be nested as is desired.
A Property element can have the following name:
hal.anything
The string in place of "anything" will be taken as the name of a HAL property string for the device, and if this is the prop-
erty that has changed, enclosed rules will be processed.
An Action element can have any string as its 'value'. If the new value of the changed property is equal to this string, then the command
given as the 'exec' property will be executed. It can also have the special value '*'; in this case, the 'exec' command will be executed
every time the property changes.
exec supports substitution of HAL device properties. This is accomplished by surrounding the property name with $ symbols. For instance,
if $hal.volume.mount_point$ is within a command, it will be replaced with the volume's mount point before execution. No character escaping
is done in the substitution, but the characters ' and " are replaced with ?, so you can surround the substitution with quotes without fear.
There is also a single Option which can be set in this file, and should be set outside of any Match or Property blocks. The syntax of this
option is:
<ivm:Option name="checkOnInit" value="true" />
If the value of checkOnInit is true, then Ivman will check every device on the system for matching rules when started. For example, if a
rule was present which started a service only when a particular volume was mounted, and Ivman was started when the volume was already
mounted, it would start the service if and only if checkOnInit was set to true.
Remember that this is an XML file, which means that characters which have a special meaning in XML (entities) need to be escaped. Some
characters which are popular in shell scripting (&, <, >) are among these special characters. As a quick reference, & becomes & , <
becomes < , > becomes > , ' becomes ' and " becomes " .
SEE ALSO
ivman(8), IvmConfigBase.xml(5), IvmConfigActions.xml(5), IvmConfigConditions.xml(5)
12 May 2005 IVMCONFIGPROPERTIES.XML(5)