09-23-2010
In the format MIG_CR_<TYPE>_<TIMESTAMP>.<EXT>
What do <TYPE> <TIMESTAMP> and <EXT> look like?
in other words, what are the authorized values of those substrings?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
This with reference to my earlier thread.
I have file called input that has 2 values. Now I have to check whether the 2 fileds are seperated by a "|" or not. I am not able to do this with the following script.
while read line
do
first=`echo $line | cut -f1 -d'|'`
... (8 Replies)
Discussion started by: sendhilmani123
8 Replies
2. Shell Programming and Scripting
Hi-
I am hoping someone can give me some pointers to get me started. I have a file which contains some dn's .e.g file 1
cn=bob,cn=user,dc=com
cn=kev,cn=user,dc=com
cn=john,cn=user,dc=com
I have a second file e.g. file.template which looks something like :-
dn: <dn>
objectclass:... (5 Replies)
Discussion started by: sniper57
5 Replies
3. Shell Programming and Scripting
Output file template format
<input_file_name>a</input_file_name>
<total_length_size>b</total_length_size>
<log_10_length_size>c</log_10_length_size>
Input_file_1 (eg. sample.txt)
SDFSDGDGSFGRTREREYWW
Parameter:
a is equal to the input file name
b is equal to the total length of... (2 Replies)
Discussion started by: perl_beginner
2 Replies
4. Shell Programming and Scripting
hi,
I need some help in writing shell script in a bourne shell.I am trying to rename the file..
eg.
find /root/data -type f -name "text*) | while read FILES
do
newfile=${FILES/type_2.0_20101208_34.xml / tmp.xml}
mv "$FILES" "$newfile"
done
above written script is working...If the... (7 Replies)
Discussion started by: shubhig15
7 Replies
5. Shell Programming and Scripting
ok im sorta stuck on this,
The user enters a car model and it has to check it in a text file in the current directory. If the car model is not in the file, user has to enter another model
This is what i have so far
read -p "Enter a car model: " car1
grep -w $car1=$(cat carMakes.txt)... (3 Replies)
Discussion started by: gangsta
3 Replies
6. Shell Programming and Scripting
I need to create an xml using shell script, but i first want to know how can i write multiple lines to file using shell script? (7 Replies)
Discussion started by: vel4ever
7 Replies
7. Shell Programming and Scripting
Hi,
Here is my question:
I want a shell script which I name as 'del', and can be used as del(string).
when run del(string), it will delete several directories at different locations in my system,like:
rm -fr /lustre/fs/scratch/user/$string
rm -fr /home/user/$string
rm -fr... (4 Replies)
Discussion started by: 1988PF
4 Replies
8. Shell Programming and Scripting
Dear Friends,
I am looking for a shell script to merge input files into one file .. here is my idea:
1st paramter would be outfile file (all input files content)
read all input files and merge them to input param 1
ex: if I pass 6 file names to the script then 1st file name as output file... (4 Replies)
Discussion started by: hyd1234
4 Replies
9. Shell Programming and Scripting
Hi Everyone,
I want your help to write a script which will take text file as input and on the basis of delimiter ":"script will create excel sheet.
Example input:
IpAdress:InstanceName:Port:ServerName
10.255.255.1:abc:2232:xyz_abc
Output should be an excel sheet like below:
Column... (8 Replies)
Discussion started by: akabhinav18
8 Replies
10. Programming
Hi Experts,
I am writing a python script to grep string from file and display output in csv file as in attached screenshot
https://drive.google.com/file/d/1gfUUdfmQma33tz65NskThYDhkZUGQO0H/view
Input file(result_EPFT_config_device)
Below is the python script i have prepared as of... (1 Reply)
Discussion started by: as7951
1 Replies
LEARN ABOUT SUNOS
ifparse
ifparse(1M) System Administration Commands ifparse(1M)
NAME
ifparse - parse ifconfig command line
SYNOPSIS
/sbin/ifparse [-fs] addr_family commands
DESCRIPTION
Use the ifparse command to parse the ifconfig(1M) command line options and output substrings, one per line, as appropriate. If no options
are specified, ifparse returns the entire ifconfig command line as a series of substrings, one per line.
OPTIONS
The ifparse command supports the following options:
-f Lists only substrings of the ifconfig command line that are relevant to IP network multipath failover
-s Lists only substrings of the ifconfig command line that are not relevant to IP network multipath failover
OPERANDS
The ifparse command does not support the interface operand of the ifconfig command.
EXAMPLES
Example 1: Parsing Command Line Options Relevant to Failover
The following example shows the use of the ifparse command to parse the command line options relevant to IP network multipath failover:
example# ifparse -f inet 1.2.3.4 up group one addif 1.2.3.5 -failover up
set 1.2.3.4 up
Example 2: Parsing Command Line Options That Are Not Relevant to Failover
The following example shows the use of the ifparse command to parse the command line options that are not relevant to IP network multipath
failover:
example# ifparse -s inet 1.2.3.4 up group one addif 1.2.3.5 -failover up
group one
addif 1.2.3.5 -failover up
Example 3: Parsing the Command Line For All Options
The following example shows the use of the ifparse command to parse the command line for all ifconfig options:
example# ifparse inet 1.2.3.4 up group one addif 1.2.3.5 -failover up
group one
set 1.2.3.4 up
addif 1.2.3.5 -failover up
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsr |
+-----------------------------+-----------------------------+
|Stability Level |Obsolete |
+-----------------------------+-----------------------------+
SEE ALSO
ifconfig(1M), attributes(5)
DIAGNOSTICS
usage: -fs <addr_family> <commands>
This message indicates an invalid command line.
ifparse: Not enough space
This message indicates insufficient memory.
ifparse: dhcp not supported for inet6
DHCP operations are not supported for the inet6 address family.
ifparse: Operation <operation> not supported for <addr_family>
Most operations cannot be used with all address families. For example, the broadcast operation is not supported on the inet6 address fam-
ily.
ifparse: no argument for <operation>
Some operations, for example broadcast, require an argument.
NOTES
The ifparse command is classified as an obsolete interface. It will likely be removed in a future release. You should not develop applica-
tions that depend upon this interface.
SunOS 5.10 9 May 2001 ifparse(1M)