10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello all,
I have a large csv file where there are four types of rows I need to merge into one row per person, where there is a column for each possible code / type of row, even if that code/row isn't there for that person.
In the csv, a person may be listed from one to four times... (9 Replies)
Discussion started by: RalphNY
9 Replies
2. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Write a command line that will display a sorted list of logged in users. Just display the username and no other... (5 Replies)
Discussion started by: kofine05
5 Replies
3. UNIX for Advanced & Expert Users
Hi,
I copied the contents of a binary file into a .text file using hd (hexdump) command. The data in binary file is such that I get in many places like following
00000250 00 00 00 00 3f 2d 91 68 3f 69 fb e7 00 00 00 00 |....?-.h?i......|
00000260 00 00 00 00 00 00 00 00 00 00 00 00 00... (2 Replies)
Discussion started by: KidD312
2 Replies
4. Shell Programming and Scripting
I have a sorted list (python) and I want to insert a string if it matches the pattern in list.
Example :
Sorted List
Above list is in sorted order. I need to insert a name in sorted order and also if the name already exist then it should be inserted before the existing... (1 Reply)
Discussion started by: pratapsingh
1 Replies
5. Shell Programming and Scripting
I have two list....
One has 17m (yes that's million) records in it which relate to the path and file name of individual text files.
At the start of the pathname is a two character identifier identifying which category it belongs in as identified by a second file with the two character lookup... (10 Replies)
Discussion started by: Bashingaway
10 Replies
6. Shell Programming and Scripting
Hi,
i have to make a command in unix system which make a sorted list by cpu time (not %cpu ). If the application exists more than a time I would like to keep only one copy.
Could you help me please ???
P.s : I am trying --> ps aux --sort -%cpu | uniq
but I understand that is wrong (5 Replies)
Discussion started by: petros55
5 Replies
7. Shell Programming and Scripting
Hi,
I want to insert some lines in between the contents of a file but the file format should not be changed.
#!/usr/bin/sh -
# Link appropriate OS specific versions of vxicap and vxchk4badblks
vxlvmlink()
{
vxipath=/usr/lib/vxvm/bin
relmajor=`uname -v`
... (1 Reply)
Discussion started by: ajilesh
1 Replies
8. Shell Programming and Scripting
Hi folks,
i need to insert the same set of lines between each line
input lines
111111
aaaaaa
333333
output should be
111111
1
2
3
aaaaaa
1
2
3
333333
1 (2 Replies)
Discussion started by: Balaji Sukumara
2 Replies
9. UNIX for Dummies Questions & Answers
Hello Friends,
I have a file with many many rows and I want to insert some numbers in between numbers.
The number must be inserted in "correct sorted order".
1. Input = 1055555
0000001
1000000
1055555 <-insert here
3000000
4000000
5000000
8000000
2. Input = 4000080
0000001... (1 Reply)
Discussion started by: buddyme
1 Replies
10. Shell Programming and Scripting
I'm trying to execute a single shell command that will give me a sorted list of all the users currently logged into the system, displaying the users name as it appears in /etc/passwd.
I've tried
awk -F: '{print $1}' /etc/passwd | xargs finger -s | cut -c11-28 | uniq
This list whoever does... (7 Replies)
Discussion started by: kungfuice
7 Replies