Today (Saturday) We will make some minor tuning adjustments to MySQL.

You may experience 2 up to 10 seconds "glitch time" when we restart MySQL. We expect to make these adjustments around 1AM Eastern Daylight Saving Time (EDT) US.

Triming the data in a file.

Login or Register to Reply

Thread Tools Search this Thread
# 9  
awk '
        {X = 3 + int((NF-2) * rand())
         print $(X-2), $(X-1), $X
' file

These 2 Users Gave Thanks to RudiC For This Post:
# 10  
let me and try and come back

--- Post updated at 10:38 AM ---

superb ..! this is working as expected....a small three lines code doing this much operation is so nice.
Thanks Rudic
Login or Register to Reply

Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Mapping a data in a file and delete line in source file if data does not exist.
Hi Guys, Please help me with my problem here: I have a source file: 1212 23232 343434 ASAS1 4 3212 23232 343434 ASAS2 4 3234 23232 343434 QWQW1 4 1134 23232 343434 QWQW2 4 3212 23232 343434 QWQW3 4 and a mapping...... UNIX for Dummies Questions & Answers
UNIX for Dummies Questions & Answers
Triming spaces few columns
File contains 10 columns,i want trim the 2,4,10 columns using single unix command. Please suggest me how to do? Thanks... Shell Programming and Scripting
Shell Programming and Scripting
Putting two perl scripts together... triming whitespace off of recently parsed file
Thanks to people's help, I have composed a single line within a .sh script that Ports a file into a csv: perl -p -i -e...... Shell Programming and Scripting
Shell Programming and Scripting
Triming a string
Hi i have an input " load /appss/asdfas/... I want to take the string present between first / / i.e appss Input is "load /appss/asdfas/..." Expected output is appss Thanks in advance Ananth... Shell Programming and Scripting
Shell Programming and Scripting
Triming spaces for any variable
Hi, I want to trim the spaces on left side of the variable value. For eg: if it is 4 spaces followed by value, All the spaces on the left should be supressed. Easy but want it quickly. Regards, Shiv@jad... Shell Programming and Scripting
Shell Programming and Scripting

Featured Tech Videos