Sponsored Content
Top Forums Shell Programming and Scripting How to use a loop for multiple files in a folder to run awk command? Post 302940853 by sajmar on Thursday 9th of April 2015 01:02:14 PM
Old 04-09-2015
Thank you so much Rudic. this command works well.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to run awk command having multiple lines

Hi, Can u see the code below. set xyz = `cat testt1.txt | awk '/-----/{\ print $1 }\ ' | tail -1` I need to execute it in c shell . What is wrong with the above command. When i write everything on a single line then it is working. Can anybody help me . (0 Replies)
Discussion started by: nani_g
0 Replies

2. UNIX for Dummies Questions & Answers

Foreach loop to run a perl script on multiple files

Hi, I have thousands of files in a directory that have the following 2 formats: 289620178.aln 289620179.aln 289620180.aln 289620183.aln 289620184.aln 289620185.aln 289620186.aln 289620187.aln 289620188.aln 289620189.aln 289620190.aln 289620192.aln.... and: alnCDS_1.fasta (1 Reply)
Discussion started by: greptastic
1 Replies

3. Shell Programming and Scripting

How to run multiple awk files

I'm trying some thing like this. But not working It worked for bash files Now I want some thing like that along with multiple input files by redirecting their outputs as inputs of next command like below Could you guyz p0lz help me on this #!/usr/bin/awk -f BEGIN { } script1a.awk... (2 Replies)
Discussion started by: repinementer
2 Replies

4. Shell Programming and Scripting

using mv command for moving multiple files in a folder

Hi, I have a requirement where I need to move Bunch of folders containing multiple files to another archive location. i want to use mv command .I am thinking when we use mv command to move directory does it create directory 1st and then move all the files ? e.g source... (4 Replies)
Discussion started by: rkmbcbs
4 Replies

5. Shell Programming and Scripting

Receiving 'ambiguous redirect' when trying to run command against multiple files

I came across the command string on https://www.unix.com/shell-programming-scripting/141885-awk-removing-data-before-after-pattern.html which was what I was looking for to be able to remove data before a certain pattern. However, outputting the result to a file seems to work on an individual basis... (4 Replies)
Discussion started by: HLee1981
4 Replies

6. Shell Programming and Scripting

Loop for row-wise averaging of multiple files using awk

Hello all, I need to compute a row-wise average of files with a single column based on the pattern of the filenames. I really appreciate any help on this. it would just be very difficult to do them manually as the rows are mounting to 100,000 lines. the filenames are as below with convention as... (2 Replies)
Discussion started by: ida1215
2 Replies

7. Shell Programming and Scripting

Script for telnet and run one command kill it and run another command using while loop

( sleep 3 echo ${LOGIN} sleep 2 echo ${PSWD} sleep 2 while read line do echo "$line" PID=$? sleep 2 kill -9 $PID done < temp sleep 5 echo "exit" ) | telnet ${HOST} while is executing only command and exits. (5 Replies)
Discussion started by: sooda
5 Replies

8. Shell Programming and Scripting

FOR loop with multiple files as input and awk

Hi all , i want to pass multiple files as input to a for loop for i in file1 file2 file3 do some awk action < $i >> $i.out done but im getting error in that for loop is the way i use to pass files to awk using for correct and 2.we can directly pass multiple files to awk as... (7 Replies)
Discussion started by: zozoo
7 Replies

9. UNIX for Dummies Questions & Answers

Loop awk command on files in a folder

Hi, I'd like to loop an action over all files with given extension within a folder. The "main" action is: awk -F "\t" 'BEGIN{OFS="\t"}{if ($10=="S") print$0; }' input.txt > output.txt The input.txt should be every file in the folder with *.subVCF extension; and the output should be a file... (3 Replies)
Discussion started by: dovah
3 Replies

10. Programming

Run sed and awk in multiple files in adirectory

Dear linux users I was running around of 200 djob for a Blastp search in a cluster. All my input files were protein fasta file (prot.fna.1, prot.fna.2 ...prot.fna.200). The output of each individual slurm job is located in a corresponding file ending with *test (prot.fna.1.test,... (10 Replies)
Discussion started by: Dieunel
10 Replies
TTF2PK(1)						      General Commands Manual							 TTF2PK(1)

NAME
ttf2pk - convert a TrueType font into TeX's PK format SYNOPSIS
ttf2pk [-q] [-n] font-name resolution ttf2pk -t [-q] font-name ttf2pk --version | --help DESCRIPTION
This program converts a TrueType font into a PK file; the created font can then be used with TeX or LaTeX. CJKV (Chinese/Japanese/Korean/old Vietnamese) subfonts as created by ttf2tfm are also supported. ttf2pk always assumes 10pt as the design size for the written TeX font. PARAMETERS
-q This optional switch makes ttf2pk quiet. It suppresses any informational output except warning and error messages. -n Use only `.pk' as the extension instead of `.<resolution>pk'. -t Test for the existence of font-name. Returns 0 on success and prints out the corresponding line of a map file (default: ttfonts.map), provided the -q switch isn't set. font-name The TeX name of the font. ttf2pk looks this name up in a map file (see below) for further information how to process the font. resolution The resolution, given in dots per inch. Currently the horizontal resolution is equal to the vertical resolution. The design size is always assumed to be 10pt. --version Shows the current version of ttf2pk and the used file search library (e.g. kpathsea). --help Shows usage information. Environment variables for file searching are described in the manual page of ttf2tfm. THE CONFIGURATION FILE
ttf2pk uses a small configuration file called ttf2pk.cfg; in each line it contains a keyword with its value, separated by whitespace. Com- ment lines can start with any of the following characters: `*', `#', `;', and `%'. Leading whitespace is ignored. Currently, only one keyword, `map', is recognized in this file; it takes a map file name as a parameter. If no extension is given to the map file name, .map is appended. No whitespace is allowed in the map file name. The `map' keyword can be given more than once to specify multiple map files; if the map file name is prepended by a plus sign, it is added to the list of map files to be used. Example: map foo map +bar This makes ttf2pk to first read foo.map, then bar.map. If the configuration file is not found, ttf2pk tries to use ttfonts.map instead. MAP FILES
Parameters specified to ttf2tfm are preserved for ttf2pk in map files--ttf2tfm writes out to standard output, as the last line, a proper entry for a map file. As an example, a call to ttf2tfm arial -p T1.enc -s 0.25 -P 1 -E 0 arials will produce the following line: arials arial Slant=0.25 Pid=1 Eid=0 Encoding=T1.enc See ttf2tfm(1) and afm2tfm(1) of the dvips package for a detailed description of encoding files. Here a table listing the various ttf2tfm parameters and the corresponding entries in a map file: -s Slant -e Extend -p Encoding -f Fontindex -P Pid -E Eid -n PS=Yes -N PS=Only -R Replacement -x Rotate=Yes -y Y-Offset Single replacement glyph names given to ttf2tfm with `-r old-glyphname new-glyphname' are directly specified with `old-glyphname=new-glyph- name'. They will be ignored if in subfont mode or if no encoding file is given. One additional parameter in a map file is unique to ttf2pk: `Hinting', which can take the values `On' or `Off'. Some fonts (e.g. the CJK part of cyberbit.ttf) are rendered incorrectly if hinting is activated. Default is `On' (you can also use `Yes', `No', `1', and `0'). For a description of subfonts (i.e., entries of the form `<namestem>@<sfd-filename>@') please refer to ttf2tfm(1). The format of a map file is simple. Each line defines a font; first comes the TeX font name, then its TrueType font file name, followed by the parameters in any order. Case is significant (even for parameter names); the parameters are separated from its values by an equal sign, with whitespace possibly surrounding it. ttf2pk reads in all map files line by line in the order given in the configuration file, continuing until the TeX font specified on the command line is found, otherwise the programs exits with error code 2. Thus you can use any character invalid in a TeX font name to start a comment line. You can use `' as the final character of a line to indicate that the input is continued on the next line. The backslash and the following newline character will be removed. ttf2pk will abort if it can't find or read the TeX font metrics file of the given TeX font name. RETURN VALUE
If the call was successful, 0 will be returned. In case of error, the return value is 1. Finally, if the font can't be found in the map files, 2 is returned. This simplifies the inclusion of ttf2pk into scripts like mktexpk for automatic font generation. SEE ALSO
ttf2tfm(1), afm2tfm(1) AVAILABILITY
ttf2pk is part of the FreeType 1 package, a high quality TrueType rendering library. AUTHORS
Werner LEMBERG <wl@gnu.org> Frederic LOYER <loyer@ensta.fr> FreeType version 1.5 10-Jan-2002 TTF2PK(1)
All times are GMT -4. The time now is 12:00 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy