I am getting the coutput like this as show below in one single line, where as the command is executed is several lines and the output should also be requied in several lines, not in one single line.
Anyone any idea?
p4 opened -a | grep *locked* | awk '{ printf $8 }' >/tmp/aa
$ cat... (1 Reply)
Hi all,
For a intro UNIX course I'm taking, I need to use the command "tr" to display a file on standard output without any newlines (all on one line).
I assume I would start with "cat filename | tr" but don't know what to put after tr.
Any ideas would be lovely!
Thanks. (3 Replies)
I've got a log file from automatic diagnostic runs. The log file is appended to each time an automatic log is run.
I'd like to just pull certain lines from each run in the log file, and concatenate them into 1 comma delimited line (for export into excel or an html table).
Each diagnostic run... (3 Replies)
Hi all,
I was wondering if someone could tell me a way to extract from a file lines where you search for a phrase and then also extract the next X lines after it (i.e. take a block of text from the file)?
Example
{
id=123
time=10:00:00
date=12/12/09
{
........
... (6 Replies)
Hello UNIX experts,
I have 124 text files in a directory. I want to extract the 45678th line of all the files sequentialy by file names. The extracted lines should be printed in the output file on seperate lines.
e.g. The input Files are one.txt, two.txt, three.txt, four.txt
The cat of four... (1 Reply)
Greetings experts. Searched the forums (perhaps not hard enough?) - Am searching for a method to capture all output from a log file following the nth occurrence of a known string.
Background:
Using bash, I want to monitor my Oracle DB alert log file. The script will count the total # of... (2 Replies)
Is there an awk script that can easily perform the following operation?
I have a data file that is in the format of
1944-12,5.6
1945-01,9.8
1945-02,6.7
1945-03,9.3
1945-04,5.9
1945-05,0.7
1945-06,0.0
1945-07,0.0
1945-08,0.0
1945-09,0.0
1945-10,0.2
1945-11,10.5
1945-12,22.3... (3 Replies)
Hi,
If I have a file of something like
@hg19_gold_AL122127.6-131160
GCTTCATCATGCATGGATAGGCTGGCGCCTTTCCTGAGGCCATATGCCGATGGATATG
@hg19_gold_AL122127.6-131159
CTTTAATATTTCCGCCACCATCCTGAGTGAATCCCAGCAAGGACAGTCTTTGGGGATT
@hg19_gold_AL122127.6-131158... (4 Replies)
Dear All,
I have a shell script which output like some thing below
1.2.3.4
1.2.3.5
1.2.3.6
------
Start of CSV
-------
id ,number ,name ,location
1,101,asp,xyz
2,102,dsp,ert
Now i need to redirect this output to csv file but from particular line number. i mean, first i need to skip... (5 Replies)
XmTextFieldCut(3X)XmTextFieldCut(3X)NAME
XmTextFieldCut - A TextField function that copies the primary selection to the clipboard and deletes the selected text
SYNOPSIS
#include <Xm/TextF.h>
Boolean XmTextFieldCut (widget, time)
Widget widget;
Time time;
DESCRIPTION
XmTextFieldCut copies the primary selected text to the clipboard and then deletes the primary selected text. This routine calls the wid-
get's XmNvalueChangedCallback and verification callbacks, either XmNmodifyVerifyCallback or XmNmodifyVerifyCallbackWcs, or both. If both
verification callback lists are registered, the procedures of the XmNmodifyVerifyCallback list are executed first and the resulting data is
passed to the XmNmodifyVerifyCallbackWcs callbacks. Specifies the TextField widget ID. Specifies the time at which the selection value is
to be modified.
This should be the time of the event which triggered this request.
For a complete definition of TextField and its associated resources, see XmTextField(3X).
RETURN VALUE
This function returns False if the primary selection is NULL, if the widget doesn't own the primary selection, or if the function is unable
to gain ownership of the clipboard selection. Otherwise, it returns True.
SEE ALSO XmTextField(3X)XmTextFieldCut(3X)