10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I want to find all the "," in my text file and then replace the commas to a tab. I found a script online but I don't know how to modify the script for my case. Any one can help? Thank you.
@echo off &setlocal
set... (2 Replies)
Discussion started by: forevertl
2. Shell Programming and Scripting
I have two files
input.txt has contents like
.src_ref 0 "call.s" 24 first
0x000000 0x5a80 0x0060 BRA.l 0x60
.src_ref 0 "call.s" 30 first
0x000002 0x1bc5 RETI
.src_ref 0 "call.s" 31 first
0x000003 0x6840 ... (2 Replies)
Discussion started by: acdc
3. Shell Programming and Scripting
Hi below is the input file, i need to find repeated words and sum up the values of it which is second field from the repeated work.Im trying but getting no where close to it.Kindly give me a hint on how to go about it
fruits,apple,20,fruits,mango,20,veg,carrot,12,veg,raddish,30... (11 Replies)
Discussion started by: 100bees
4. Shell Programming and Scripting
So I'm kinda new to shell scripts and the like. I've picked up quite a bit of use from browsing the forums here but ran into a new one that I can't seem to find an answer for.
I'm looking to parse/find a string AND the next 15 or so charachters that follow the string within a text file... (1 Reply)
Discussion started by: kar23me
5. Shell Programming and Scripting
Please, help me to write such script.
I have some text file with name filename.txt
I must check if this file contains string "test-string-first", I must cut from this file string which follows string "keyword-string:" and till first white-space and save it to some variable.
For... (3 Replies)
Discussion started by: optik77
6. Shell Programming and Scripting
Could you please help me out by solving teh below problem ?
I have a file with as below
source1 is file in which i have to place some code under the <head> tag in it.
What code i have to place in source1 is something like this "abcd.....<target1>... (5 Replies)
Discussion started by: Tasha_T
7. Shell Programming and Scripting
I need to extract data from a text file in which data has a pattern. I need to extract all repeated pattern and then save it to different files.
... (5 Replies)
Discussion started by: apjneeraj
8. Shell Programming and Scripting
I am using C shell. And i trying to delete repeated word.
and i wan store the output into a new file:
BLUE (6 Replies)
Discussion started by: vincyoxy
9. Shell Programming and Scripting
I need to search through all files with different file suffixes in a directory structure to locate any files containing a specific string (5 Replies)
Discussion started by: wrwelden
10. UNIX for Dummies Questions & Answers
I have a file in which a word is repeated more than one time and I want to know how many times it is repeated.
ex: if i repeated word 'guru' in 10 lines I can get the o/p as:
cat filename | grep -c 'guru'.
How ever if the word is repeated more than one time, then how can I... (4 Replies)
Discussion started by: gurukottur