10 More Discussions You Might Find Interesting
1. Red Hat
I have a file which is an extract of jil codes of all autosys jobs in our server.
Sample jil code:
condition: notrunning(appDev#box#ProductLoad)... (1 Reply)
Discussion started by: raghavendra
2. Shell Programming and Scripting
I have a file name like FIRST_DPF_DAILY_CUST_0826152322.txt
i need to extract the string after the third "_" underscore upto timestamp ends i.e CUST_0826152322
can anyone help me with the code
Srikanth Sagi (3 Replies)
Discussion started by: srikanth_sagi
3. Shell Programming and Scripting
Hi i am very new to shell scripting.
I have got stuck on a portion on my script.
I have 30 logfiles inside /home/test directory.
I need to find the string "@ended today" in all the 30 logfiles and print the name of the files which did not have this string.
i need to this by... (3 Replies)
Discussion started by: Soma Das
4. Shell Programming and Scripting
Hi everyone !
suppose i'm searching for a specific string in a file so it is very easy, i use the following command
grep 'keyword' file_name
but how to search a word which is repeated maximum number of times in a file, for example in the following text i have to search a word which is... (12 Replies)
Discussion started by: ourned
5. Shell Programming and Scripting
I have some data in the form of
in the above data i need to write a script so thet it will append "|||" to the third occurnace in the string ..... the outout should look like
Firestar. (6 Replies)
Discussion started by: firestar
6. Shell Programming and Scripting
I want to search for each file that contains a particular string.
e.g find . -print | xargs grep -i string_name
Now my issue is the files that I search in are gzipped.
Will I be able to find the string, using the above commands, even if the files are gzipped?
Please... (2 Replies)
Discussion started by: Phuti
7. UNIX for Dummies Questions & Answers
I need to search for a specific string in a file and if this string exist I need to replace it with something else. I am not sure how I could do this, using an if statement. (2 Replies)
Discussion started by: ROOZ
8. UNIX for Dummies Questions & Answers
I have a string variable
STR = "This is a test message"
I have a file abc.txt that I am searching for the occurence of the string STR ...
I am using the command in a script
cat abc.txt | grep $STR
It identifies each space as a seperator and prints word by word.
How to... (2 Replies)
Discussion started by: mattrix
9. Shell Programming and Scripting
Need to extract a string from one file and search the same in other files.
I have file1 of hundred lines with no delimiters not even space.
I have 3 more files.
I should get 1 to 10 characters say substring from each line of file1 and search that string in rest of the files and get... (1 Reply)
Discussion started by: mohancrr
10. UNIX for Dummies Questions & Answers
I have a directory with a couple of thousand logs in it. The log files are created every 5 minutes. I want to search these logs grep for a specific sting and more importantly print the name of the files where that sting was found.
all logs begin om20020927
what I have been... (4 Replies)
Discussion started by: warrend
download(1) User Commands download(1)
download - host resident PostScript font downloader
download [-f] [-p printer] [-m name] [-H directory] [file...]
download prepends host resident fonts to files and writes the results on the standard output. If no files are specified, or if - is one of
the input files, the standard input is read. download assumes the input files make up a single PostScript job and that requested fonts can
be included at the start of each input file.
Requested fonts are named in a comment (marked with %%DocumentFonts:) in the input files. Available fonts are the ones listed in the map
table selected using the -m option.
The map table consists of fontname-file pairs. The fontname is the full name of the PostScript font, exactly as it would appear in a %%Doc-
umentFonts: comment. The file is the pathname of the host resident font. A file that begins with a / is used as is. Otherwise the pathname
is relative to the host font directory. Comments are introduced by % (as in PostScript) and extend to the end of the line.
The only candidates for downloading are fonts listed in the map table that point download to readable files. A font is downloaded once,
at most. Requests for unlisted fonts or inaccessible files are ignored. All requests are ignored if the map table can not be read.
-f Force a complete scan of each input file. In the absence of an explicit comment pointing download to the end of the file,
the default scan stops immediately after the PostScript header comments.
-p printer Check the list of printer-resident fonts in /etc/lp/printers/printer/residentfonts before downloading.
-m name Use name as the font map table. A name that begins with / is the full pathname of the map table and is used as is. Other-
wise name is appended to the pathname of the host font directory.
-H directory Use dir as the host font directory. The default is /usr/lib/lp/postscript.
Example 1: Examples of the download command.
The following map table could be used to control the downloading of the Bookman font family:
% The first string is the full PostScript font name. The second string
% is the file name - relative to the host font directory unless it begins
% with a /.
Using the file myprinter/map (in the default host font directory) as the map table, you could download fonts by issuing the following
example% download -m myprinter/map file
The following exit values are returned:
0 Successful completion.
non-zero An error occurred.
See attributes(5) for descriptions of the following attributes:
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|Availability |SUNWpsf |
dpost(1), postdaisy(1), postdmd(1), postio(1), postmd(1), postprint(1), posttek(1), attributes(5)
The download program should be part of a more general program.
download does not look for %%PageFonts: comments and there is no way to force multiple downloads of a particular font.
Using full pathnames in either map tables or the names of map tables is not recommended.
SunOS 5.10 9 Sep 1996 download(1)