10-17-2011
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Can anyone tell me why I keep on getting this error message?
../dosRename: syntax error at line 77: `end of file' unexpected
I have treid everything and I just can get it to work!
Here is the code:
#!/bin/sh
Usage() {
&& echo "\n$*\n" >&2
cat <<-EOD_USAGE >&2
Usage:... (4 Replies)
Discussion started by: Zeta_Acosta
4 Replies
2. UNIX for Dummies Questions & Answers
Hi there,
I hope someone can help me with this problem :
I have a directory (/var/www/file/imgprofil) which contains about 10000 JPG files. They have a naming convention thus :
prefix-date-key-suffix.jpg
they all have the prefix p-20050608-
then AAAA is a 4 letter code
the suffix is... (7 Replies)
Discussion started by: steve7
7 Replies
3. UNIX for Dummies Questions & Answers
I'm looking to determine if I can use a grep command to read file and rename the file based on the first 3 characters of the data in the file.
An example is:
Read FileA
If the first 3 positions of the data in the file are "ITP", then rename the file as FileA_ITP, else if the first 3... (3 Replies)
Discussion started by: jchappel
3 Replies
4. Shell Programming and Scripting
Hello all.
I am new to this forum (and somewhat new to UNIX / LINUX - I started using ubuntu 1 year ago).:b:
I have the following problem that I have not been able to figure out how to take care of and I was wondering if anyone could help me out.:confused:
I have all of my music stored in... (7 Replies)
Discussion started by: marcozd
7 Replies
5. Shell Programming and Scripting
#!/usr/bin/perl
$FL="ch.txt";
$CFL="mytext.txt";
print "This script will rename textfiles.";
mv $FL $CFL;
print "Done.";
perl file.pl
Error:
Can't locate object method "mv" via package "ch.txt" (perhaps you forgot to load "ch.txt"?) at file.pl line 7. (5 Replies)
Discussion started by: cola
5 Replies
6. UNIX for Advanced & Expert Users
Hi,
on AIX 6.1
I have a file :
myfile.log
And I want to rename it as :
myfile_dateoftheday.log
For example today (20 of Dec 2010) :
myfile_201210.log
How can I do that ?
Thanks. (4 Replies)
Discussion started by: big123456
4 Replies
7. UNIX for Dummies Questions & Answers
Hi,
i have a file with some data ..look for some specific value in the file and if found that value rename the file with the value found in the file..
ex..
File.txt
1236 43715825601ANDERSSON,
1236 437158256031963040120060901200609010000000
1236 43715825604123 MCCL AVE UPPER
1236 ... (11 Replies)
Discussion started by: dssyadav
11 Replies
8. UNIX for Dummies Questions & Answers
I have one input file ABC.txt and one output DEF.txt. After the ABC is processed and created output, I want to rename ABC.txt to ABC.orig and DEF to ABC.txt. Currently when I am doing this, it does not process the input file as it cannot read and write to the same file. How can I achieve this?
... (12 Replies)
Discussion started by: High-T
12 Replies
9. Shell Programming and Scripting
I have a specific set (all ending with .bam) of downloaded files in a directory /home/cmccabe/Desktop/NGS/API/2-15-2016. What I am trying to do is use a match to $2 in name to rename the downloaded files. To make things a more involved the date of the folder is unique and in the header of name... (1 Reply)
Discussion started by: cmccabe
1 Replies
10. Shell Programming and Scripting
In the below bash I am trying to copy the only text file (always only one) in /home/cmccabe/Desktop/list/QC/metrics.txt and rename each of the 3 text files according to /home/cmccabe/Desktop/test/list.txt using lines 3, 4 ,5. This format (that is list.txt) is always 5 lines. Thank you :).
... (12 Replies)
Discussion started by: cmccabe
12 Replies
LEARN ABOUT DEBIAN
xkbignoreextension
XkbIgnoreExtension(3) XKB FUNCTIONS XkbIgnoreExtension(3)
NAME
XkbIgnoreExtension - Prevents core X library keyboard functions from using the X Keyboard Extension
SYNOPSIS
Bool XkbIgnoreExtension (Bool *ignore);
ARGUMENTS
ignore True means ignore the extension
DESCRIPTION
If a server supports the Xkb extension, the X library normally implements preXkb keyboard functions using the Xkb keyboard description and
state. The server Xkb keyboard state may differ from the preXkb keyboard state. This difference does not affect most clients, but there are
exceptions. To allow these clients to work properly, you may instruct the extension not to use Xkb functionality.
Call XkbIgnoreExtension to prevent core X library keyboard functions from using the X Keyboard Extension. You must call XkbIgnoreExtension
before you open a server connection; Xkb does not provide a way to enable or disable use of the extension once a connection is established.
XkbIgnoreExtension tells the X library whether to use the X Keyboard Extension on any subsequently opened X display connections. If ignore
is True, the library does not initialize the Xkb extension when it opens a new display. This forces the X server to use compatibility mode
and communicate with the client using only core protocol requests and events. If ignore is False, the library treats subsequent calls to
XOpenDisplay normally and uses Xkb extension requests, events, and state. Do not explicitly use Xkb on a connection for which it is dis-
abled. XkbIgnoreExtension returns False if it was unable to apply the ignore request.
RETURN VALUES
True The XkbIgnoreExtension returns True if
False The XkbIgnoreExtension function returns False if it was unable to apply the ignore request.
SEE ALSO
XOpenDisplay(3)
X Version 11 libX11 1.5.0 XkbIgnoreExtension(3)