using sed to replace a specific string on a specific line number using variables
this is where i am at
grep -v WARNING output | grep -v spawn | grep -v Passphrase | grep -v Authentication | grep -v '/sbin/tfadmin netguard -C'| grep -v 'NETWORK>' >> output.clean
grep -n Destination... (2 Replies)
I'm trying to update a text file via sed/awk, after a lot of searching I still can't find a code snippet that I can get to work.
Brief overview:
I have user input a line to a variable, I then find a specific value in this line 10th field in this case. After asking for new input and doing some... (14 Replies)
I'm still beginner and maybe someone can help me.
I have this input:
the great warrior a, b, c
and what i want to know is, with awk, how can i detect the string with 'warrior' string on it and print the a, b, and c seperately, become like this :
Warrior Type
a
b
c
Im still very... (3 Replies)
here is what i want to achieve... consider a file contains below contents. the file size is large about 60mb
cat dump.sql
INSERT INTO `table1` (`id`, `action`, `date`, `descrip`, `lastModified`) VALUES (1,'Change','2011-05-05 00:00:00','Account Updated','2012-02-10... (10 Replies)
Hi,
I want to replace specific pattern "-2.0000 2" by "1.0000 3" on a particular line (line #5) in a file 1.dat. I have about 50 more files similar to 1.dat in which I want to do this correction.
Can you please suggest how can I make change only at this particular line of a file... (6 Replies)
my requirement is,
consider a file output
cat output
blah sdjfhjkd jsdfhjksdh
sdfs 23423 sdfsdf sdf"sdfsdf"sdfsdf"""""dsf
hellow there
this doesnt look good
et cetc etc
etcetera
i want to replace a line of line number 4 ("this doesnt look good") with some other line
... (3 Replies)
Hi experts,
My file looks something like this.
abcXX4,7,234
abc,defg,45XX23,74,123
The number of commas left of the XX can vary. The question is how can I replace all the commas left of the 'XX' with an underscore?
abcXX4,7,234
abc_defg_45XX23,74,123
Thanks! (5 Replies)
Hello All
I'm trying to change one string from a file contening this patern:
xxxx-xxxx
4 numbers - end 4 other numbers
This is a sample of the file:
LDR 00679 am a2200205 4500
=001 3617
=008 030219s2000\\\\xxx|||||\||||\00|\0\spa\d
=020 \\$a0211-1942
=041 \\$aCastellà
=093 ... (5 Replies)
Discussion started by: ldiaz2106
5 Replies
LEARN ABOUT DEBIAN
redshift
REDSHIFT(5)REDSHIFT.CONF(5)REDSHIFT(5)NAME
redshift.conf - configuration file for redshift and gtk-redshift
DESCRIPTION
A configuration file with the name `redshift.conf' can optionally be placed in `~/.config/'. The file has standard INI format. General pro-
gram options are placed under the `redshift' header, while options for location providers and adjustment methods are placed under a header
with the name of that provider or method. General options are:
temp-day = integer
Daytime temperature
temp-night = integer
Night temperature
transition = 0 or 1
Disable or enable transitions
brightness-day = 0.1-1.0
Screen brightness at daytime
brightness-night = 0.1-1.0
Screen brightness at night
gamma = R:G:B
Gamma adjustment to apply
adjustment-method = name
Select adjustment method. Options for the adjustment method can be given under the configuration file heading of the same name.
location-provider = name
Select location provider. Options for the location provider can be given under the configuration file heading of the same name.
Options for location providers and adjustment methods can be found in the help output of the providers and methods.
EXAMPLE
Example for Copenhagen, Denmark:
$ redshift -l 55.7:12.6 -t 5700:3600 -g 0.8 -m vidmode -v
An example configuration file with the same effect as the above command line:
[redshift]
temp-day=5700
temp-night=3600
gamma=0.8
adjustment-method=vidmode
location-provider=manual
AUTHOR
redshift was written by Martin Koelewijn and Jon Lund Steffensen.
This manual page was created by Franziska Lichtblau <rhalina@old-forest.org> for the Debian project (and may be used by others).
redshift 1.7 June 2012 REDSHIFT(5)