Sponsored Content
Full Discussion: Korne Script for format file
Top Forums Shell Programming and Scripting Korne Script for format file Post 63919 by vgersh99 on Friday 25th of February 2005 07:41:13 PM
Old 02-25-2005
Quote:
Originally Posted by CamTu
Code:
000725010	Andrew	Clelland	200520	EASY	100	2/25/05 0:00	SCAD Debit Card Charge
000651300	Deanna	Cope	200520	EASY	-20	2/25/05 0:00	Payment for PTIC

i did add the code: ($9 $10 $11 $(NF))==SCAD Debit Card Charge

CT
Ah, you didn't mention it to start with, did you? Smilie

Code:
( $(NF-3) $(NF-2) $(NF-1) $(NF) ) == "SCADDebitCardCharge"

whenever possible try NOT to hardwire field numbers.

try to understand what the code DOES preferably BEFORE trying it!
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Mailing in Korne shell

All Iam using Korne shell in AIX OS. Can u give me the syntax to send a mail. Thanx in advance Regards Deepak (5 Replies)
Discussion started by: DeepakXavier
5 Replies

2. Shell Programming and Scripting

GOTO LOOP in KORNE SHELL

All Please help to provide "goto" functionality in KORN shell script. ex: 1: Command Process some command if check some variable true goto 1 else process some other Please help to implement this example in korne... (1 Reply)
Discussion started by: DeepakXavier
1 Replies

3. Shell Programming and Scripting

script for format a file

is there any way to format a file by just removing first line and last line from the file. my file is like test.txt 12may2004,20may2004,A 123,SCOTT,TIGER,,,,12,12-MAY-2006 124,TIGER,SCOTT,,,,,,, .... ... 163,cscssaa,abc,,,,12,12-MAY-2006 END my requirement is to produce the same file... (1 Reply)
Discussion started by: u263066
1 Replies

4. Shell Programming and Scripting

Korne Shell Problem.

Hi Everyone, I have tried with the following Code for each of the following, but that does not seem to serve the purpose. Can someone give some pointers please. 1) A Korne Shell which asks the user to enter the name of a file when searching it recursively (using the find command) in the... (3 Replies)
Discussion started by: marconi
3 Replies

5. Shell Programming and Scripting

Some Problem with Korne Shell//

I am new to Korne Shell Scripting. Can someone help me with a Korne Shell which asks the user :- 1) to enter the name of a file when searching it recursively (using the find command) in the home directory of this user. 2) for a date (format AAMMJJ) and a directory and then searches ... (4 Replies)
Discussion started by: marconi
4 Replies

6. Shell Programming and Scripting

Korne Shell...

In Korne Shell Scripting, how to search recursively in a directory, the list of files modified after a given date .. Thanks in advance.. (1 Reply)
Discussion started by: marconi
1 Replies

7. Shell Programming and Scripting

Finding modified File List after the chosen date in Korne Shell...

I am trying to write a Korne Shell asking the user for a date and a directory and then search recursively in this directory the list of files modified after the date chosen. But I am not getting good results when I Test it... #!/usr/bin/ksh echo "Enter a date (YYYYMMDD) " read date touch -t... (2 Replies)
Discussion started by: marconi
2 Replies

8. Shell Programming and Scripting

Converting windows format file to unix format using script

Hi, I am having couple of files which i used to copy from windows to Linux, so now in case of text files (CTRL^M) appears at end of line. I know i can convert this windows format file to unix format file by running dos2unix. My requirement here is that i want to do it automatically using a... (5 Replies)
Discussion started by: sarbjit
5 Replies

9. Shell Programming and Scripting

Conversion of below Tabs Tex file into CSV format file : shell script needed

Request if some one could provide me shell script that converts the below "input file" to "CSV format file" given Name Domain Contact Phone Email Location ----------------------- ------------------------------------------------ ------- ----- ---------------------------------... (7 Replies)
Discussion started by: sreenath1037
7 Replies

10. Shell Programming and Scripting

Script to generate Excel file or to SQL output data to Excel format/tabular format

Hi , i am generating some data by firing sql query with connecting to the database by my solaris box. The below one should be the header line of my excel ,here its coming in separate row. TO_CHAR(C. CURR_EMP_NO ---------- --------------- LST_NM... (6 Replies)
Discussion started by: dani1234
6 Replies
PCCARD(4)						   BSD Kernel Interfaces Manual 						 PCCARD(4)

NAME
pccard -- PC Card bus driver SYNOPSIS
device pccard DESCRIPTION
The pccard driver implements the PC Card bus. The pccard driver supports all PC Card bridges in the system. TUNABLES
The driver supports the following tunable parameters, which may be added to /boot/loader.conf or set via the sysctl(8) command: hw.pccard.debug Non-zero values cause more verbose information to be printed when a 16-bit PC Card is inserted or removed. hw.pccard.cis_debug Non-zero value causes the CIS parsing of the 16-bit PC Card to be much more verbose and include a complete CIS dump. FILES
/dev/pccard0.cis This exclusive-use device will report all the CIS chains present in a PC Card, if a 16-bit PC Card is inserted in the slot. Only one user at a time may access the CIS. The CIS is presented as the relevant byte stream from the PC Card. For CIS tuples in Attribute Memory (the default), only the even locations are presented (the ODD locations are undefined per the standard). For CIS tuples in Common Memory, every byte is presented to the user. Decoding of the CIS tuples is done via a userland program. All tuples are presented to the user. SEE ALSO
cardbus(4), pccbb(4) PC Card Standard, Release 8. BSD
July 9, 2002 BSD
All times are GMT -4. The time now is 02:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy