Search Results

Search: Posts Made By: RcR
6,165
Posted By RcR
Creating a multidimensional array of subdirectories and its contents
Try this...

find . -type d -depth -print | grep -v ^.$ | cpio -pd /path

This command will find all subdirectories under current path and create the same under specified path

/Rajiv
11,608
Posted By RcR
Retaining spaces between words
Hi Deepak,

You should have to change the delimiter, in my case delimiter was pipe '|' so you should change OFS="|" with whatever delimiter you have.

Thanks,
Rajiv
11,608
Posted By RcR
Retaining spaces between words
Yes, I was able to achieve it....

here is the command....

cat filename | awk 'BEGIN{FS=OFS="|"} {for(i=1;i<=NF;i++)gsub("(^[[:space:]]*)|([[:space:]]*$)","",$i)};1' | awk 'NF > 0' >...
15,379
Posted By RcR
Issue with cat command
Porter,

I do agree with you. But still how far can we tune to speed up the process. Becuase of this file appending, whole load time is impacted. Let me know if you have any other thoughts on...
15,379
Posted By RcR
Issue running cat command
MatrixMadan,

I tried running your script, but perl component is not available. I am getting error as "Perl not installed".

Thanks,
Rajiv
15,379
Posted By RcR
Issue with Unix cat command
Matrixmadan,

We are currently using cat command to combine files, basically appending files together into a single file.

cat file1 file2 file3 .....file 100 > final_file

I tried creating...
15,379
Posted By RcR
Issue with Unix cat command
Hi Experts,

I am finding the performance of cat command is very wierd, it is taking more time to merge the files into a single file. We have a situation where we would be merging more than 100...
11,608
Posted By RcR
Retaining spaces within words
Denn,

It is eliminating all the spaces that exists between the words.

eg., if I have a data like this

"Rajiv | Rajiv Rajiv Rajiv |Rajiv Rajiv"

...
15,027
Posted By RcR
Retaining timestamp on copy of a file
use the following command

touch -r <oldfilename> <newfilename>

Thanks,
Rajiv
11,608
Posted By RcR
Retaining spaces between words
Retaining Spaces within a word

--------------------------------------------------------------------------------

Hi Experts,

I have a 2 GB flat file which have unicode field, some of them...
2,154
Posted By RcR
Retaining Spaces within a word
Hi Experts,

I have a 2 GB flat file which have unicode field, some of them are blanks and its size is 4000 character. In the existing system SED command removes the spaces. Because of this...
Showing results 1 to 11 of 11

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