05-16-2012
You can use [-_] as field sep. And possibly filter those lines with NF==7. Let us know if you need more help.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
I wrote this script with the help of you guyz.My next challenge is to increment the port using single file.So far iam using this code to increment hp1 and hp2 .To increment port numbers, iam using two different files (.default_port_hp1 and .default_port_hp2).The challenge for me is to use... (0 Replies)
Discussion started by: coolkid
0 Replies
2. UNIX for Dummies Questions & Answers
Hello All,
In the below script i am trying to check and list the file names, get the last file with highest version number and then increment the version number when i create another file. Example: file1 is COBANK_v1.xml and file2 i want to put it as COBANK_v2.xml, to achieve this i am using awk... (15 Replies)
Discussion started by: Ariean
15 Replies
3. Shell Programming and Scripting
Hi, I have some datatexts with values and I want to replace only the values of the first file with the result of array loaded in one variable.
Also I want the operation difference with the original value replaced and only replace the new value not the character format of the file.
Some Idea?... (24 Replies)
Discussion started by: faka
24 Replies
4. Shell Programming and Scripting
I have a bunch of file numbers in the file 'test':
I'm trying the above command to change all the instances of "H" to "Na+" in the file testsds.pdb at the line numbers indicated in the file 'test'. I've tried the following and various similar alternatives but nothing is working:
cat test |... (3 Replies)
Discussion started by: crunchgargoyle
3 Replies
5. Shell Programming and Scripting
Hi again. Sorry for all the questions — I've tried to do all this myself but I'm just not good enough yet, and the help I've received so far from bartus11 has been absolutely invaluable. Hopefully this will be the last bit of file manipulation I need to do.
I have a file which is formatted as... (4 Replies)
Discussion started by: crunchgargoyle
4 Replies
6. Shell Programming and Scripting
Hi friends,
i need a command which can be used to change the values in file.
I have file which contain some values.
Data_Center_costing=XXXX
Financial_loss=XXXX
operational_cost=XXX
I am not aware about the values of XXXX, They may be 4 digit or less/more than that. but i need these... (12 Replies)
Discussion started by: Nakul_sh
12 Replies
7. Shell Programming and Scripting
Hallo
This is the content of the file
3
4
5
6
7
8
9
10
11
12
And I want the following output
1
2
3
4
5
6
7 (4 Replies)
Discussion started by: thailand
4 Replies
8. Shell Programming and Scripting
Hi All
Been trying to get something working but having some trouble in unix bash or ksh scripting.
Im trying to increment once a condition has been met
Say I have a file that contains:
apple
orange
banana
grapes
dates
kiwi
What im after is once a counter has reached every second... (3 Replies)
Discussion started by: chandika_diran
3 Replies
9. UNIX for Advanced & Expert Users
Two questions:
1) Is there a way to create a new column (i.e. ID) to an existing file containing data and the new column ID populate as an auto incrementing number?
for example:
(Current file has headers and is PIPE delimited.)
**data looks like this**
"COL1"|"COL2"|"COL3"|"COL4"|"COL5"... (4 Replies)
Discussion started by: timlisa20
4 Replies
10. UNIX for Beginners Questions & Answers
Hi,
This is my first post here.
I am using cygwin on Windows 7.
I am starting with a data file with filename "name_1.ext", like "20180831_snapgenotypes_1.csv".
The "_1" before ".ext" is a version number. Integers (0-99) are sufficient. They don't have to be like "1.0.0".
The filename may... (2 Replies)
Discussion started by: minimalist
2 Replies
LEARN ABOUT MOJAVE
mime.convs
mime.convs(5) Apple Inc. mime.convs(5)
NAME
mime.convs - mime type conversion file for cups
DESCRIPTION
The mime.convs file defines the filters that are available for converting files from one format to another. The standard filters support
text, PDF, PostScript, and many types of image files.
Additional filters are specified in files with the extension .convs in the CUPS configuration directory.
Each line in the mime.convs file is a comment, blank, or filter line. Comment lines start with the # character. Filter lines specify the
source and destination MIME types along with a relative cost associated with the filter and the filter to run:
source/type destination/type cost filter
The source/type field specifies the source MIME media type that is consumed by the filter.
The destination/type field specifies the destination MIME media type that is produced by the filter.
The cost field specifies the relative cost for running the filter. A value of 100 means that the filter uses a large amount of resources
while a value of 0 means that the filter uses very few resources.
The filter field specifies the filter program filename. Filenames are relative to the CUPS filter directory.
FILES
/etc/cups - Typical CUPS configuration directory.
/usr/lib/cups/filter - Typical CUPS filter directory.
/usr/libexec/cups/filter - CUPS filter directory on macOS.
EXAMPLES
Define a filter that converts PostScript documents to CUPS Raster format:
application/vnd.cups-postscript application/vnd.cups-raster 50 pstoraster
SEE ALSO
cups-files.conf(5), cupsd.conf(5), cupsd(8), cupsfilter(8), mime.types(5), CUPS Online Help (http://localhost:631/help)
COPYRIGHT
Copyright (C) 2007-2017 by Apple Inc.
26 August 2015 CUPS mime.convs(5)