8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I have some tab delimited text data,
file: final_temp1
aname val
NAME;r'(1,) 3.28584
r'(2,)<tab>
NAME;r'(3,) 6.13003
NAME;r'(4,) 4.18037
r'(5,)<tab>
You can see that the data is incomplete in some cases. There is a trailing tab after the first column for each incomplete row. I... (2 Replies)
Discussion started by: LMHmedchem
2 Replies
2. Shell Programming and Scripting
Hi,
This question might seem bit confusing. Sorry for that.
I have tried to express myself as clear as possible.
I have a text file in following format:
abc_456_def,abc_457_def,123_458_def,abc_3_459_def,zbc_123_456_def
ybc_123_457_def,xbc_3_458def,ybc_124_457_def
I want to check the... (3 Replies)
Discussion started by: ctrld
3 Replies
3. UNIX for Dummies Questions & Answers
HI,
I have a long file which looks like
"1xxx_0_1" "1xxx" 500 5 "ABC*3-DEF*3-LL"
"2yyy_0_1" "2yyy" 600 10 "ABC*2-DEF*2-LL"
"3ddd_0_1" "3ddd" 150 52 "ABC*3-DEF*3-LL"
"1xxx_0_1" "1xxx" 500 5 "ABC*3-DEF*3-LL"
"2yyy_0_1" "2yyy" 600 10 "ABC*2-DEF*2-LL"
... (3 Replies)
Discussion started by: XXLMMN
3 Replies
4. UNIX for Advanced & Expert Users
I have a file against which I can grep a string for. I can also check for that string count using wc -l (or grep -c). I need to display the results of both in one output i.e. 'line containing string' and 'count' - what would be the most efficient way of managing this? Thanks in advance. (3 Replies)
Discussion started by: haider1
3 Replies
5. Shell Programming and Scripting
Hi
I'm looking for scripts to backup & restore Gnome Desktop and all settings in Gnome. (0 Replies)
Discussion started by: ccc
0 Replies
6. UNIX for Dummies Questions & Answers
Hi everyone.
I have a lot of programs i want to run on some data files, they need to be done sequentially. Often the output from one program is the input for the next.
e.g
$ progA data1 > data1.A
$ progB data1.A > data1.AB
$ progC data1.AB > data1.ABC
repeat on data2, 3, 4, 5, 6 etc
... (4 Replies)
Discussion started by: Jay-pea
4 Replies
7. Shell Programming and Scripting
OS=HP-UX ksh
The following works, except I want to include the <start> and <end> in the output.
awk -F '<start>' 'BEGIN{RS="<end>"; OFS="\n"; ORS=""} {print $2} somefile.log'
The following work in bash but not in ksh
sed -n '/^<start>/,/^<end>/{/LABEL$/!p}' somefile.log (4 Replies)
Discussion started by: Ikon
4 Replies
8. Shell Programming and Scripting
Hi,
I have 2 files with contents in them and I need to compare each item in each file.
File1:
item4
item5
File2:
item2
item3
item5
item6
The items names can be of different lengths.
If the items in the File1 are not in File2,
delete the missing item in File1.
The resulting... (12 Replies)
Discussion started by: ReV
12 Replies
gnome-screensaver-command(1) General Commands Manual gnome-screensaver-command(1)
NAME
gnome-screensaver-command - controls GNOME screensaver
SYNOPSIS
gnome-screensaver-command [OPTION...]
DESCRIPTION
gnome-screensaver-command is a tool for controlling an already running instance of gnome-screensaver.
OPTIONS
--exit Causes the screensaver to exit gracefully
-q, --query
Query the state of the screensaver
-t, --time
Query the length of time the screensaver has been active
-l, --lock
Tells the running screensaver process to lock the screen immediately
-a, --activate
Turn the screensaver on (blank the screen)
-d, --deactivate
If the screensaver is active then deactivate it (un-blank the screen)
-V, --version
Version of this application
AUTHORS
gnome-screensaver-command is written by William Jon McCann <mccann@jhu.edu>.
This manual page was written by Sven Arvidsson <sa@whiz.se>.
SEE ALSO
gnome-screensaver(1)
GNOME
2007-09-27 gnome-screensaver-command(1)