Search Results

Search: Posts Made By: ni2
1,137
Posted By ni2
This may not be very elegant but with sed and awk...
This may not be very elegant but with sed and awk

echo "abc,def,ghi,jkl" | sed 'y/,/\n/;' | awk 'NR%2==1'sed (GNU sed) 4.2.2
GNU Awk 4.1.1
1,018
Posted By ni2
Are some numbers are missing from your output? ...
Are some numbers are missing from your output?

$ sort -u -r -n <input file>
415550 0.21
335550 0.28
315550 0.28
215650 0.28
130650 0.22
125550 0.28
122850 0.22
120650 0.22
105550 0.28...
4,029
Posted By ni2
man chmod ~/case$ tree . ├── 1 │ ├──...
man chmod

~/case$ tree
.
├── 1
│ ├── file.sh
│ └── file.txt
├── 2
│ ├── file.sh
│ └── file.txt
└── 3
├── file.sh
└── file.txt
~/case$ chmod -c -R 744 {1..3}/*.txt
mode...
Forum: What is on Your Mind? 02-24-2014
2,538
Posted By ni2
The Moth and the World Science Festival Present...
The Moth and the World Science Festival Present George Lombardi (https://www.youtube.com/watch?v=vD9RI2Bm69U)
A young doctor is whisked halfway across the globe to care for an ailing international...
Forum: What is on Your Mind? 01-15-2014
978
Posted By ni2
Net Neutrality
Hi,

Just wanted to know your opinion on this

What you need to know about the court decision that just struck down net neutrality &mdash; Tech News and Analysis...
Forum: What is on Your Mind? 05-08-2013
1,094
Posted By ni2
Place your bits! - Who will win 2012-2013 NBA Playoffs?
These are the last 8 teams left.

Who will win 2012-2013 NBA Playoffs?
1. Oklahoma City Thunder
2. Memphis Grizzles
3. Golden State Warriors
4. San Antonio Spurs
5. Miami Heat
6. Chicago...
Forum: What is on Your Mind? 05-06-2013
1,621
Posted By ni2
Computer + Refrigerator
Computer + Refrigerator
Forum: What is on Your Mind? 05-02-2013
1,209
Posted By ni2
Place your bits! - Who will win the 2012–13 UEFA Champions League?
The semi-finals have just finished. It will be an all German affair. This will be the first time in the history of the Champions League (and European Cup) that the final is contested between two...
4,018
Posted By ni2
with join join -1 3 -2 2 -o "1.1 1.2 2.2 2.3"...
with join
join -1 3 -2 2 -o "1.1 1.2 2.2 2.3" file1 file2

Sorry, this only looks at the 3rd field in file1 and the 2nd field in file2. Not what the OP wanted.
Forum: What is on Your Mind? 01-23-2013
1,265
Posted By ni2
Place your bits - Who will win the 2013 Australian Open (Men)
The last quarter final was played today. I have added this event here
(https://www.unix.com/bitsclub.php?do=sportspool)
Who will win the 2013 Australian Open (Men)?

R. Federer
A. Murray
N....
Forum: What is on Your Mind? 11-06-2012
1,303
Posted By ni2
Place your bits - IAAF World Athlete of the Year 2012 (Men)
Hi,

The IAAF Athlete of the Year award (http://en.wikipedia.org/wiki/IAAF_World_Athlete_of_the_Year) is a prize that can be won by athletes participating in events within the sport of athletics...
Forum: What is on Your Mind? 10-04-2012
1,445
Posted By ni2
Place your bits - ICC World Cup Twenty20 (Cricket)
Who will win ICC World Cup Twenty20

These are the last four teams.

Sri Lanka
Pakistan
Australia
West Indies

There is an open event (https://www.unix.com/bitsclub.php?do=sportspool) in the...
Forum: What is on Your Mind? 09-05-2012
1,205
Posted By ni2
Place your bets! - Ryder Cup 2012 (Golf)
Who will win the 2012 Ryder Cup.

Europe vs USA

There is an open event (https://www.unix.com/bitsclub.php?do=sportspool) in the Event Prediction Forum. The event closes on 27th Sep 2012.

2012...
9,643
Posted By ni2
gawk $echo "05/23/2012 08:30:11.250 ...
gawk

$echo "05/23/2012 08:30:11.250
05/23/2012 08:30:15.500
05/23/2012 08:31:15.500" |
awk -v FS="[/:. ]+" '{MICRO=(mktime($3" "$1" "$2" "$4" "$5" "$6)*1000)+$7;
if (NR==1)
...
18,057
Posted By ni2
Here is what I tried. less FILENAME less...
Here is what I tried.

less FILENAME
less test.sh
#!/bin/bash

echo "Enter Username"
read Username

awk -F: -v var=${Username} '$0 ~ var {gsub(/foo/,"bar",$2); print}' FILENAME

bash...
1,826
Posted By ni2
Strange it worked for me. $awk '/Application :...
Strange it worked for me.
$awk '/Application : /{app=$3}/=== INCIDENT ==== / {print app}' file5
SPVP0005P.S. file5 has a copy of the data you posted.
14,043
Posted By ni2
I am currently on Ubuntu. I installed...
I am currently on Ubuntu.
I installed multitail using
sudo apt-get install multitail
Then tried it out
shell>multitail file1 file2
It displayed both files on the same terminal. There are...
Showing results 1 to 17 of 17

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