02-18-2005
and if you use '-b' or '-B'?
I'm not a real guru when it comes to 'unzip' - just reading 'man unzip'.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have file as shown below.
abc,
def,
abc,
xyz,
I have to remove ',' from end of last line (xyz,). How can I do that with single command? Is it possible or I have to iterate through complete file to remove that?
- Malay (2 Replies)
Discussion started by: malaymaru
2 Replies
2. Shell Programming and Scripting
I'm appending header and trailer record for a binary file using
echo "$header" > filename
cat oldfilename >> filename
echo "$trailer" >> filename
The echo is introducing newline character after header and trailer.Please let me know is there any possibility to get rid of newline character. (2 Replies)
Discussion started by: ammu
2 Replies
3. UNIX for Dummies Questions & Answers
HI i am having a file this
(sys19:pnlfct:/pfact/temp>) cat temp_sand
1234567890
1234567890
1234567890
1234567890
I want to make this file as
(sys19:pnlfct:/pfact/temp>) cat temp_sand
1456789023
1456789023
1456789023
1456789023
just take the 2nd and 3rd position and put it... (5 Replies)
Discussion started by: arunkumar_mca
5 Replies
4. Shell Programming and Scripting
hi
Someone can give me some clue or script in writing the below requirement
I am having 5 or 10 files of unix files which contain ^M charactes.
First we have to find ^M character and concat the line where it has broken and then we have to remove the ^M character from the uxix... (11 Replies)
Discussion started by: vsantoshusa
11 Replies
5. Shell Programming and Scripting
Hi,
I am having a pipe (|) delimited file which is having ^Z character in the middle of the text.Could anyone please suggest me how to remove this ^Z Character from the file.I almost used all the ideas posted in this site but none of them worked in my case since tis ^Z character is not coming at... (4 Replies)
Discussion started by: phoenix86
4 Replies
6. Shell Programming and Scripting
Hi,
My file has this special character "^M"
I would like to remove this characters.
eg:
abc,abc,^M
i tried using sed but doesnt work.
i used octal dump command to see special character it returns following:
015
\r
Appreciate your reply. (6 Replies)
Discussion started by: pinnacle
6 Replies
7. HP-UX
Hi Experts,
I have data coming in 4 columns and there are new line characters \n in between the data. I need to remove the new line characters in the middle of the row and keep the \n character at the end of the line.
File is comma (,) seperated.
Eg:
ID,Client ,SNo,Rank
37,Airtel \n... (8 Replies)
Discussion started by: sasikari
8 Replies
8. UNIX for Dummies Questions & Answers
I need help removing the last character of every line if it is a certain character. For example I need to get rid of a % character if it is in the last position.
Input:
aaa%
%bbb
ccc
d%dd%
Output should be:
aaa
%bbb
ccc
d%dd
I tried this but it gets rid of all of the % characters.... (5 Replies)
Discussion started by: raptor25
5 Replies
9. Shell Programming and Scripting
Hi all,
Please help me to remove first and last character of each line in a file.
Thanks,
Baski (5 Replies)
Discussion started by: baskivs
5 Replies
10. Shell Programming and Scripting
Hello guys,
I would need to remove the last character ")" of a specific line. This can be from any line. Your help is appreciated. Below is the line.
HOSTNAME=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP))
Please help. (6 Replies)
Discussion started by: sang8g
6 Replies
GURU(8) System Manager's Manual GURU(8)
NAME
guru - System administration
SYNOPSIS
guru [ -e program ] [ -f ] [ -p target ]
DESCRIPTION
guru is a sophisticated program synthesis and system maintenance tool developed after midnight in numerous university computing labs. It
is based on the famous LISP Hacker system, used to develop AI programs on TENEX. guru reads a problem description from the standard input.
An innovative and occasionally correct solution is generated and written to the standard output. Typically, guru is invoked repeatedly
until an acceptable solution is generated or the user community has learned to live with the problem.
The bugreport mechanism sometimes invokes guru. In this case guru executes at a priority inversely proportional to the reported urgency of
the bug. Feature enhancements run at high priority whereas critical problems are fixed only when the machine would otherwise be idle.
If the standard input is empty, guru uses its program synthesis capabilities to generate a selection of screen editors, X widgets, compil-
ers, sundry games and the occasional diatribe.
OPTIONS
-e program
New features are added to an existing program. This option should be used with caution as the enhanced program may behave unpre-
dictably or not at all.
-f Reconstructs filesystems after a crash.
-p target
Ports the entire system on which guru is executing to target, preferably a RISC machine. This is an extremely time consuming oper-
ation and is not guaranteed to terminate.
If more than one option is specified, guru may thrash. Each copy of guru has its own set of unique, additional and undocumented options.
SEE ALSO
YAPS: Yet another Program Synthesiser by S C Johnson.
NOTES
Inherent design limitations prevent guru from synthesising comments. The programs generated are undocumented. The lucidity, politeness,
relevance and language of the occasional diatribe vary considerably.
The only diagnostic is an occasional ``I deserve a raise'' - which may be ignored albeit doing so may provoke ``I resign'' - an unrecover-
able error.
Sending the output of one guru into another can produce quite startling results.
UNIX Programmer's Manual GURU(8)