Search Results

Search: Posts Made By: icefish
6,227
Posted By icefish
Text to xlsx conversion
Hi Guys,
The code snippet below is working fine with xls 2003 but the same is not working in xlsx 2007. Can someone please help.

#Convert .txt file format to .xls format
awk 'BEGIN{
FS="|"...
3,174
Posted By icefish
Thanks Johnson the double quote substitution...
Thanks Johnson the double quote substitution worked.
3,174
Posted By icefish
find command in shell script
Hi,
dirs.conf fine contains below data

/a/b/c/dir1|50
/a/b/c/dir2|50
/a/b/c/dir3|50


In a shell script I do as below

while read file_rec
do
dir_name=`echo "${file_rec}" | cut...
12,347
Posted By icefish
Hi Srinivas, Thanks for the response. One...
Hi Srinivas,
Thanks for the response.
One more issue now.
All the leading zeros are truncated when converted to xls.
How do I preserve them?

Thanks
12,347
Posted By icefish
Hi Ygor, If the number of columns are more than...
Hi Ygor,
If the number of columns are more than 100, the above convert to html is not working.
Any solution if the columns are more than 100?

Thanks.
2,257
Posted By icefish
ps command input
Hi,
When we issue a ps command we get some output.
From where does this ps command take the input from?

Thanks in advance.
25,477
Posted By icefish
Actually I tared the file with absolute path like...
Actually I tared the file with absolute path like the command below
tar -cvf sam.tar /home/sam

Now I want to extract /home/sam/E1.txt in sam.tar to /home/ram

Please help.
25,477
Posted By icefish
Thanks. One more question Where will the...
Thanks.

One more question
Where will the singlefile.dat be extracted. I dont want to overwrite any existing file.
25,477
Posted By icefish
tar command help -- extract single file
Hi,
I want to view/display the contents of one file in tar file.
For example if the tar file is sam.tar.gz and one of the file inside is E1.txt, how do i view the contents of this E1.txt file.
...
7,712
Posted By icefish
Thanks all, I got it. Have a nice weekend.
Thanks all,
I got it.
Have a nice weekend.
7,712
Posted By icefish
I think I found the error. Thanks all for the...
I think I found the error.
Thanks all for the great help and inputs. really appreciate all.

One final question
how to remove all chars except numbers in a variable inside awk?
example
FED_ID =...
7,712
Posted By icefish
#set -x nawk '{ ...
#set -x

nawk '{
split($0,arr1,"|")

ENTITY_TYPE = arr1[2]
if (ENTITY_TYPE ~ "O"){
ENTITY_TYPE = "B"
}
...
7,712
Posted By icefish
Can someone please help me on this? Its kind of...
Can someone please help me on this?
Its kind of urgent..

Thanks a lot in advance.
7,712
Posted By icefish
I have changed the script to use awk only ...
I have changed the script to use awk only
example

awk -F "|" '{

#ENTITY_TYPE=`print "$line" | cut -d'|' -f2 | awk '{gsub(/^[ \t]+|[ \t]+$/,"");print}'`
...
7,712
Posted By icefish
Sure vgersh99, I will do that from next time. ...
Sure vgersh99,
I will do that from next time.
Can you please give code for doing that?

Thanks & Regards,
7,712
Posted By icefish
example of line COL001 | P ...
example of line
COL001 | P | 2007-02-01-00.00.00.000000 | | sam | babu | ...
7,712
Posted By icefish
example how to write below line inside awk ...
example
how to write below line inside awk
ACCOUNT_DATE_OPEN=`print "$line" | cut -d'|' -f3 |sed 's/[^0-9]//g' | awk '{gsub(/^[ \t]+|[ \t]+$/,"");print}' | cut -c1-8`
7,712
Posted By icefish
vgersh99, can you please let me know how to use...
vgersh99,
can you please let me know how to use
cut and sed inside awk program?

Thanks & Regards
7,712
Posted By icefish
shell script performance issues --Urgent
I need help in awk please help immediatly.

This below function is taking lot of time
Please help me to fine tune it so that it runs faster.
The file count is around 3million records

# Process...
Showing results 1 to 19 of 19

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