I need help in what to do with a bash script? I'm trying to run a command to output the data from a table and then insert it into commands. Looping for each row of data.
For example the output data from a table:
10 John house
20 Jane apt
30 Joe townhomeThen I need to take the output... (1 Reply)
Hi folks,
Please advise which command/command line shall I run;
1) to display the command and its output on console
2) simultaneous to save the command and its output on a file
I tried tee command as follows;
$ ps aux | grep mysql | tee /path/to/output.txt
It displayed the... (7 Replies)
:wall:Hi
I am a beginner to unix
In a shell script i see the below code
# set admin email so that you can get email
ADMIN=someone@somewhere.com
host=`hostname`
date=`date`
# set alert level 70% is default
ALERT=70
df -h | grep / | grep -v '^Filesystem|tmpfs|cdrom' | awk '{ print... (1 Reply)
Hi,
I am trying to get a loop counter i and set its value as the ouput of a command:
i=`printmo TEST1 | grep -i TEST2 | wc -l`
Then I want to use i as counter to run a loop i number of times.
Like if i gets a value of 5 I'll have to run loop 5 times.
But will i here be a numeric... (3 Replies)
I would like to redirect output of command line in for loop as $line.
Output should be processed as line but instead it throw whole output.
Could somebody help me on how to redirect output of command line and process it line by line without sending output to any file.
below is my code ... (1 Reply)
I ran the following command.
cat abc.c > abc.c
I got message the following message from command cat:
cat: abc.c : input file is same as the output file
How the command came to know of the destination file name as the command is sending output to standard file. (3 Replies)
I am using UNIX to create a script on our system. I have setup my commands to append their output to an outage file. However, some of the commands return no output and so I would like something to take their place.
What I need
The following command is placed at the prompt:
TICLI... (4 Replies)
In the else of the main if condition .
else
set lnk = $(readlink -f <path> | cut -d '/' -f7)
echo "$lnk"
if ]
When I run the above on command line , the execution seems to be fine and I get the desired output. But when I try to assign it to a variable within a loop... (12 Replies)
My issue :
I am getting only last command output data in ouput file. Though comamnd "print(output)" displays data for all 3rd column values but the data saved in file is not what required it hs to be the same which is being printed by command"print(output)".
Could you please help me to fix this,... (0 Replies)
Discussion started by: as7951
0 Replies
LEARN ABOUT CENTOS
gedit
GEDIT(1) General Commands Manual GEDIT(1)NAME
gedit - text editor for the GNOME Desktop
SYNOPSIS
gedit [OPTION...] [FILE...] [+LINE[:COLUMN]]
gedit [OPTION...] -
DESCRIPTION
gedit is the official text editor of the GNOME desktop environment.
While aiming at simplicity and ease of use, gedit is a powerful general purpose text editor. It can be used to create and edit all kinds
of text files.
gedit features a flexible plugin system which can be used to dynamically add new advanced features to gedit itself.
OPTIONS --encoding
Set the character encoding to be used for opening the files listed on the command line.
-g, --geometry=GEOMETRY
Set the X geometry window size (WIDTHxHEIGHT+X+Y).
--list-encodings
Display list of possible values for the encoding option and exit.
--new-window
Create a new toplevel window in an existing instance of gedit.
--new-document
Create a new document in an existing instance of gedit.
-s, --standalone
Run gedit in standalone mode.
-w, --wait
Open files and block the gedit process.
--help Prints the command line options.
--version
Output version information and exit.
FILE Specifies the file to open when gedit starts. If this is not specified, gedit will load a blank file with an "Unsaved Document"
label. Multiple files can be loaded if they are separated by spaces. gedit also supports handling of remote files. For example, you
can pass the location of a webpage to gedit , like "http://www.gnome.org", or load a file from a FTP server, like
"ftp://ftp.gnome.org/robots.txt".
- gedit will read from stdin
+LINE For the first file, go to the line specified by LINE (do not insert a space between the "+" sign and the number). If LINE is miss-
ing, go to the last line.
COLUMN For the first file, go to the column specified by COLUMN. If COLUMN is missing, go to the first column.
BUGS
If you find a bug, please report it at http://bugzilla.gnome.org/enter_bug.cgi?product=gedit.
AUTHORS
Paolo Maggi (paolo@gnome.org)
Paolo Borelli (pborelli@katamail.com)
Steve Frecinaux (code@istique.net)
Jesse van den Kieboom (jessevdk@gnome.org)
Ignacio Casal Quinteiro <icq@gnome.org>
James Willcox (jwillcox@gnome.org)
Federico Mena Quintero (federico@novell.com)
Chema Celorio
17 May 2010 GEDIT(1)