10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi
How do I print character after colon":"
below is input file
BUC1 : 33157147, BUC1 COUNT : 478455,BUC1 : 9930334.18
BUC2 : 1203100,BUC2 COUNT : 318678,BUC2 GIVEN : 3493491.59
BUC3 : 234567.99 expected output
33157147 478455 9930334.18
12031002 318678 3493491.59
234567.99 (10 Replies)
Discussion started by: scriptor
10 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I need to filter my data based on items in column 23. Column 1 until column 23 are tab separated. This is how column 23 looks like:
PRIMARY=<0/1:504:499,5:.:.:.:0.01:1:15:.>
I want to extract lines if items 7 (separated by : ) in column 23 are more than 0.25 . In example above , item... (2 Replies)
Discussion started by: janshamsani
2 Replies
3. Shell Programming and Scripting
I have entries like below in a file
11.22.33.44:80
22.33.44.55:81
:::587
:::465
What I need is to take out the part after colon ( : )
Output should be as follows.
80
81
587
465
I used cut -d: -f 2 but its not working as dedired. (2 Replies)
Discussion started by: anil510
2 Replies
4. Shell Programming and Scripting
There was a sample code on forum I found sometime back:
$ f() { local foo=; : ${foo=unset}; declare -p foo; }; f
declare -- foo=""
$ f() { local foo; : ${foo=unset}; declare -p foo; }; f
declare -- foo="unset"
Can someone explain why was colon (:) is being used here. Whats its use? (4 Replies)
Discussion started by: Rameshck
4 Replies
5. Shell Programming and Scripting
I have a file that contains timestamp in some of the rows in the file and the field separator is colon and some of the rows have numerical values, timestamp and characters with colon as the field separator
We are looking to change colon in HH:MI:SS for the timestamp to hyphen “-“ leaving the field... (1 Reply)
Discussion started by: cumeh1624
1 Replies
6. Shell Programming and Scripting
Hello All,
I was wondering if someone might know how to do this. I have a word list that is format like the example below. I need to take away the :number after that... is there some kind of command I could use to remove them?
123456:5562
password:1507
123456789:989
qwerty:877... (7 Replies)
Discussion started by: 3therk1ll
7 Replies
7. Shell Programming and Scripting
Although i tried multiple option i couldn't find a way to get the rigt ouput.
Say i have the following data
cat file.txt
C request
C response
C request
C response
The output should look like (9 Replies)
Discussion started by: varu0612
9 Replies
8. Shell Programming and Scripting
Hi Expert,
I need help on script to put colon between two characters.
From this line 60060160B18414009C557D9DE02CDF11
to this 60:06:01:60:B1:84:14:00:9C:55:7D:9D:E0:2C:DF:11
Any way to make it on script. (2 Replies)
Discussion started by: ranjancom2000
2 Replies
9. Shell Programming and Scripting
Hi guys,
This is my input
2735:<7001> 34 789 701 2
2774:<7001> 34 789 701 2
How to delete characters after colon :
Including colon : too ?
My output should... (3 Replies)
Discussion started by: gowrishankar05
3 Replies
10. Solaris
I want to know how to delimit a colon in a file name while scp ing from one host to other host. I used forward slash(\) but that is not working. (1 Reply)
Discussion started by: rogerben
1 Replies