10-13-2010
Yes, but what are you attempting by putting an entire file in a variable? There's probably better and safer ways to do what you want. As you've already discovered, it can have unintended side-effects.
10 More Discussions You Might Find Interesting
1. AIX
Hi everybody
I looking the put the result of a commane to a Variable
i explain
here is my command:
FJTS_UK:root:common@ukaix3:/> cat sortie | grep "^"| awk '{ print $1}'
15
FJTS_UK:root:common@ukaix3:/>
sortie is a texte file
I want to put the result of commande in a... (1 Reply)
Discussion started by: kykyboss
1 Replies
2. Shell Programming and Scripting
How to put a line of strings (with some white spaces in between) from a file into variables?
I have tried the following codes. However, the content is cut by space (not by line)
for i in `cat ${source_file}`
do
echo $i
done
Please comment. Thanks. (2 Replies)
Discussion started by: Rock
2 Replies
3. Shell Programming and Scripting
I have a file that contains the following lines
the brown quick fox
jumped over
the white laze dog
0123456789
I wanted to put the contents of this file into a variable so I used this code:
VAR_LIST=`cat $2`
where $2 is the file name passed as an argument to the script
If I... (3 Replies)
Discussion started by: Nomaad
3 Replies
4. Shell Programming and Scripting
Hello!
I'm having problems trying to extract the contents of a variable and placing it into a text file. Grateful for any help.
Been trying something along the lines of:
$variable > file.txt
or
`cat < $variable` > file.txt
As you can see I'm a newbie to this :D (2 Replies)
Discussion started by: lloowen
2 Replies
5. UNIX for Dummies Questions & Answers
Hi all,
I have a problem here. I have a file and let we take the content of the file is just '32' (only a numeric value in that file). Now I need to assign this numeric value ( value in that file) to a variable. Is that possible? If so, can you plz advice me on this?
Thanks in... (4 Replies)
Discussion started by: iamgeethuj
4 Replies
6. Shell Programming and Scripting
I may not being doing this description justice, but I'll give it a try.
I created a mailx script; there will be several messages using the same script where the only difference is the content. So I figured I'd make the content of the message a variable retrieved from a separate file. I have five... (5 Replies)
Discussion started by: royarellano
5 Replies
7. Shell Programming and Scripting
Hi i have need of read a file value with cat command and remove first 2character for example cat /sys/class/rtc/day
0x12
Remove char
12
And put this value in a variable
is possible with a script thanks for help (6 Replies)
Discussion started by: enaud
6 Replies
8. UNIX for Dummies Questions & Answers
hi i just cant figure out how can i do this ls -lt > log.txt using $PWD
what i mean is how can i get the ls command content into a file using $PWD variable? :confused: (4 Replies)
Discussion started by: chinababy
4 Replies
9. Shell Programming and Scripting
Hello,:p
I made a script which do a backup on remote servers with a rsync command. I have a config.cfg with the IPs and the paths where it will copy the directory. The problem is that it doesn't match the paths, So, here my script and its output with the debug :
#!/bin/bash
# PATHS... (7 Replies)
Discussion started by: Arnaudh78
7 Replies
10. Shell Programming and Scripting
i am having some bash script which must use first sentence of the file. For example i have file which content is:
test 213
So I must use word test into my bash script, and put it into variable.
I am using a one variable named value
value=$(</home/rusher/test.txt)
so instead using test.txt... (1 Reply)
Discussion started by: tomislav91
1 Replies
TOMBOY(1) GNOME User's Manuals TOMBOY(1)
NAME
tomboy - A simple note-taking application for Gnome
SYNOPSIS
tomboy [OPTION] ...
DESCRIPTION
This manual page documents briefly the tomboy command.
Tomboy is a desktop note-taking application for Linux and Unix. Simple and easy to use, but with potential to help you organize the ideas
and information you deal with every day.
Tomboy's usefulness lies in the ability to relate notes and ideas together, using a WikiWiki-like linking system.
When run without any options, the Tomboy note menu appears in the Gnome Panel's notification tray area. Selecting a note from the menu
displays the note's spatial window.
Changes to notes are saved automatically. Links to URLs, files, and other notes are detected as you type. Rich editing such as highlight-
ing, bold, italics, undo/redo, and variable font sizes are supported.
Global keybindings exist to allow fast access to Tomboy notes and dialogs. These keybindings are set in GConf (see below) and may be acti-
vated from any application.
OPTIONS
The program follows the usual GNU command line syntax, with options starting with two dashes (`--'). A summary of options are included
below.
--new-note
Create and display a new note.
--new-note TITLE
Create and display a new note with the title given.
--open-note TITLE/URL
Display the existing note matching TITLE or URL.
--start-here
Display the "Start Here" note.
--highlight-search TEXT
Search and highlight TEXT in the opened note.
--help
Show summary of options.
--version
Show version of program.
GCONF SETTINGS
Tomboy has several preference settings stored in GConf. Changes to Settings are applied instantly to any running Tomboy instance. A sum-
mary of the GConf settings and their purpose are described below.
/apps/tomboy/global_keybindings/open_start_here
Global X keybinding for displaying the "Start Here" note. The default keybinding is <Alt>F11.
/apps/tomboy/global_keybindings/show_note_menu
Global X keybinding for displaying the Tomboy applet's note menu. The default keybinding is <Alt>F12.
/apps/tomboy/global_keybindings/create_new_note
Global X keybinding for creating and displaying a new note.
/apps/tomboy/global_keybindings/open_recent_changes
Global X keybinding for opening the recent changes dialog.
/apps/tomboy/global_keybindings/open_search
Global X keybinding for opening the note search dialog.
SEE ALSO
http://www.beatniksoftware.com/tomboy/
BUGS
Please send bug reports to the Tomboy mailing list (tomboy-list@beatniksoftware.com) or enter them in the Gnome Bugzilla bug tracker
(http://bugzilla.gnome.org/enter_bug.cgi?product=Tomboy).
AUTHOR
Alex Graveley <alex@beatniksoftware.com>
This manual page was originally written by Luca Capello <luca@pca.it>.
gnome October 14, 2004 TOMBOY(1)