10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I saw this problem on one of the forum and solved it using group-by in oracle sql, though I am a bit curious to implement it using shell script :
There is a file having number of operations :
operation3,13288... (11 Replies)
Discussion started by: mukulverma2408
2. Shell Programming and Scripting
I want to know if there is any simple approach to SUM a field based on group by of different fields
file1.txt contains below data
20160623|XXX1||25.00||25.00|MONEY|Plan1|... (3 Replies)
Discussion started by: cnu_theprince
3. Shell Programming and Scripting
I have text file as shown below.
root 25 oracle 25 batch 30 griduser 32 admin 35
root 25 oracle 25 batch 30 griduser 32
oracle 25 batch 30 griduser 32 xuser 45 admin 35
I want to group by based on user name, and the output need to be as below. Not necessary the username to be... (10 Replies)
Discussion started by: baladelaware73
4. Shell Programming and Scripting
I have a shell script (.sh) and I want to pass a parameter value to the awk command but I am getting exception, please assist.
echo "My id is $1"
echo "I want to sync for user account $id"
##awk command I am using is as below
cat $diff | awk... (2 Replies)
Discussion started by: Ashunayak
5. Shell Programming and Scripting
I have a following file:
#Description: Allow users to login in to Impact, start and stop service... (5 Replies)
Discussion started by: dbashyam
Hi, I want to read a file from the command line and remove all the spaces, tabs in it, replacing it with comma(,), and write it to a new file. can you help me out with this scenario. (1 Reply)
Discussion started by: sudhanshu12788
7. Shell Programming and Scripting
I need help to split lines from a file into multiple files.
my input look like this:
23 45 45 6 7
33 44 55 66 7
34 5 6 7 87
45 7 8 8 9
44 55 66 77 8
44 66 88 99 6
I want to split every 3 lines from this file to be written to individual files. (3 Replies)
Discussion started by: saint2006
8. Shell Programming and Scripting
I am having 1800 files in a directory with a specified format, like
amms_850o_prod.000003rvx... (12 Replies)
Discussion started by: atlantis
9. Shell Programming and Scripting
The question may look very silly by seeing the title, but please have a look at it clearly.
I have a text file where the first 5 columns in each row were supposed to be attributes of a sample(like sample name, number, status etc) and the next 25 columns are parameters on which... (3 Replies)
Discussion started by: ks_reddy
10. Shell Programming and Scripting
Many of my servers' /etc/group file have many userid's that does not exist in /etc/passwd file and they need to be deleted.
This happened due to manual manipulation of /etc/passwd files.
I need to do this for 40 servers.
Can anyone help me in achieving this? Even reducing a step or two will be... (6 Replies)
Discussion started by: pdtak