10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have my data like below
Now I need to extract 1,2,4th columns
Output should be like
Am trying to use cut command but not able to get the results.
Thanks in advance. (4 Replies)
Discussion started by: weknowd
2. Shell Programming and Scripting
I'm stuck-up in finding a way to skip the delimiter which come within double quotes using awk or any other better option. can someone please help me out.
Below are the details:
Sample data: 742433154|"SYN|THESIS MED CHEM PTY.... (2 Replies)
Discussion started by: BrahmaNaiduA
3. Shell Programming and Scripting
suppose a string:
and i want to get the file name without the path.
however, different files have different paths, therefore the number of delimiter is uncertain.
thanks so much! (3 Replies)
Discussion started by: sunnydanniel
4. Shell Programming and Scripting
I want to write a shell script that will split a string with no delimiter.
Basically the script will read a line from a file.
For example the line it read from the file contains:
These values are never the same but the length will always be 8.
How do i split this... (8 Replies)
Discussion started by: saint34
5. Shell Programming and Scripting
The log reads as follows.
how do i extract only fname and save it in an array
similarly for lname and so on
i tried reading a file and cutting each... (5 Replies)
Discussion started by: vkca
6. Shell Programming and Scripting
I want to extract the integers from the each line, each line may have 2 or more integers.
The following command is appending each integers.
echo "Hi I am 100, my friend is 500, his friend is 423" | sed "s///g"
I need to have delimiter "|" between the integers. If anyone... (18 Replies)
Discussion started by: sarwan
7. Shell Programming and Scripting
I have lines like this
a=1, b=2, c=3,
a=1, d=4, e=5, b=225,
I need to extract the b=nnn... value. I dont know how many other entries will be before and after it in each line. Ive tried a basic line like
awk '/b=/, $NF ~ /,/ ' myfile.txt
but I think that it doesnt care which comma it... (5 Replies)
Discussion started by: rebelbuttmunch
8. Shell Programming and Scripting
I need to get the delimiter "-" count in a particular string.
the delimit "-" count is 5 .
Using sed or awk can I know the count ?
I have seen how to get the count for delimiter in a file but not a string :(
Priya (8 Replies)
Discussion started by: priyam
9. UNIX for Dummies Questions & Answers
I am new to unix scripting, please help me in solving this assignment..
I have a scenario, as follows:
1. i have a text file(read1.txt) with the following data
2. I have to write a unix... (6 Replies)
Discussion started by: G.K.K
10. Shell Programming and Scripting
i have a function
echo QManager Name $1
echo Cluster Name$2
if (( $count != 0 && $count != 1 ))
... (0 Replies)
Discussion started by: satish@123