02-09-2006
Oh...YEEEHAWWW!!!
Thank you soooo much!
This is exactly what I needed!!!!!
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
Having issues with the . parameter in the find command.
Issuing "find . -name \*.pl" gives me
find: cannot open .: No such device
I got it working by substituting . with *, so "find * -name \*.pl" gives the correct listing.
bin/test.pl
"which find" lists /bin/find.
Anybody... (7 Replies)
Discussion started by: jabrady
7 Replies
2. Shell Programming and Scripting
Hi,
i wan to search the file starting with Admin into the directory Output. I am running below command:
find /appl/Output -name "Admin*" -prune
but this command is going into the sub directories present under output. I do not want to search under sub directories. Any help will be highly... (6 Replies)
Discussion started by: Vishal123
6 Replies
3. Shell Programming and Scripting
Hi all,
find command not working for me in a perticular directory.The same command is working fine in any other directory.
Following is the command i issued:
find . -type f -print
my question is , is it possbile to disable a command only for a perticular directory ??...of course... (4 Replies)
Discussion started by: panyam
4 Replies
4. OS X (Apple)
I've been trying to figure this out since last night, and I'm just stumped. The last time I did any shell scripting was 8 years ago on a Unix box, and it was never my strong suit. I'm on a Mac running Leopard now. Here's my dilemma - hopefully someone can point me in the right direction.
I'm... (10 Replies)
Discussion started by: Daniel M. Clark
10 Replies
5. Shell Programming and Scripting
I was trying to write a simple script which will read a text file and count the number of vowels in the file. My code is given below -
#!/bin/bash
file=$1
v=0
if
then
echo "$0 filename"
exit 1
fi
if
then
echo "$file not a file"
exit 2
fi
while read -n... (14 Replies)
Discussion started by: linux_learner
14 Replies
6. Shell Programming and Scripting
I have the following files in a directory
> ls -1 /tmp/test/dir/
file with spaces 1.ogg
file with spaces 2.oggI am running the following to echo the filenames but alter the file extension on the files to .mp3 instead of .ogg ( I am going to run ffmpeg against the files ultimately, but keeping... (2 Replies)
Discussion started by: jelloir
2 Replies
7. Shell Programming and Scripting
Hi ,
In /home/etc/files path ran the following command
find . -name 'ABC*' | wc -l
The output of the above command is 25 as expected
In path /home path ran the following command
find . -name '/home/etc/files/ABC*' | wc -l
The output of the abvoe command is 0 .
Why the above... (3 Replies)
Discussion started by: smile689
3 Replies
8. Shell Programming and Scripting
Hi, I'm having trouble with a simple copy command in a script on HPUX.
I am trying to copy a file and append date & time.
The echo command prints out what I am expecting..
echo "Backing up $file to $file.$DATE.$FIXNUM" | tee -a $LOGFILE
+ echo 'Backing up... (4 Replies)
Discussion started by: Glennyp
4 Replies
9. Shell Programming and Scripting
Following one line of awk code removes first 3 characters from each line but when I run the same code on another linux platform it doesn't work and only prints blank lines for each record. Can anyone please explain why this doesn't work? (31 Replies)
Discussion started by: later_troy
31 Replies
10. UNIX for Advanced & Expert Users
Greetings,
For housekeeping, I use the following command:
find /some/path -type f -name "*log*" ! -exec fuser -s "{}" 2>/dev/null \; -exec ls -lh {} \;
It finds all log files not currently in use by a process and manipulates them.
This command always works on linux and redhat machines,... (2 Replies)
Discussion started by: dampio
2 Replies
LEARN ABOUT DEBIAN
xkbresizekeysyms
XkbResizeKeySyms(3) XKB FUNCTIONS XkbResizeKeySyms(3)
NAME
XkbResizeKeySyms - Change the number of symbols bound to a key
SYNOPSIS
KeySym * XkbResizeKeySyms (XkbDescRec *xkb, int key, int needed);
ARGUMENTS
- xkb keyboard description to be changed
- key keycode for key to modify
- needed
new number of keysyms required for key
DESCRIPTION
XkbResizeKeySyms reserves the space needed for needed keysyms and returns a pointer to the beginning of the new array that holds the
keysyms. It adjusts the offset field of the key_sym_map entry for the key if necessary and can also change the syms, num_syms, and
size_syms fields of xkb->map if it is necessary to reallocate the syms array. XkbResizeKeySyms does not modify either the width or number
of groups associated with the key.
If needed is greater than the current number of keysyms for the key, XkbResizeKeySyms initializes all new keysyms in the array to NoSymbol.
Because the number of symbols needed by a key is normally computed as width * number of groups, and XkbResizeKeySyms does not modify either
the width or number of groups for the key, a discrepancy exists upon return from XkbResizeKeySyms between the space allocated for the
keysyms and the number required. The unused entries in the list of symbols returned by XkbResizeKeySyms are not preserved across future
calls to any of the map editing functions, so you must update the key symbol mapping (which updates the width and number of groups for the
key) before calling another allocator function. A call to XkbChangeTypesOfKey will update the mapping.
If any allocation errors occur while resizing the number of symbols bound to the key, XkbResizeKeySyms returns NULL.
SEE ALSO
XkbChangeTypesOfKey(3), XkbResizeKeyActions(3)
NOTES
A change to the number of symbols bound to a key should be accompanied by a change in the number of actions bound to a key. Refer to XkbRe-
sizeKeyActions for more information on changing the number of actions bound to a key.
X Version 11 libX11 1.5.0 XkbResizeKeySyms(3)