10-05-2007
not sure what exactly are you looking for..if i understood correctly..u may want to do something like this-
for file in adc_earnedpoints*.txt
do
datestr=`echo $file | cut -d. -f2`
new=`echo $file | cut -d. -f1,3`
mv $file $new
#call informatica session with the datestr
done
cheers,
Devaraj Takhellambam
10 More Discussions You Might Find Interesting
1. Programming
Hi gurus
I am not a C programmer but I need to read and write files on a computer on LAN using IP address.
Suppose on a computer that has an IP 192.168.0.2
Any help or code example. I did in JAVA using URL, but do not know how to do in ANSI-C.
In java:
-------
URL url = new... (3 Replies)
Discussion started by: lucky001
3 Replies
2. UNIX for Dummies Questions & Answers
Hi All,
Not sure if this would be in a dummies sectiin or advanced. I'm looking for a script if someone has doen something like this.
I have list of files -
adc_earnedpoints.20070630.txt
adc_earnedpoints.20070707.txt
adc_earnedpoints.20070714.txt
adc_earnedpoints.20070721.txt... (2 Replies)
Discussion started by: thebeginer
2 Replies
3. UNIX for Dummies Questions & Answers
Hi my prob statement is to create a new file or to append to the 1tst file the followign chages.
File 1: txt file.
portfolio No a b c d
abc 1 Any Any Any charString
cds 2 values values values charString
efd 3 can can can charString
fdg 4 come come come charString... (4 Replies)
Discussion started by: szchmaltz
4 Replies
4. UNIX for Dummies Questions & Answers
Hi all,
I have the following shell script code which tries to sftp and writes the log into the log file.
TestConnection ()
{
echo 'Connection to ' $DESTUSERNAME@$DESTHOSTNAME
$SETDEBUG
if ]; then rm $SCRIPT ; fi
touch $SCRIPT
echo "cd" $REMOTEDIR >> $SCRIPT
echo "quit" >>... (10 Replies)
Discussion started by: valluvan
10 Replies
5. Programming
Hello everybody,
I'm trying to code a program which makes the following:
It sends an ARP request frame and when it gets the reply, extracts the IP address of source and writes it to a .txt file. This is gonna be done with many hosts (with a for() loop), so, the text file would look like... (2 Replies)
Discussion started by: Zykl0n-B
2 Replies
6. Shell Programming and Scripting
Hi All,
Please help me in writing data to a file in one row.
In database there is a column which contains large data which does not fit in the file in one row. The column contains list of paths. I want to write these paths to a file in one row.
Please find the code below writes :
... (2 Replies)
Discussion started by: rajeshorpu
2 Replies
7. Shell Programming and Scripting
Need to develop a unix shell script for the below requirement and I need your assistance:
1) search for file.log and file.bad file in a directory and read them
2) pull out "Load_Start_Time", "Data_File_Name", "Error_Type" from log file
4) concatinate each row from bad file as... (3 Replies)
Discussion started by: mlpathir
3 Replies
8. Shell Programming and Scripting
Hi
I am trying to extract information out of a file but keep getting grep cant open errors
the code is below:
#bash
#extract orders with blank address details
#
# obtain the current date
# set today to the current date ccyymmdd format
today=`date +%c%m%d | cut -c24-31`
echo... (8 Replies)
Discussion started by: Bruble
8 Replies
9. Shell Programming and Scripting
Hi all,
I have a question for the Gurus. I apologize if this has bee shared before but I couldn't find the link.
I am trying to read parameters from an external parameter file. What I m trying to achieve is read selected lines from an external parameter file into the script. for eg my param... (4 Replies)
Discussion started by: maverick1947
4 Replies
10. Shell Programming and Scripting
Hi All,
Here is my requirement. I am grepping through the log files and cutting some fields from the file to generate a csv file. Now I have to check if 2nd field is having some fixed value then with the help of 4th field I have to look in same log and run another grep command to retrieve the... (11 Replies)
Discussion started by: kmajumder
11 Replies
IOK(1) General Commands Manual IOK(1)
NAME
iok- Indic Onscreen Keyboard
SYNOPSIS
iok [-a] [-h] [-d 1] [-n LANGCODE]
DESCRIPTION
Indic Onscreen Keyboard currently shows Inscript and Inscript2 keymaps for 22 official Indian languages. The languages are Assamese,
Bengali, Bodo, Dogri, Gujarati, Hindi, Kannada, Kokani, Maithili, Malayalam, Manipuri, Marathi, Nepali, Oriya, Punjabi, Sanskrit, Santali,
Sindhi, Tamil, Telugu.
The iok application runs in default and advanced mode. In default mode, iok starts by loading Inscript2 keymap of the current locale.
If keymap is not installed or available then iok shows keymap list in the default mode. User can then select any keymap from keymap list if
he want to write using it.
In the advanced mode, iok allows to open non-supported keymaps. If keymap can be parsed by iok then it will be showed in iok UI other-
wise it will show error message that iok can't load this keymap. Advanced mode also allows to create custom keymap by either swapping or
re-assigning character mappings in the existing loaded keymap in iok.
Another feature iok supports is Drag and Drop. This will allow user to swap character mappings using mouse.
The keymap list shows Inscript and Inscript2 keymaps from location /usr/share/m17n and ~/.m17n.d path.
To start iok in normal mode from console, use following command iok
To start iok in advanced mode from console, use following command iok -a
To start iok in any supported Inscript2 keymap (say in Marathi) use following command iok -n mr
As Inscript2 keymap naming also uses language script code for some languages, command to open those keymaps is like this iok -n pa-guru
where pa is a isocode name for the Punjabi language and guru is a language script code name in which keymap is written.
To use Drag and Drop feature of iok, start iok from console as iok -d 1 The Draft version of Inscript2 keymaps are available at
https://fedorahosted.org/inscript2/
This project is available at http://fedorahosted.org/iok/ or http://iok.sourceforge.net
OPTIONS
-a It shows the menus and combo box in iok UI
-h It show the help
-d 1 This will enable Drag and Drop feature only for the single iok invocation. Otherwise iok has disabled Drag and Drop by default.
-n LANGCODE
In the place of LANGCODE,you need to specify a particular language code. Shows iok UI for that particular language. This will also
requires language script code. e.g. for Bodo, Dogri, Kokani, Nepali, Sindhi use its langcode and "-deva" as a language script
code.
To start iok using Kokani keymap, run "iok -n kok-deva"
AUTHOR
Suji A <suji87.msc@gmail.com> , Parag <pnemade@fedoraproject.org>
March 12, 2012 IOK(1)