Search Results

Search: Posts Made By: Nishi_Licious
3,199
Posted By Nishi_Licious
Wow! Looks so workable. Now I'm tempted into...
Wow! Looks so workable. Now I'm tempted into using it (after almost pledging to Corona that i'll not go that way!) :D

Thanks RDRTX1!
3,199
Posted By Nishi_Licious
Yeah you're right. I'm actually trying to...
Yeah you're right. I'm actually trying to complicate something by using an array which can otherwise be done using awk alone (if I could, in the correct way). But I intend to abandon that method as I...
3,199
Posted By Nishi_Licious
Thanks Corona. But it looks like I wasn't quite...
Thanks Corona. But it looks like I wasn't quite clear about what I wanted.

I have an array that I want to pass to awk as an argument, maybe to go in the -v variable. All I know is the variable...
7,623
Posted By Nishi_Licious
Thanks, but I guess I'm missing something..
Hey Elixir!

Thanks for that. But I'm pretty confused with the pipe you've used on the first line of the code and then later for the split. Help me understand if you use this pipe to append at the...
3,199
Posted By Nishi_Licious
Can -v option in awk be used to store an array of variables?
I want to pass an array of variables to be inserted by awk in the 2nd column of a file.


Empl No. Employee Age
1000000 22
1100000...
7,623
Posted By Nishi_Licious
What I gave above is the output i want. The...
What I gave above is the output i want.

The input is like this: Key1 Key2 Key3 102 30 0 102 40 1 102 50 ...
2,733
Posted By Nishi_Licious
There could be a better way to this..but you can try if this works..
for i in `ls $PWD`
do
cat $i > $i.html
new_file=`echo $i.html | awk -F"." '{print $1"."$3}'`
mv $i.html $new_file
done
7,623
Posted By Nishi_Licious
Read column values from previous and next line using awk
Hi,

I have a csv file which contains data that looks something like this:

Key1 Key2 Key3 New_Key1 New_Key2 New_Key3
102 30 0 - - -
102 40 ...
Showing results 1 to 8 of 8

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