06-01-2009
Jim
Thanks for reply. Can you please let me know the syntax, I forgot to mention I am not a Unix guy.
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Say I do a date command and get the time from 15 minutes ago.
I have a text file with the date printed out every minute or so and I want to cut the file at the date stamp given to me by the 15 minute ago time stamp.
Is there an easy way to do this?
Example:
date +%M gives me 56
I... (2 Replies)
Discussion started by: LordJezo
2 Replies
2. Shell Programming and Scripting
How to cut data from big file
my file around 30 gb
I tried "head -50022172 filename > newfile.txt ,and tail -5454283 newfile.txt. It's slowy.
afer that I tried sed -n '46467831,50022172p' filename > newfile.txt ,also slow
Please recommend me , faster command to cut some data from... (4 Replies)
Discussion started by: almanto
4 Replies
3. Shell Programming and Scripting
Hi All,
I need some help to effectively parse out a subset of results from a big results file.
Below is an example of the text file. Each block that I need to parse starts with "reading sequence file 10.codon" (next block starts with another number) and ends with **p-Value(s)**. I have given... (1 Reply)
Discussion started by: Lucky Ali
1 Replies
4. Shell Programming and Scripting
Hi I have some problem to cut out the second line in a output file and send to a new file it's a #!/bin/bash script
1 something
2 something
3 something
and after I cut
1 something
3 something
New file
2 something
Thanks in advance (7 Replies)
Discussion started by: pelle
7 Replies
5. UNIX for Dummies Questions & Answers
How can I cut the text of definite length say from line no. 20 to 1000?
It is trivial ques, but I am very new to Unix.
Thanks :) (3 Replies)
Discussion started by: JackR
3 Replies
6. Shell Programming and Scripting
Hello everyone,
suppose there is a very big text file (>800 mb) that each line contains an article from wikipedia. Each article begins with a tag (<..>) containing its url. Currently there are 10^6 articles in the file.
I want to take random N articles, eliminate all non-alpharithmetic... (14 Replies)
Discussion started by: fedonMan
14 Replies
7. UNIX for Advanced & Expert Users
Looking for some help on using awk and cut
I have a text file that has fixed information and want to write a script that will prompt the user for an account to search for and pint the output
The sample line that has the key information looks like this:
Statement to: ... (5 Replies)
Discussion started by: ziggy6
5 Replies
8. UNIX for Dummies Questions & Answers
Hello all,
Currently I have a txt file named as a.txt with the content as:
f e100
aa bb
cc dd
ee ff
f e222
aa dd
ff gg
f e987
dd aa
f e2222
gg ff
gg aa
dd ff
ee ee
While, for some reason I want to cut a.txt into small ones, e.g. f1.txt, f2.txt, f3.txt and f4.txt. The routine is to... (6 Replies)
Discussion started by: locohd
6 Replies
9. Shell Programming and Scripting
Hello Friends,
I am stuck with the below problem.Any help will be appreciated.
I have a file which has say 100 lines.
On the second last line I have a line from which i want to remove certain characters..
e.g
CAST(CAST( A as varchar(50)) || ',' ||
CAST(CAST( B as varchar(50)) || ',' ||... (8 Replies)
Discussion started by: vital_parsley
8 Replies
LEARN ABOUT REDHAT
noseguy
XScreenSaver(1) General Commands Manual XScreenSaver(1)
NAME
noseguy - a little guy with a big nose wanders around being witty
SYNOPSIS
noseguy [-display host:display.screen] [-foreground color] [-background color] [-text-foreground color] [-text-background color] [-font
font] [-window] [-root] [-install] [-visual visual] [-mode mode] [-program program] [-filename le] [-text text]
DESCRIPTION
A little man with a big nose and a hat runs around spewing out messages to the screen. This code (and its bitmaps) were extracted from the
xnlock program.
OPTIONS
noseguy accepts the following options:
-window Draw on a newly-created window. This is the default.
-root Draw on the root window.
-install
Install a private colormap for the window.
-visual visual
Specify which visual to use. Legal values are the name of a visual class, or the id number (decimal or hex) of a specific visual.
-font font
The font used for the messages.
-mode [ program | file | string ]
In program mode, the messages are gotten by running a program. The program used is controlled by the -program option, and the
.program resource.
In filename mode, the message used is the contents of a file. The file used is controlled by the -file option, and the .filename
resource.
In string mode, the message is whatever was specified on the command line as the -text option, or in the resource database as the
.text resource.
-program program
If mode is program (the default), then this program will be run periodically, and its output will be the text of the messages. The
default program is "fortune -s", but yow is also a good choice.
-filename file
If mode is file, then the contents of this file will be used for all messages.
-text string
If mode is string, then this text will be used for all messages.
ENVIRONMENT
DISPLAY to get the default host and display number.
XENVIRONMENT
to get the name of a resource file that overrides the global resources stored in the RESOURCE_MANAGER property.
SEE ALSO
X(1), xscreensaver(1), xnlock(1)
COPYRIGHT
Copyright 1985, 1990 by Dan Heller <argv@danheller.com>.
AUTHOR
Dan Heller <argv@danheller.com>, 1985.
Ability to run standalone or with xscreensaver added by Jamie Zawinski <jwz@jwz.org>, 13-aug-92.
X Version 11 13-aug-92 XScreenSaver(1)