Search Results

Search: Posts Made By: mukesh.lalwani
4,523
Posted By mukesh.lalwani
Simple Variable substitution in ksh not working
Hi Gurus,
Not able to catch what's going wrong here. I just want to get output as "tree".

server:/mk/app/nexapp $ echo $SHELL
/usr/bin/ksh
server:/mk/app/nexapp $ export db_name1="tree"...
1,914
Posted By mukesh.lalwani
The split is taking more time. And I've...
The split is taking more time.
And I've embedded two logics in splitting the file. Only one logic i.e. based on number of lines, is shown here.
The other logic is to check a column for a specific...
1,914
Posted By mukesh.lalwani
Split using AWK - out file name control
Hi Gurus,
I am using following code to split a big file into pieces.
awk '!((NR-1)%ln){close(f);f=name i++}{print>f}' i=1 name=my_file ln=25000 main_file
The output that is produces is something...
8,111
Posted By mukesh.lalwani
Its ascii text file.
Its ascii text file.
8,111
Posted By mukesh.lalwani
Thanks Scrutinizer it worked :)
Thanks Scrutinizer
it worked :)
8,111
Posted By mukesh.lalwani
Split is taking a lot of time, so I wanted to...
Split is taking a lot of time, so I wanted to check with awk. Also the output of split is suffixed with aa, ab, ac ... which is not desired, so I need to rename all after splitting.
Dear Scrutinizer...
8,111
Posted By mukesh.lalwani
Thanks guys. I understood the concept. But this...
Thanks guys. I understood the concept. But this is ending up in error -
awk: syntax error at source line 1

awk '!(NR%2500){i++;}{print > "f"i;}' i=1 file context is
!(NR%2500){i++;}{print >...
8,111
Posted By mukesh.lalwani
awk for splitting file in constant chunks
Hi gurus,
I wanted to split main file in 20 files with 2500 lines in each file. My main file conatins total 2500*20 lines. Following awk I made, but it is breaking with error.
awk '{ for (i = 1; i...
Showing results 1 to 8 of 8

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