Display message on screen and flat file at same time
Hi guys,
I have a script that call another, the other displays de message and I can print directly to the flat file, but in one command I am searchig that this message can be displayed in the screen and in the flat file in one command.
I am doing something like this:
and in example.txt there is the message, but on the screen I have nothing.
Thanks a lot,
Pipoca
Last edited by Scott; 08-05-2010 at 05:34 AM..
Reason: Added code tags
hi can some body please help me...i'm been sitting here trying to figure how to do this..but still don't understand. Like each type of *.src (if any) in the given directory will be displayed on the screen one page at a time....
can someone explain how to do this..plz (1 Reply)
Below is a part of the script that I wrote when checking whether a file exist in the Internal Disk or not. If a file doesn't exist, how do you get rid of the error message "file or directory does not exist" to show up on screen? Instead, I wanted only the warning message "FILE DOES NOT EXIST IN... (5 Replies)
Hi,
I am going to buy a new TV set, but I am not sure what to buy.. I would like to have a Flat Screen, around 42" (~106cm), but i am a bit confused... Reading the technical papers, plasma displays seems to better, but talking with friends and colleagues, they would prefer LCDs...
Plasma... (2 Replies)
Hello All,
I have a file that is formatted like this
1234556
1234567
1234588
1123888
1999999
1010101
1919191
1919191....
for a total of 26000 + lines
how do I get a script to read lets say 50 lines at a time
and display the output to the screen in column format around 5 or 6... (2 Replies)
Friends
I have to redirect STDERR messages both to screen and also capture the same in a file.
2 > &1 | tee file works but it also displays the non error messages to file, while i only need error messages.
Can anyone help?? (10 Replies)
hiii,
i have to write a shell script like this----
i have a huge log file name abc.log .i have to search for a pattern name "pattern",it may occur 1000 times in the log file,every time it finds the pattern it should display the 10 lines above the pattern.
I appericiate your help. (30 Replies)
Hi all,
How to:
Run a bash script, display on the screen and save all information in a file including error information.
For example:
I have a bash script called test.sh
now I want to run the test.sh and display the output on the screen and save the output including error info to a file.
... (1 Reply)
Hi All,
Would like to ask on how to refrain the message file not exists from display out.
if ; then
When it execute, the OS will throw the error file does not exists
ls: 0653-341 The file COL_*/*.CTL does not exist.
Thanks. (3 Replies)
Dear Gurus,
I'm in a strange situation, hence need some kind of advice or possible syntax to carry on.
let's say current time/date is 2013-12-18, 15:58:15
I got a file something like this, which keep getting updated with respect to time.
2013-12-18,... (4 Replies)
Hi Gurus,
I have some weird issue. when using
ls -l
the result shows different time format:
-rw-r--r-- 1 abc gourp1 3032605576 Jun 14 2013 abc
-rw-rw-r-- 1 abc gourp1 1689948832 Aug 10 06:22 abc
one display 2013 which is year; another one displays 06:22 which is time.
... (4 Replies)
Discussion started by: ken6503
4 Replies
LEARN ABOUT DEBIAN
screen-ir
SCREEN-IR(1) Axel Beckert SCREEN-IR(1)NAME
screen-ir -- Interactively Reattach to GNU Screen sessions
SYNOPSIS
screen-ir [additional screen options ...]
DESCRIPTION
screen-ir uses iSelect(1) to interactively reattach to running screen sessions.
Use the screen option -d or -D if you want to reattach to attached screen sessions.
Use the screen option -x if you want to attach to screen sessions without detaching them.
FILES
screen-ir sources ~/.screen-irrc if it exists. It recognizes two variables:
The contents of SCREEN_OPTIONS is given to screen(1) as command-line options. Default is -r. Use e.g. -rd if you always want to reattach to
already attached screen sessions.
The contents of ISELECT_OPTIONS is given to iselect(1) as command-line options. Default is empty. Use e.g. -f if you always want to see the
interactive selection, even if there's only one screen session running, i.e. you have no choice.
AUTHOR
Axel Beckert <abe@debian.org>
SEE ALSO screen(1), iselect(1)EN 2011-09-04 SCREEN-IR(1)