10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
i want to write a shell script read below file line by line and want to exclude the lines which contains empty value for MOUNTPOINT field.
i am using centos 7 Operating system.
want to read below file.
# cat /tmp/d5
NAME="/dev/sda" TYPE="disk" SIZE="60G" OWNER="root"... (4 Replies)
Discussion started by: balu1234
2. UNIX for Beginners Questions & Answers
I have an issue to print files based on file name
my input file
every file consist of list of number, for ex 20170516_WATERSONGS.txt
7281372821958... (3 Replies)
Discussion started by: radius
3. Shell Programming and Scripting
I have to fish out some specific columns from a file based on the header value. I have the list of columns I need in a different file. I thought I could read in the list of headers I need,
# file with header names of required columns in required order
# read contents... (11 Replies)
Discussion started by: LMHmedchem
4. Shell Programming and Scripting
In the file below I am trying to extract a specific instance of path, if the adjacent plugin": "/rundb/api/v1/plugin/49/. Thank you :).
"path": "/results/analysis/output/Home/Auto_user_S5-00580-4-Medexome_65_028/plugin_out/FileExporter_out.52", "plugin": "/rundb/api/v1/plugin/49/",... (8 Replies)
Discussion started by: cmccabe
5. UNIX for Dummies Questions & Answers
I am writing a script which will get the input from a combinations of awk commands and using counters and loop I am generating a dynamic values and passing the output to a file using print -u3 options, now instead of redirecting the output to a file how can the output be created in the same... (3 Replies)
Discussion started by: shruthidwh
6. Shell Programming and Scripting
Thanks all for the continued support so far.
Today, I need to find the most occurring string/number(also called mode in statistics terminology) for each column in a data file (.csv type).
For one column of data(1.txt) like below
I can find the mode... (6 Replies)
Discussion started by: ks_reddy
7. UNIX for Dummies Questions & Answers
I have a text file with a list of items/patterns:
ConsensusfromCGX_alldays_trimmedcollapsedfilteredreadscontiglist(229095contigs)contig34624... (1 Reply)
Discussion started by: Oyster
8. Shell Programming and Scripting
If I have the following:
and want to print the first column based on the uniqe value of the second column, so the output would be something like:
how would I do that, using AWK and the piping technique?
Thanks in advance (12 Replies)
Discussion started by: Abdulelah
9. Shell Programming and Scripting
Can some one provide me a shell script.
I have file with many columns and many rows. need to sort the first column and then remove the duplicates records if exists.. finally print the full data with first coulm as unique.
Sort BASED ON FIRST FIELD and remove the duplicates if exists... (2 Replies)
Discussion started by: tuffEnuff
10. Shell Programming and Scripting
Hi, I am new to this unix world.
Any ways, I would like to write a shell script that can print the file name.
directory will have 5 files with different name.No matter what are contents are.
Now I need to find the file which will have particular name (sub string ).Please do not... (5 Replies)
Discussion started by: akb2010