Hello Friends,
[In bash] I am not able to solve something which looks silly..after spending some time around it, thought of positing it here.
I want to get $2, $3... into user. but I want to control the sequence by count.
I want to assign $2 user..then $3 to user..then $4 to user etc.
how can I substitute that with count
I know in vi you can do
:%s/replaceme/withthis/
but if i want to find all lines say without a # at the begining and I want to put it in how would that command be formatted? I can't figure it out for the life of me.
#comment
blah1
hey1
grrr1
#comment
#blah1
#hey1
#grrr1 (5 Replies)
Hi,
I have query terms like this:
a) apple bannana
b) apple bannana AND chickko
c) "milk shake" OR Graphes orange
whereever there is space substitue with AND operator.
I tried like this: (2 Replies)
Can someone please help me with this SHELL script?
I need to create a script that gets a positive number n as an argument. The script must calculate the factorial of its argument. In other words, it must calculate n!=1x2x3x...xn. Note that 0!=1.
Here is a start but I have no clue how to... (3 Replies)
My question is how would I substitute for ceratain number of occurences in a line? If this is my input
rjohns BFSTDBS01 Standard Silver NPRO30DINCR 2 Client
Is it possible to change the first 3 occurences of space " " to a comma? (7 Replies)
If ($argv == “-debug”) then
Echo “in loop”
Endif
But this is not working. If I modify this code and remove “-“, then it works.
Similarly I am getting problem using grep command also
Grep “-debug” Filename
Can someone please help me on how to resolve these... (1 Reply)
I usually use :
Code:
awk '{gsub(/xxx/,"yyy");print}'
to substitute xxx with yyy.
I have a problem substitute an expression like
Code:
x ' y
Because of the ( ' )
Any idea on how to get over this problem?
Thanks (2 Replies)
Hello,
Is there any method thorugh which script can take argument if pass otherwise if argument doesn't pass then it takes the argument from the configuration file
i.e I am workiing on a script which will run through crontab and the script will
chekout the code ,zip and copy to the... (3 Replies)
Hi there,
i am updating a file on UNIX and have many lines as per below :
listen:x:37:4:Network Admin:/usr/net/nls:
i would like to substitute from the :/usr to the end of the line.
so at the moment im using this :
:s/"\/$/ /g
but i get an error.can anyone help?
thank you (3 Replies)
Hi All,
I am running the script
VBoxManage list vms |sed 's/"//g' | cut -d " " -f1 > har1out.mytxt
result=`cat har1out.mytxt | grep $1'
echo $result
echo $1
{
if
then
echo pass
else
echo fail
fi (2 Replies)
Discussion started by: harsha85
2 Replies
LEARN ABOUT DEBIAN
freecell-solver-range-parallel-solve
HOOLA(6) Freecell Solver HOOLA(6)NAME
freecell-solver-range-parallel-solve - The Freecell Solver utility for solving a range of Microsoft Freecell/Freecell Pro Boards
SYNOPSIS
freecell-solver-range-parallel-solve start end print_step [--binary-output-to filename] [--total-iterations-limit limit] [fc-solve
Arguments...]
DESCRIPTION
freecell-solver-range-parallel-solve is a command line application that solves a range of Freecell deals of Microsoft Freecell and Freecell
Pro.
start is the first board to solve; end is the last (inclusive) and print_step is the division of board numbers in which to print a status
message.
Following this three mandatory parameters are several flags specific to the range solve. (refer to the OPTIONS section for more
information)
Afterwards one can give it a fc-solve command line that it will use to solve each board. Refer to the fc-solve(6) man page for information
about its options.
OPTIONS --total-iterations-limit sets the maximal number of iterations with which to try to solve each deal. After that, the program will give up
and report that the board was intractable.
--binary-output-to sets the filename into which to output the number of iterations it took to solve each board. This file can later be used
with statistical preset optimizers such as those found in the Freecell Solver version control repository.
SEE ALSO fc-solve(6)AUTHOR
Shlomi Fish, <http://www.shlomifish.org/> .
Freecell Solver 3.12.0 2012-06-22 HOOLA(6)