Search Results

Search: Posts Made By: kingofprussia
4,270
Posted By kingofprussia
That is correct Frank.
That is correct Frank.
4,270
Posted By kingofprussia
Removing double quotes in a file
Hi All,

I have a tab delimited file where each of the strings have double quotes.

The problem is that I have records which are in the following format:

"TEXAS" ""HOUSTON"" "123" "" ...
4,117
Posted By kingofprussia
Delete the last modified file
Hi All,

I have the following script to delete the last modified file in a directory.

#!/bin/ksh

if file in $(ls -t /home/KOP/Purge | head -1)
then
rm -f $file
fi

But I keep getting...
1,511
Posted By kingofprussia
concatinating data
Hi All,

I have a file penn.txt which has the following data:

hello

I wish to append a sting to this file so that data in the file would be represented as:

hello%%%

Any help on this is...
3,358
Posted By kingofprussia
Counting number of occurences
Hi All,

I have to count the number of occurences of the character " ; " in a given line.

I had used the following awk command to achieve the same

echo $KOP.dat|awk '{split($1,my,";");...
12,585
Posted By kingofprussia
Split data into multiple lines
All,

I have a requirement where I will need to split a line into multiple lines.

Ex:

Input:

2ABCDEFGH2POIYUY2ASDGGF2QWERTY

Output:

2ABCDEFGH
2POIYUY
2ASDGGF
2QWERTY

The data...
2,101
Posted By kingofprussia
Shell, Thanks for the reply. Is there...
Shell,

Thanks
for the reply.

Is there any way I could parameterize the value (ie. the value 3) in the above step.

Thanks
KP
2,101
Posted By kingofprussia
How to grep at a given postion
All,

I need to grep for a value between particular positions:

Eg:

ACME CORPORATION 3 213.89

I need to look out for the value 3 betwen postions 20 and 26.

Any ideas....
3,836
Posted By kingofprussia
I tried grep at the command line and it displays...
I tried grep at the command line and it displays as two differnt lines.

I have no clue as why it it displays as a single line.
3,836
Posted By kingofprussia
Thanks for the reply, I did check the input...
Thanks for the reply,

I did check the input file ABC.txt and there was no problem with it.

--KP
3,836
Posted By kingofprussia
Display multiple output lines
All,

I have a file ABC.TXT which has two records:

12345 19.93 34.94
12345 94.84 10.48


If do the following command and

grep '12345' ABC.TXT >> test1.txt

If I look at...
1,787
Posted By kingofprussia
Comparing two files
I have two files:

GROCERIES.TXT

ABC 123 73837

SHOPPERS.TXT

ABC 123 73837

How can I compare and print that the output in the files is the same.
...
35,539
Posted By kingofprussia
Grep on multiple parameters
All,

Is is possible to grep on two parameters in a file:

ex: If data in a file(GROCERIES.TXT) were like this

ABC GROCERIES 38-904949 16 987.89


Then grep would be
...
65,991
Posted By kingofprussia
I had earlier used du -sk Filename.txt ...
I had earlier used

du -sk Filename.txt

The output was ===>

3 Filename.txt

I have to only output 3 not the filename.


Thanks
KOP
65,991
Posted By kingofprussia
Extracting only file size of the ls -ltr command.
All,

I only need to get the file size when I do an ls -ltr filename.txt

Could you give me the exact syntax.

Thanks
KOP
7,597
Posted By kingofprussia
Running PL/SQL procedure via unix
All,

I have a 10g PL/SQL procedure that needs to be run via a unix script. How could such a script be developed.

Thanks
Aditya.
15,720
Posted By kingofprussia
Triml leading zeros in unix
Hi All,

How does one trim leading zero's in unix

Thanks
KP.
Showing results 1 to 17 of 17

 
All times are GMT -4. The time now is 05:31 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy