Search Results

Search: Posts Made By: Arsenalman
12,655
Posted By Arsenalman
"#!/bin/ksh -f" What does the -f option do?
What does "-f" option do? This is at the start of a shell scripts to point to full path to the interpreter such as /bin/ksh

What does the -f option do?

#!/bin/ksh -f
4,483
Posted By Arsenalman
ghostdog74 for "while read -r a b c d" what does...
ghostdog74 for "while read -r a b c d" what does the -r option do? and what does "a b c d" represent, different input file? different line? different field?
19,111
Posted By Arsenalman
Finally hit the jack pot. again thank you for...
Finally hit the jack pot. again thank you for your contribution which help me move forward along to my destination:

{
if (sub(/DISCOVERY=ON/, "DISCOVERY=OFF"))
print $0
if ( $1 ~ /^#/ ) {
...
4,483
Posted By Arsenalman
Dr.House finally hit the jack pot. again thank...
Dr.House finally hit the jack pot. again thank you for your contribution which help me move forward along to my destination:

{
if (sub(/DISCOVERY=ON/, "DISCOVERY=OFF"))
print $0
if ( $1 ~ /^#/...
8,032
Posted By Arsenalman
Finally hit the jack pot. again thank you for...
Finally hit the jack pot. again thank you for your contribution which help me move forward along to my destination:

{
if (sub(/DISCOVERY=ON/, "DISCOVERY=OFF"))
print $0
if ( $1 ~ /^#/ ) {
...
59,170
Posted By Arsenalman
scottn, works like a charm, thank you very much....
scottn, works like a charm, thank you very much. That put the finishing touch to my awk script.

{
if (sub(/DISCOVERY=ON/, "DISCOVERY=OFF"))
print $0
if ( $1 ~ /^#/ ) {
print $0 }
if...
59,170
Posted By Arsenalman
awk statement to match all lines starting with "#"
Looking for awk statement that will match all lines starting with "# "

if ( $1 == \^"#" )

Input file:

# of the server. If you would like to set these, please take out the
# pound (#) sign...
19,111
Posted By Arsenalman
n1djs thank you for your valuable input, its help...
n1djs thank you for your valuable input, its help me get further today, seems its one thing after another hoping to hit jack pot soon. Will post when I am done. Again thanks
8,032
Posted By Arsenalman
Franklin52, sidorenko thank you both for your...
Franklin52, sidorenko thank you both for your valuable input, it has help me take further today, still no cigar. Will definitely post when I hit jack pot or getting close and need a little more...
8,032
Posted By Arsenalman
awk command to test if a string is a file
What awk command will test a string to determine if it is a valid file name?

With the following awk statement I isolate the lines from the inputfile that might contain a filename, then I attempt...
19,111
Posted By Arsenalman
Usa usa usa !
Usa usa usa !
19,111
Posted By Arsenalman
exactly what I was looking for "proper syntax is...
exactly what I was looking for "proper syntax is such sweet sorrow". Thank you and congrats on Switzerland qualifying for the 2010 world cpu today !!
19,111
Posted By Arsenalman
awk if statement matching all lines starting w/ a number
Does awk have a syntax for a range of numbers or is this the best way?

if ($1 >= 0 && $1 <= 9 )
4,483
Posted By Arsenalman
Dr House thank you, its getting me further. Was...
Dr House thank you, its getting me further. Was not familiar with the shell scripting syntax of the file and directory test. The sed string works just about perfect, however as it strips all numbers...
4,483
Posted By Arsenalman
Thanks Pludi for fixing my post and showing me...
Thanks Pludi for fixing my post and showing me the ropes.
4,483
Posted By Arsenalman
Sed or Awk or both to edit file
What is an efficient way to remove all lines from the input file which contain a file name?

inputfile:

=======================
# comment
# comment
# comment

5 8 10 /tmp

5 8 ...
Showing results 1 to 16 of 16

 
All times are GMT -4. The time now is 05:30 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy