05-15-2008
Hi
The above solutions is fine if I have only four lines. I am not sure how many lines will be created in the output a.txt.
Pl let me know how to handle in looping
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I have problem with database validations, actually my requirement is, my code will generate some seqno;s, which i have to check in database, whether the generated seqno;s are present in database or not, if the generated seqno;s are present in the database means, i need to generate... (2 Replies)
Discussion started by: hsekol
2 Replies
2. Shell Programming and Scripting
Hi
I have a config file with multiple section and a parameter with the same name in each section. I need to read each parameter for distinct section.
Parameter = 1
....
Parameter = 2
....
Parameter = 4
....
Tried this:
grep -m1 '^*ProcessorsNumber' ServiceBrokerFramework.cfg |... (7 Replies)
Discussion started by: potro
7 Replies
3. Shell Programming and Scripting
Hi, I have file1 that contains many columns as show the first three below:
"At1g29930" 198 2105
"At5g46430" 5569 9576
"At1g64740" 1908 2505
"At5g46430" 6717 11317
"At1g64740" 453 655
"At1g12470" 33 18
"At1g80680" 149 262
"At1g23040" ... (3 Replies)
Discussion started by: yifangt
3 Replies
4. UNIX for Dummies Questions & Answers
Hi every one;
I have a file with 22 rows and 13 columns which includes floating numbers.
I want to parse the file so that every five columns in the row would be a new record (row). For example, the first line in the old file should be converted into three lines with first two lines contain 5... (6 Replies)
Discussion started by: PHL
6 Replies
5. UNIX for Dummies Questions & Answers
So, I'm going to install Oracle DB within my Suse host...
Also, I would like to run Virtual Box and Tomcat..
ok, tomcat is going to be runnable app that will start at boot..
but, how to handle Oracle and virtual box?
I would like to have an Oracle under it's own user, and to be able to use... (0 Replies)
Discussion started by: bongo
0 Replies
6. Shell Programming and Scripting
Hi pls help me out to short out this problem
rm PAB113_011.out
rm: PAB113_011.out: override protection 644 (yes/no)? n
If i give y it remove the file.
But i added the rm command as a part of ksh file and i tried to remove the file. Its not removing and the the file prompting as... (7 Replies)
Discussion started by: sri_aue
7 Replies
7. Shell Programming and Scripting
I need to extract the data from oracle table and written the below code.
But it is not working.There is some problem with the query and output is shown is No rows selected" . If I run the same query from sql developer there is my required output.
And if I run the shell script with simple sql... (7 Replies)
Discussion started by: giridhar276
7 Replies
8. UNIX for Dummies Questions & Answers
Hello Friends,
I know you all are busy and inteligent too...
I am stuck with one small issue if you can help me then it will be really great.
My problem is I am having some files i.e.
Input.txt1
Input.txt2
Input.txt3
Now my task is I need to check the total number of rows in... (4 Replies)
Discussion started by: malaya kumar
4 Replies
9. Shell Programming and Scripting
Gents,
I have a big file, where I would like to get some rows..
Then file1 contains.
Obs_Report_Result :
Shot_Report : ... (4 Replies)
Discussion started by: jiam912
4 Replies
10. UNIX for Advanced & Expert Users
Hi,
I noticed a weird behavior in extundelete way to choose the filename to which it will restore a given inode. Here is an example :
root@rescue:~# for after in '' 0 740 741 $(date -d 'now - 1 year' +%s); do rm -rf RECOVERED_FILES/; echo -e "$(date -d@$after 2> /dev/null || echo No... (4 Replies)
Discussion started by: chebarbudo
4 Replies
LEARN ABOUT MOJAVE
mime.types
mime.types(5) Apple Inc. mime.types(5)
NAME
mime.types - mime type description file for cups
DESCRIPTION
The mime.types file defines the recognized file types.
Additional file types are specified in files with the extension .types in the CUPS configuration directory.
Each line in the mime.types file is a comment, blank, or rule line. Comment lines start with the # character. Rule lines start with the
MIME media type and are optionally followed by a series of file recognition rules:
mime/type [ rule ... rule ]
Rules can be extended over multiple lines using the backslash character ():
mime/type [ really-really-really-long-rule ...
rule ]
MIME media types specified by the mime/type field are case-insensitive and are sorted in ascending alphanumeric order for the purposes of
matching. See the "TYPE MATCHING AND PRIORITY" section for more information.
The rules may be grouped using parenthesis, joined using "+" for a logical AND, joined using "," or whitespace for a logical OR, and
negated using "!".
RULES
Rules take two forms - a filename extension by itself and functions with test values inside parenthesis. The following functions are
available:
match("pattern")
True if the filename matches the given shell wildcard pattern.
ascii(offset,length)
True if the length bytes starting at offset are valid printable ASCII (CR, NL, TAB, BS, 32-126).
printable(offset,length)
True if the length bytes starting at offset are printable 8-bit chars (CR, NL, TAB, BS, 32-126, 128-254).
priority(number)
Specifies the relative priority of this MIME media type. The default priority is 100. Larger values have higher priority while
smaller values have lower priority.
string(offset,"string")
True if the bytes starting at offset are identical to string.
istring(offset,"string")
True if the bytes starting at offset match string without respect to case.
char(offset,value)
True if the byte at offset is identical to value.
short(offset,value)
True if the 16-bit big-endian integer at offset is identical to value.
int(offset,value)
True if the 32-bit big-endian integer at offset is identical to value.
locale("string")
True if current locale matches string.
contains(offset,range,"string")
True if the bytes starting at offset for range bytes contains string.
STRING CONSTANTS
String constants can be specified inside quotes ("") for strings containing whitespace and angle brackets (<>) for hexadecimal strings.
TYPE MATCHING AND PRIORITY
When CUPS needs to determine the MIME media type of a given file, it checks every MIME media type defined in the .types files. When two or
more types match a given file, the type chosen will depend on the type name and priority, with higher-priority types being used over lower-
priority ones. If the types have the same priority, the type names are sorted alphanumerically in ascending order and the first type is
chosen.
For example, if two types "text/bar" and "text/foo" are defined as matching the extension "doc", normally the type "text/bar" will be cho-
sen since its name is alphanumerically smaller than "text/foo". However, if "text/foo" also defines a higher priority than "text/bar",
"text/foo" will be chosen instead.
FILES
/etc/cups - Typical CUPS configuration directory.
EXAMPLES
Define two MIME media types for raster data, with one being a subset with higher priority:
application/vnd.cups-raster string(0,"RaSt") string(0,"tSaR")
string(0,"RaS2") string(0,"2SaR")
string(0,"RaS3") string(0,"3SaR")
image/pwg-raster string(0,"RaS2") +
string(4,PwgRaster<00>) priority(150)
SEE ALSO
cups-files.conf(5), cupsd.conf(5), cupsd(8), cupsfilter(8), mime.convs(5), CUPS Online Help (http://localhost:631/help)
COPYRIGHT
Copyright (C) 2007-2017 by Apple Inc.
12 June 2014 CUPS mime.types(5)