06-26-2008
Will this work for your project?
$ cat myfile
1
2
3
4
5
$ sed -n '3p' myfile
3
Last edited by eBay; 06-26-2008 at 07:38 PM..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
How do I filter only comments and still keep Line breaks at the end of the line!?
This is one of the common tasks we all do,, How can we do this in a right way..!?
I try to ignore empty lines and commented lines using following approach.
test.sh
# \040 --> SPACE character octal... (17 Replies)
Discussion started by: kchinnam
17 Replies
2. Shell Programming and Scripting
dear all
about my last question
in fileA.txt (all list line i want to find in fileB.txt)
is content of line number
fileA.txt
23
34
35
55
59
and fileB.txt is content like
24:asd|ekkk|001|001
123:bca|egsd|210|002
1231:cas|egds|322|231
...
in fileB.txt they have line number like... (5 Replies)
Discussion started by: zvtral
5 Replies
3. Shell Programming and Scripting
Say the input was as follows:
Brat 20 x 1000 32rf
Pour 15 p 1621 05pr
Dart 10 z 1111 22xx
My program prompts for an input, what I want is to use the input to locate a specific field. Like if I type in, "Pou" then it would return "Pour" and just "Pour"
I currently have this line but it is... (6 Replies)
Discussion started by: Bungkai
6 Replies
4. Shell Programming and Scripting
I have two files. L1 and L2. (each file, has one string per line without any spaces)
I would like to get those lines in L1 that are not present anywhere in L2.
No substring match, just exact line by line match but it can be anywhere in the file. (line 5 in L1 may be present in line 22 of L2,... (2 Replies)
Discussion started by: nick2011
2 Replies
5. Shell Programming and Scripting
Hi
My OS is solaris 64 bit 10, I have many files in a logs directory where we recive 40-50 logs every day. i have last 20 days file present in this directory. I want to move each day file to a particulaar directory whose name is appended with the date of file.
eg
Code:
1.txt file... (1 Reply)
Discussion started by: guddu_12
1 Replies
6. Shell Programming and Scripting
Hello ,
Below is the command
srvctl config database -d cmdbut -s boms10.world
Below is the output. Now in the command instead of cmdbut it will be a variable like $database which would be called in the script as below:
srvctl config database -d $database -s $service
Now,as shown in... (6 Replies)
Discussion started by: Vishal_dba
6 Replies
7. Shell Programming and Scripting
Hi
This is my first post and I'm just a beginner. So please be nice to me.
I have a couple of html files where a pattern beginning with "http://www.site.com" and ending with "/resource.dat" is present on every 241st line. How do I extract this to a new text file?
I have tried sed -n 241,241p... (13 Replies)
Discussion started by: dejavo
13 Replies
8. Shell Programming and Scripting
I have an xml file dumped from rrd file, that I want to "patch" so the xml file doesn't contain any blank hole in the resulting graph of the rrd file.
Here is the file.
<!-- 2015-10-12 14:00:00 WIB / 1444633200 --> <row><v> 4.0419731265e+07 </v><v> 4.5045912770e+06... (2 Replies)
Discussion started by: rk4k
2 Replies
9. Shell Programming and Scripting
hi.
I have a Fixed Length text file as input where the character positions 4-5(two character positions starting from 4th position) indicates the LOB indicator. The file structure is something like below:
10126Apple DrinkOmaha
10231Milkshake New Jersey
103 Billabong Illinois
... (6 Replies)
Discussion started by: kumarjt
6 Replies
10. Shell Programming and Scripting
I will appreciate if you help me here in this script in Solaris Enviroment.
Scenario:
i have 2 files :
1) /tmp/TRANSACTIONS_DAILY_20180730.txt:
201807300000000004
201807300000000005
201807300000000006
201807300000000007
201807300000000008
2)... (10 Replies)
Discussion started by: teokon90
10 Replies
rsvg(1) User Commands rsvg(1)
NAME
rsvg - convert SVG files into raster images
SYNOPSIS
rsvg [--dpi number] [--format png|jpeg] [--height integer] [--version] [--width integer] [--x-zoom number] [--y-zoom number] infile.svg
outfile.png|outfile.jpeg
DESCRIPTION
rsvg converts SVG images into PNG and JPEG raster images.
OPTIONS
The following options are supported:
--dpi number Set the resolution of the image in pixels per inch. The default value is 90dpi. You can also use -d to specify this option.
--format png | jSpecify the output format for the converted image. The default value is png. You can also use -f to specify this option.
--height integerSpecify the height of the converted image. The default value is the height of the original image. You can also use -h to
specify this option.
--version Display rsvg version information. You can also use -v to specify this option.
--width integer Specify the width of the converted image. The default value is the width of the original image. You can also use -w to
specify this option.
--x-zoom number X Zoom factor, as a percentage. The default value is 1.0. You can also use -x to specify this option.
--y-zoom number Y Zoom factor, as a percentage. The default value is 1.0. You can also use -y to specify this option.
OPERANDS
The following operands are supported:
infile.svg The name of the input SVG file.
outfile.png The name of the converted PNG file.
outfile.jpeg The name of the converted JPEG file.
EXAMPLES
Example 1: Converting an SVG Image to PNG
example% rsvg myfile.svg myfile.png
Example 2: Converting an SVG Image to JPEG at 300dpi Resolution
example% rsvg -f jpeg -d 300 myfile.svg myfile.jpg
EXIT STATUS
The following exit values are returned:
0 Application exited successfully
>0 Application exited with failure
FILES
The following files are used by this application:
/usr/bin/rsvg Executable to convert SVG files into raster images
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWgnome-base-libs |
+-----------------------------+-----------------------------+
|Interface stability |External |
+-----------------------------+-----------------------------+
SEE ALSO
http://librsvg.sourceforge.net/
http://www.w3.org/TR/SVG11/
NOTES
Original man page written by Dom Lachowicz (cinamod@hotmail.com), Alex Larsson (alex@redhat.com), and others.
Updated by Laszlo Peter, Sun Microsystems Inc., 2004.
SunOS 5.10 7 Sep 2004 rsvg(1)