Search Results

Search: Posts Made By: rishigc
27,483
Posted By rishigc
Generating a Random String of 'n' length
Hi,

How can I generate a string of random characters (alpha+numeric) of a particular length ?

For e.g. for
n=5, output = 'kasjf'
n=10, output = 'hedbcd902k'

Also, please let me know if...
4,952
Posted By rishigc
Thanks @MadeInGermany. Shouldn't I be also...
Thanks @MadeInGermany.

Shouldn't I be also including \n in the command ? Otherwise wouldn't it qualify every line in the file to have non-print character since newline is also a non-print...
2,175
Posted By rishigc
@MadeInGermany - Thanks for your suggestion. The...
@MadeInGermany - Thanks for your suggestion. The 2nd solution is simple and effective :-) I will pursue the same...

However, one question - Why doesn't redirecting the output to a file not alter...
2,175
Posted By rishigc
Correctly evaluating the exit status
Hi,

I am running a bteq command in UNIX and I want bteq output to be displayed on stdout and also be logged to a file using unix 'tee' command. Also I intend to check the bteq return code and take...
4,952
Posted By rishigc
Redirecting records with non-printable characters
Hi Vgersh99,

Will the command suggested by you also redirect rows containing linefeed, carriage-return and tabs ?

grep -v '[[:print:]]' myFile >nonPrintFile

I do not intend to redirect rows...
4,952
Posted By rishigc
Redirecting records with non-printable characters
Hi,

I have a huge file (50 Mil rows) which has certain non-printable ASCII characters in it. I am cleaning the file by deleting those characters using the following command -

tr -cd...
Showing results 1 to 6 of 6

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