There's probably a few ways to do this and I'm pretty sure this is not the easiest-
But run w/ this-
You can put in flag=0, hit enter and it will return flag=1. And vice-versa
Or run flag=0 in flag.txt as such-
Good luck.
---------- Post updated at 12:47 AM ---------- Previous update was at 12:33 AM ----------
Oh just wait!
Here's a one liner and neat and clean-
w00t.
Last edited by Franklin52; 02-03-2011 at 03:35 AM..
Reason: Please use code tags, thank you
This User Gave Thanks to fiendracer For This Post:
Hi all,
I've got the problem which I can't resolve with my knowledge :)
For xterm terminal we have resource class XTerm*backarrowKey. If we set it to true, backspace code (ASCII 0x8) will be sent to program. We can get it using e.g. getc() function. If it is disabled getc() returns DEL(0x7F). ... (0 Replies)
Hi all,
I have been using Ubuntu for 2 years now, and a few days ago I bought a Macbook. This is my first time using a Mac, so I have spent the better of two days learning the user interface, and configuring my Macbook. One thing I noticed is that there is no easy way to turn on and off hidden... (0 Replies)
Hi,
I need help to toggle through dates on a weekly basis to be fed into a script as inputs. The format should be: yyyy/mm/dd (start) yyyy/mm/dd (end), where end date is 7 days increments.
The date (start) would be input as an ARGV and would continue until current date.
I can check... (2 Replies)
hi all
is possible to pass shell (bash) variable to sed like it is in awk?
example:
awk script is storred in awk.awk file and I am passing variable called var to this file.
$ cat awk.awk
{if ($5==var) print $0}
so it works when i issue
$ bash_var=24
$ ls -l | awk -v... (1 Reply)
I remember there is a sed switch i can use to edit and save the file at the same time, but i cannot recall it at all.
so instead of
-> sed 's/A/B/' file > file-tmp
-> mv file-tmp file
what can i do to just let sed edit and save the "file" (4 Replies)
Hi Guys,
i'm exploring sed and failed to understand the following. Can anyone with more knowledge of this explain this better.
I have to read lines 4 to 6 in a file so i used the following command :
sed '4,6 p' file
but the above prints all lines instead! . when i use the -n... (3 Replies)
I have checked the man page ,which says :
The -H (HOME) option sets the HOME environment variable to the homedir of
the target user (root by default) as specified in passwd(5). By default,
sudo does not modify HOME
But I have tried below command:
#... (1 Reply)
I have an input file that looks something like this:
....
key1: ABC
....
key2: DEF
....
key1: GGG
....
key2: HHH
....
The row of dots represents any number of lines that don't contain the strings "key1:" or "key2:" The strings key1: and key2: will always appear alternately as in the... (8 Replies)
Discussion started by: pmennen
8 Replies
LEARN ABOUT DEBIAN
rabbit-command
RABBIT-COMMAND(1) rabbit-command RABBIT-COMMAND(1)NAME
rabbit-command - commandline utility for Rabbit
SYNOPSIS
rabbit-command [options]
DESCRIPTION --rabbit-uri=URI
Specify Rabbit's dRuby URI as [URI]. (druby://localhost:10101)
--druby-uri=URI
Deprecated. Use --rabbit-uri instead. Specify Rabbit's dRuby URI as [URI]. (druby://localhost:10101)
Move commands
--previous
Move to previous
--next Move to next
--previous-slide
Move to the previous slide
--next-slide
Move to the next slide
--first-slide
Move to the first slide
--last-slide
Move to the last slide
--jump-to=N
Move to the Nth slide
Get commands
--source
Show source
--current-slide-rd
Show the current slide source as RD
Control commands
--toggle-fullscreen
Toggle fullscreen
--toggle-index-mode
Toggle index mode
--toggle-whiteout
Toggle whiteout
--toggle-blackout
Toggle blackout
--quit Quit
Common options
--locale-dir=DIR
Specify locale dir as [DIR]. (auto)
--logger-type=TYPE
Specify logger type as [TYPE]. Select from [stderr, gui]. (STDERR)
--log-level=LEVEL
Specify log level as [LEVEL]. Select from [debug, info, warning, error, fatal, unknown]. (info)
--help Show this message.
--version
Show version.
rabbit-command 1.0.7 June 2012 RABBIT-COMMAND(1)