08-10-2009
Fantastic. Dedicate that brain to science upon your demise, may it be far into the future. !
. It worked like a dream
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I need some help in knowing how I can append tabs at the end of each line...
The data looks something like this:
field1, field2, field3, field4
1 2
3 4 5
I have values in field1 and field 2 in the first row and I would like to append tab on field3 and field4 for the first row..and in... (6 Replies)
Discussion started by: madhunk
6 Replies
2. Shell Programming and Scripting
Hi
I have an input as follows:
param1:value1|param2:value2|param3:value3|param4:value4|param5:value5
where, "|" and ":" are delimiters
Now suppose, I want to extract the value corresponding to "param4", i.e. "value4" in this case.
In case we use awk, I want to use the value in shell... (1 Reply)
Discussion started by: gaurav_1711
1 Replies
3. Shell Programming and Scripting
Hi,
sumdays before i had posted a query with same subject.
i got sum great help from great ppl which solved my problem then.
But now there is a small problem with the code that i need the experts help upon.
for parsing a text
like this
where $ had been the delimiter between... (3 Replies)
Discussion started by: suresh_kb211
3 Replies
4. Shell Programming and Scripting
Hi Guys,
In the following line:
cn=portal.090710.191533.428571000,cn=groups,dc=mp,dc=rj,dc=gov,dc=br
I need to extract this string: portal.090710.191533.428571000
As you can see this string always will be bettween "cn=" and "," strings.
Someone know one regular expression to... (4 Replies)
Discussion started by: maverick-ski
4 Replies
5. Shell Programming and Scripting
Hi
Need your help to assign the string to a variable from a line which has no fixed delimter in unix.
for example , my file contains
Name="report""
File Name one="test1"
File Name two="test2"
now how do I read report , test1 and test2 ?
var1=report
var2=test1
var3=test2
... (1 Reply)
Discussion started by: rashmisb
1 Replies
6. Shell Programming and Scripting
Hiee all
Can anyone tell me how to extract a string from a given line.
STAPISDK_RELEASE_32_BL012_2011_JAN_25.1597
I want to extract BL012 from above.
as 102 keeps on changing i want smthing like that it extract BL and 102 extrct by its own.
Thankx guyzz (9 Replies)
Discussion started by: abhijtr
9 Replies
7. Shell Programming and Scripting
Hi
I have a very large data file with several hundred columns and millions of lines.
The important data is in the last set of columns with variable numbers of tab delimited fields in front of it on each line.
Im currently trying sed to get the data out - I want anything beetween :RES and... (4 Replies)
Discussion started by: Manchesterpaul
4 Replies
8. Shell Programming and Scripting
I want a string between two delimeter like ( ) from file.
Input File,
2007_08_07_IA-0100-014_(January).PDF
2007_08_07_IA-0100-031_(January February March
April June July).PDF
2008-02-28_KR-1022-003_(January
febuary
march
april
may).CSV
Output File,
January
January February... (19 Replies)
Discussion started by: Pratik Majithia
19 Replies
9. Shell Programming and Scripting
Hello all,
Soon I will be receiving a new file. I've asked the source system to put "TRAILER.1+0000007+1" for the trailer to indicate full receipt of file. I need to know how to separate TRAILER so I can use it in a if statement.
I used the tail command but not sure how to incorporate awk or... (11 Replies)
Discussion started by: pone2332
11 Replies
10. UNIX for Beginners Questions & Answers
Hi I have to extract the destination path information from each record the file is of variable length so I will not be able to use the print command.The search should start on variable "destinationPath" and it should end at immediate "," also the first field has to be printed
Input File:... (7 Replies)
Discussion started by: rkakitapalli
7 Replies
THINK(1) General Commands Manual THINK(1)
NAME
think - you don't have to think, the computer can think for you
SYNOPSIS
think [ -detach ]
DESCRIPTION
Think simulates a thinking brain.
This can be useful if someone is not wanting to think at invocation time or if someone is needing some thinking about something. It can
also be helpful if someone's brain is not working correctly at invocation time.
When invoked, think will go ahead and look at all of the commands and keystrokes that a user has made during the current login session.
Think will then look at what files the user has. From this and what level the user is listed at in the file /usr/lib/think, think will
figure out what the user was trying to do when think was invoked.
DEVICES
The process that think uses to help a user is greatly aided if the user is wearing a brain interface bus (bib) device. A bib device is
normally worn on the head, and if being used, then think will try to see what was going through the users head at the time of invocation.
After think does this, it will send electric signals to the users brain, causing the user to type in whatever keystrokes are necessary to
accomplish the task that he/she doesn't want to think about.
OPTIONS
-detach
also known as "Must mother do all of your thinking for you?"-mode. This options causes think to run in the background as a daemon
that watches for users who look like they may need assistance. When a user is found to be exercising cluelessness, think will lock
up their keyboard and will proceed to execute what seems to be the most likely sequence of commands that the user had intended to
execute. This flag may only be used by the super-user.
FILES
/dev/brain
bib device special file.
/usr/lib/think
file to indicate various user abilities. The format of this file is a username on each line followed by some whitspace and then a
number. The higher the number for a given user, the more likely think is to assume that that user knows what he/she is doing.
Unfortunately, what think considers a large number will vary with usage.
BUGS
If a user is using a bib device and actually lacks a brain of their own, then there is a high risk that think will take over their (non-
existent) minds. This has the upshot that someone other than the user will have to stop the program. (Perhaps this is a feature.)
It may illegal in some areas to force users to wear bib devices.
AUTHOR
This man page was written by John Guthrie <guthrie@math.upenn.edu> with suggestions from Kevin Whyte <kwhyte@math.upenn.edu> for the
alt.sysadmin.recovery man page collection.
think version 1.0 April 5, 1996 THINK(1)