12-09-2009
if you want to add a newline, just do printf with \n. i will leave it to you to do that.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
:confused: I have a tab delimited file that I need to extract data from and into a file with specific field specs. Each field has to be a certain amount of characters. So, the name field (from delimited file) might have only 15 characters but needs to be 25 (in new file) so I need to insert spaces... (5 Replies)
Discussion started by: criddel
5 Replies
2. Shell Programming and Scripting
Hi,
I got a long list of contents:
>sequence_1
ASSSSSSSSSSSDDDDDDDDDDDCCCCCCC
ASDSFDFFDFDFFWERERERERFSDFESFSFD
>sequence_2
ASDFDFDFFDDFFDFDSFDSFDFSDFSDFDSFASDSADSADASD
ASDFFDFDFASFASFASFAFSFFSDASFASFASFAFS
>sequence_3
VEDFGSDGSDGSDGSDGSDGSDGSDG
dDFSDFSDFSDFSDFSDFSDFSDFSDF... (2 Replies)
Discussion started by: patrick87
2 Replies
3. Shell Programming and Scripting
My input:
>seq_1
DSASSTRRARRRRTPRTPSLRSRRSDVTCS
>seq_3
RMRLRRWRKSCSERS*RRSN
>seq_8
RTTGLSERPRLPTTASRSISSRWTR
>seq_10
NELPLEKGSLDSISIE
>seq_9
PNQGDAREPQAHLPRRQGPRDRPLQAYA+
QVQHRRHDHSRTQH*LCRRRQREDCDRLHR
>seq_4
DRGKGQAGCRRPQEGEALVRRCS>seq_6
FA*GLAAQDGEA*SGRG
My output: Extract all... (22 Replies)
Discussion started by: patrick87
22 Replies
4. Shell Programming and Scripting
My input file:
data_5 Ali 422 2.00E-45 102/253 140/253 24
data_3 Abu 202 60.00E-45 12/23 140/23 28
data_1 Ahmad 256 7.00E-45 120/235 140/235 22
data_4 Aman 365 8.00E-45 15/65 140/65 20
data_10 Jones 869 9.00E-45 65/253 140/253 18... (12 Replies)
Discussion started by: patrick87
12 Replies
5. Shell Programming and Scripting
Input file:
#abc_1
SAASFASFGGDSGDSGDSGSDGSDGSDGSDGSDGSDGSDGDS
Output file:
FASFGGDSGDS
I just want to print out the read from position 5 until position 15 from the data.
Below is the code that I just try but it is failed to get my desired output:
grep -v '#' input_file | awk... (5 Replies)
Discussion started by: patrick87
5 Replies
6. Shell Programming and Scripting
Input file 1:
>pattern_5
GAATTCGTTCATGTAGGTTGASDASFGDSGRTYRYGHDGSDFGSDGGDSGSDGSDFGSDF
ATTTAATTATGATTCATACGTCATATGTTATTATTCAATCGTATAAAATTATGTGACCTT
SDFSDGSDFKSDAFLKJASLFJASKLFSJAKJFHASJKFHASJKFHASJKFHSJAKFHAW
>pattern_1
AAGTCTTAAGATATCACCGTCGATTAGGTTTATACAGCTTTTGTGTTATTTAAATTTGAC... (10 Replies)
Discussion started by: patrick87
10 Replies
7. Shell Programming and Scripting
Input:
HS04636 PROGRAM source 836 7001 + ID=g1
HS04636 PROGRAM beginner 836 7001 + ID=g1.t1;Parent=g1
HS04636 PROGRAM position 836 836 + Parent=g1.t1
HS04636 PROGRAM type 836 1017 + Parent=g1.t1
HS04636 ... (2 Replies)
Discussion started by: patrick87
2 Replies
8. HP-UX
Hi Friends,
One question.
Supposed I want to extract data only for process named "sqlplus" how can I do it. Any suggestions?
I don't want all the data as it is not useful to me e.g.. Command I use is given below
extract -xp -p -r repfile -b"03/15/13 7:00 PM" -e"03/15/13 09:30 PM" -f... (1 Reply)
Discussion started by: kunwar
1 Replies
9. Shell Programming and Scripting
Bash scripting beginner here...
I have many folders, each folder representing one subject. Not all subjects have all the required files, so I need to somehow cycle through all the data and then extract the data only from subjects who have no files missing. I tried to output the ls command, but... (4 Replies)
Discussion started by: LeftoverStew
4 Replies
10. Shell Programming and Scripting
data.txt has several information like the below..
<SERVER>:WEB:MYDOM01:/tmp/cong/MYDOM01,/tmp/app/MYDOM01
<WEBER>:CANES:https-web01,https-web02:/web/apps/https-web01/config
<SERVER>:WEB:MYDOM07:/tmp/cong/MYDOM07,/tmp/app/MYDOM07... (7 Replies)
Discussion started by: mohtashims
7 Replies
LEARN ABOUT DEBIAN
zleave
ZLEAVE(1) General Commands Manual ZLEAVE(1)
NAME
zleave - notify you via Zephyr when you have to leave
SYNOPSIS
zleave [ [+]hhmm [ -m Reminder Message ] ]
zleave can[cel]
DESCRIPTION
Zleave waits until the specified time, then reminds you that you have to leave, using the Zephyr(1) Notification Service. You are reminded
5 minutes and 1 minute before the actual time, at the time, and every minute thereafter. When you log off, zleave exits just before it
would have sent the next message.
The time of day is in the form hhmm where hh is a time in hours (on a 12 or 24 hour clock). All times are converted to a 12 hour clock,
and assumed to be in the next 12 hours.
If the time is preceded by `+', the alarm will go off in hours and minutes from the current time.
If no argument is given, zleave prompts with "When do you have to leave?". A reply of newline causes zleave to exit, otherwise the reply is
assumed to be a time. This form is suitable for inclusion in a .login or .profile.
The cancel option cancels the currently running zleave. If another zleave is running, it is automatically killed when a new time to leave
is set. The process id is stored in the file /tmp/zleave.uid, where uid is the user's UNIX uid.
If the -m argument is specified, the next argument is appended to the standard message (a sentence describing how much time remains until
the appointed hour) sent at appropriate times. If you want to append a multiple-word message, you normally must quote it with double
quotes (") (This is necessary for users of csh(1) and sh(1).)
Zleave automatically subscribes you to Zephyr class "MESSAGE", instance "LEAVE". You do not have to add anything to your default subscrip-
tions file (see zctl(1)). The reminder message is displayed by the WindowGram client (usually zwgc(1)).
If Zephyr is unavailable, zleave acts essentially like leave(1).
Zleave ignores SIGINT, SIGQUIT, and SIGTERM. To get rid of it you should either log off or use the cancel option.
FILES
/tmp/zleave.uid /tmp/wg.*
SEE ALSO
calendar(1), zephyr(1), leave(1), zwgc(1), zctl(1), csh(1), sh(1)
Project Athena Technical Plan Section E.4.1, `Zephyr Notification Service'
RESTRICTIONS
Copyright (c) 1980, Regents of the University of California. All rights reserved. Redistribution and use in source and binary forms are
permitted provided that this notice is preserved and that due credit is given to the University of California at Berkeley. The name of the
University may not be used to endorse or promote products derived from this software without specific written prior permission. This soft-
ware is provided ``as is'' without express or implied warranty.
Copyright (c) 1987,1988 by the Massachusetts Institute of Technology.
MIT Project Athena July 1, 1988 ZLEAVE(1)