05-23-2013
Reading your proposal again, and more carefully, I see that you act on the original file, not on the result of all the pipes. That might indeed be most efficient by far.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Please help...I forgot how to do a linecount in Solaris. I'm list a report & I'm trying to count how many instances.
Also, I need to read & clean up mail for root. What directory is that again.
Thanks (3 Replies)
Discussion started by: Remi
3 Replies
2. UNIX for Dummies Questions & Answers
Greetings,
I need to search and count all the occurences of a word in all the files in a directory.
Any suggestions greatly appreciated.
Thanks (1 Reply)
Discussion started by: skoppana
1 Replies
3. Shell Programming and Scripting
Hi all,
I'm trying to count the fields in a file and I'm not getting back the desired result. I was wondering if anyone can help.
This is the code:
#!/bin/bash
a=$(awk '{print NF}' foobar)
if
then
echo "this works"
else
echo "no it's $a instead"
fi
The foobar file contains... (1 Reply)
Discussion started by: nistleloy
1 Replies
4. UNIX for Dummies Questions & Answers
Hi
I am having a 'grep' headache
Here is the contents of my file:
(PBZ,CP,(((ME,PBZ,BtM),ON),((ME,((PBZ,DG),(CW9,PG11))),CW9,TS2,RT1)))
I would like to count out how many times 'PBZ' occurs and then place that number in the line above
3... (8 Replies)
Discussion started by: cavanac2
8 Replies
5. UNIX for Dummies Questions & Answers
Hi
I have a complex script which outputs a text file for loading into a db.
I now need to enhance this script do that I can issue an ‘lp' command
to show the count of the number of records in this file.
Can anybody give me the necessary syntax ? (2 Replies)
Discussion started by: malts18
2 Replies
6. Shell Programming and Scripting
Hi,
I'm new to linux & bash so please forgive my ignorance, just wondering if anyone can help.
I have a file (mainfile.txt) with comma deliminated values, like so:
$1 $2 $3
613212, 36, 57
613212, 36, 10
613212, 36, 10
677774, 36, 57
619900, 10, 10
i need to split this file... (12 Replies)
Discussion started by: BigTOE
12 Replies
7. Shell Programming and Scripting
Hi Friends,
I need some help. First look at my files hierchachy
/<level-1>/<level-2>/<level-3>/*.tif
eg. :
/2010-07-01/AFFIDAVIT-OF-SERVICE---FOR-SC/001/Babylon2_20100701012049_1278004849.49892_000.tif... (2 Replies)
Discussion started by: paragnehete
2 Replies
8. Shell Programming and Scripting
Hi there
I have a .ksh script that I am using on an AIX ( Actual Level 5.3.10.0, Maintenance Level 5.3.0.0) where I am logging into a windows box, doing a file count on that server and returning the output to the UNIX session.
I would like to exit the script at this point in time if the... (10 Replies)
Discussion started by: jimbojames
10 Replies
9. Shell Programming and Scripting
Hi!
i'm trying to parse textfiles against a pattern and storing the result in a variable.
The strings i want to get are embraced by and can occur several times in one line, so e.g.
some text anything else endwhat i have so far:
#!/bin/bash
for f in $*
do
exec 3<&0
exec 0<$f
... (2 Replies)
Discussion started by: thoni
2 Replies
10. UNIX for Dummies Questions & Answers
Hello,
I have input file with queue names
No.esprd.Queue|No.esdev.Queue|||n|120|No_User||No_User|
No.esdev.Queue|No.esdev.Queue|||n|120|No_User||No_User|
I have to check if the input file contains word "esprd" and the number of times it occurs. I will have to do further... (22 Replies)
Discussion started by: Green_Star
22 Replies
LEARN ABOUT DEBIAN
katoob
KATOOB(1) General Commands Manual KATOOB(1)
NAME
katoob - A Gtk2 light weight multilingual BiDi aware text editor.
katoob is a text editor for X, You can use it to create and edit text files. Katoob support reading and saving text files in many encod-
ings. As well as importing / exporting to HTML character reference.
SYNOPSIS
katoob [options] files...
DESCRIPTION
This manual page documents briefly the katoob commands.
katoob is a light weight, multi lingual, BiDi aware text editor. It supports opening and saving files in multiple encodings. The main sup-
port was for Arabic language but more languages are currently supported.
OPTIONS
This program follows the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included
below.
-h, --help
Show summary of options.
-v, --version
Show version of program.
-u, --usage
Display brief usage message.
- Read input from the standard input.
files...
Specifies the files to be opened. Multiple files are supported but they should be separated by spaces, Reading from pipes is also
supported by using a dash "-". If no files specified, Katoob'll start with an empty document.
FILES
$HOME/.katoob/
User's configuration files directory
$HOME/.katoob/config
Main configuration file
$HOME/.katoob/recent
Recent files list
$PREFIX/share/katoob
Global program directory
EXAMPLES
Opening multiple files:
katoob foo.txt bar.text zot
Opening a file called foo and the output of cat:
cat bar | katoob foo -
Reading from a pipe:
ls | katoob -
Reading from multiple pipes:
katoob - -
Here katoob'll try to read from the standard input 2 times. To close the standard input you should press CTRL-D For each dash passed,
Katoob'll reopen the standard input and read from it.
BUGS
Something like cat foo | katoob - - "should read cat output and then wait for the user input and open each one in a separate document" is
not supported.
AUTHOR
katoob was written by Mohammed Sameer.
BUGS
Bugs should be reported at http://bugzilla.arabeyes.org/ or the Arabeyes.org developer mailing list developer@arabeyes.org.
June 22, 2003 KATOOB(1)