06-08-2016
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
How can I look at a certain directory and list all the file names, locations and sizes of each file in the current directory and all subdirectories? (2 Replies)
Discussion started by: ssmiths001
2 Replies
2. AIX
Hi,
I am trying to find the content of file using grep and find command and list only the file names
but i am getting entire file list of files in the directory
find . -exec grep "test" {} \; -ls
Can anyone of you correct this (2 Replies)
Discussion started by: madhu_Jagarapu
2 Replies
3. Shell Programming and Scripting
dear all.
how can i copy a list of files with different names into others directory have the same name
like i have 3 files
10_10
10_10_11
10_10_11_12
and i have 3 directories
10_10
10_10_11
10_10_11_12
how can i make a loop to cp this files into the directory have the same name like... (0 Replies)
Discussion started by: t17
0 Replies
4. UNIX for Dummies Questions & Answers
dear all.
how can i copy a list of files with different names into others directory have the same name
like i have 3 files
10_10
10_10_11
10_10_11_12
and i have 3 directories
10_10
10_10_11
10_10_11_12
how can i make a loop to cp this files into the directory have the same name like... (31 Replies)
Discussion started by: t17
31 Replies
5. Shell Programming and Scripting
Hi to all here ,
Excuse me for the lamer question but I need UNIX command for copying List of Files Under Different File Names !
for example I have this list:
new_001.jpg
new_002.jpg
new_003.jpg
.....
I want to copy all files that start with "new_" to the same directory but under... (7 Replies)
Discussion started by: boboweb_
7 Replies
6. Shell Programming and Scripting
got it figured out :) (1 Reply)
Discussion started by: sHockz
1 Replies
7. UNIX for Advanced & Expert Users
Hi , Need to shell script to extracts files names and write those to another file in different directory.
input file is
inputfile.txt
abc|1|bcd.dat
123 david123
123 rudy2345
124 tinku5634
abc|1|def.dat
123 jevid123
123 qwer2345
124 ghjlk5634
abc|1|pqr.txt
123 vbjnnjh435
123 jggdy876... (9 Replies)
Discussion started by: dssyadav
9 Replies
8. Shell Programming and Scripting
Hi all,
I need a shell script to write into a .txt file the no of files in a directory with extension and separated by comma in between. For eg, a directory contains files like
a.csv
b.csv
c.csv
d.csv
Then the output in the output.txt file should be like
a.csv,b.csv,c.csv,d.csv
... (3 Replies)
Discussion started by: dubuku_01
3 Replies
9. UNIX for Dummies Questions & Answers
Hi All,
Can any one help me to list out the directory names which contain the specified file.
See for example
File name : file.201307014.LKT
Have the directory structure as below.
/app/work/data/INDIA/file.201307014.LKT
/app/work/data/AMERICA/file.201307014.KTP... (5 Replies)
Discussion started by: Balasankar
5 Replies
10. Shell Programming and Scripting
If I have 5 files in a directory, what is the best way to remove specific files in it?
For example,
snps.ivg
probes.ivg
Desired output
probes.ivg
probes.txt
all.txt
Basically, removing those files with "snp" in the filename regardless of extension. Thank you :). (2 Replies)
Discussion started by: cmccabe
2 Replies
LEARN ABOUT PHP
pspell_new_personal
PSPELL_NEW_PERSONAL(3) 1 PSPELL_NEW_PERSONAL(3)
pspell_new_personal - Load a new dictionary with personal wordlist
SYNOPSIS
int pspell_new_personal (string $personal, string $language, [string $spelling], [string $jargon], [string $encoding], [int $mode])
DESCRIPTION
pspell_new_personal(3) opens up a new dictionary with a personal wordlist. The wordlist can be modified and saved with
pspell_save_wordlist(3), if desired. However, the replacement pairs are not saved. In order to save replacement pairs, you should create a
config using pspell_config_create(3), set the personal wordlist file with pspell_config_personal(3), set the file for replacement pairs
with pspell_config_repl(3), and open a new dictionary with pspell_new_config(3).
For more information and examples, check out inline manual pspell website:http://aspell.net/.
PARAMETERS
o $personal
- The file where words added to the personal list will be stored. It should be an absolute filename beginning with '/' because
otherwise it will be relative to $HOME, which is "/root" for most systems, and is probably not what you want.
o $language
- The language code which consists of the two letter ISO 639 language code and an optional two letter ISO 3166 country code after
a dash or underscore.
o $spelling
- The requested spelling for languages with more than one spelling such as English. Known values are 'american', 'british', and
'canadian'.
o $jargon
- Extra information to distinguish two different words lists that have the same language and spelling parameters.
o $encoding
- The encoding that words are expected to be in. Valid values are utf-8, iso8859-*, koi8-r, viscii, cp1252, machine unsigned 16,
machine unsigned 32.
o $mode
- The mode in which spellchecker will work. There are several modes available:
o PSPELL_FAST - Fast mode (least number of suggestions)
o PSPELL_NORMAL - Normal mode (more suggestions)
o PSPELL_BAD_SPELLERS - Slow mode (a lot of suggestions)
o PSPELL_RUN_TOGETHER - Consider run-together words as legal compounds. That is, "thecat" will be a legal compound, although
there should be a space between the two words. Changing this setting only affects the results returned by pspell_check(3);
pspell_suggest(3) will still return suggestions.
Mode is a bitmask constructed from different constants listed above. However, PSPELL_FAST, PSPELL_NORMAL and PSPELL_BAD_SPELLERS
are mutually exclusive, so you should select only one of them.
RETURN VALUES
Returns the dictionary link identifier for use in other pspell functions.
EXAMPLES
Example #1
pspell_new_personal(3)
<?php
$pspell_link = pspell_new_personal ("/var/dictionaries/custom.pws",
"en", "", "", "", PSPELL_FAST|PSPELL_RUN_TOGETHER);
?>
PHP Documentation Group PSPELL_NEW_PERSONAL(3)