I have a shell script and want to assign a value to a variable. The value is the line exctrated from a file using the line number. The line number it is not fix, and could change any time.
I have tried sed, awk, head .. See my script
# Get randome line number from the file
#selectedline = `awk... (1 Reply)
Hello,
I am having trouble extracting a specific line from a file when the line number is known. My first attempt involved grep -n 'hi' (the word 'hi will always be there) to get the line number before the line that I actually want (line 4).
Extra Notes:
-I am working in a bash script.
-The... (7 Replies)
How to extract a line from a given file example,
code:
a=10;
b=20;
CI:something.
gdgjihndsjdbdvcdhsfh
dhaidjwauhdd
dhasjdasndsadsd
asdhuwyesdbsadhsad
adhasjdasytywnasndahhahdjash
/code
I want to extract "CI:something.", and something may be anything, it may be x or y or z or anything.... (6 Replies)
hi dudes,
I have a text file in the below format
1 s sanity /u02
2 r script1 /u02
3 s sanity /u02
Please tell me a script to read this file line by line, I wrote the below script , but it is printing only 1st line not printing rest... (7 Replies)
FOLKS ,
i have a text file that is generated automatically of an another korn shell script, i want to bring in the fifth line of the text file in to my korn shell script and look for a particular word in the line . Can you all share some thoughts on this one.
thanks...
Venu (3 Replies)
I have a LOG file which looks like this
Import started at: Mon Jul 23 02:13:01 EDT 2012
Initialization completed in 2.146 seconds.
--------------------------------------------------------------------------------
--
Import summary for Import item: PolicyInformation... (8 Replies)
In the below perl code I am using tags within each line to extract certain information. The tags that are used are:
STB >0.8 is STRAND BIAS otherwise GOOD
FDP is the second number
GO towards the end of the line is read into an array and the value returned is outputed, in the first line that... (1 Reply)
Discussion started by: cmccabe
1 Replies
LEARN ABOUT DEBIAN
lorenz
Really Slick ScreenSavers(1) General Commands Manual Really Slick ScreenSavers(1)NAME
lorenz - Lorenz Attractor.
SYNOPSIS
lorenz [--root/-r] [--maxfps/-x number] [--vsync/-y number] [--dpms/-M number] [--num-points/-n number] [--num-satellites/-s number]
[--camera-speed/-c number] [--camera-angle/-a number] [--line-width/-l number] [--line-width-sat/-w number] [--line-cutoff/-o number]
DESCRIPTION
Lorenz Attractor - visualization of the Lorenz Attractor fractal - written by Soren Sonnenburg.
OPTIONS --root Draw on the root window.
--maxfps number
Set maximum frame rate.
--vsync number
Limit redraws to specified number of vertical refreshes. 0 - 100. Default: 1
--dpms number
Stop rendering new frames if the display is not on. 0 - 1. Default: 1
--lines number
Number of lines. 100 - 1000000. Default: 100000
--num-satellites number
Number of satellites. 0 - 50. Default: 25
--camera-speed number
Camera Speed. 0 - 100. Default: 30
--camera-angle number
Camera Angle. 5 - 179. Default: 45
--line-width number
Line width of Attractor. 1 - 100. Default: 2
--line-width-sat number
Line width of Satellites. 1 - 100. Default: 16
--line-cutoff number
Line Approximation Quality (Lower is better). 0 - 100. Default: 20
ENVIRONMENT
DISPLAY to get the default host and display number.
SEE ALSO X(1),
COPYRIGHT
Copyright (C) 2009 by Soren Sonnenburg.
Euphoria is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 (or any
later version).
Euphoria is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
AUTHOR
Lorenz Attractor written by Soren Sonnenburg. Contact sonne@debian.org or visit http://sonnenburgs.de/soeren .
X Version 11 Really Slick ScreenSavers(1)