10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a file that contains the schedule for a tournament with 41 teams. The team names have spaces in them. I would like to search for each teams schedule and then save that to that teams file
Team name: "Team Two"
I would like to search for all the games for "Team Two" and... (8 Replies)
Discussion started by: knijjar
2. Shell Programming and Scripting
I have written a C program to solve this problem but I am eager to know whether the same output can be obtained using sed or awk?
This is the input:
This is the output:
primetime (7 Replies)
Discussion started by: shoaibjameel123
3. UNIX for Dummies Questions & Answers
Consider my input string as "abc|b f g|bj gy"
I am expecting the output as "abc|bfg|bj gy".
Please let me know how to achieve this in unix?
Thanks (8 Replies)
Discussion started by: pandeesh
4. Shell Programming and Scripting
Fist post, so be kind... I have written an expect script which logs into a terminal and gathers several screens of information. Unfortunately the log file gives me all the special escape and control characters from the terminal. I am hoping to use a combination of shell scripting, sed,... (1 Reply)
Discussion started by: mpacer
5. Shell Programming and Scripting
I'm trying to eliminate multiple whitespaces from a file..
I must make use of shell script to eliminate whitespaces..
Take a look at the sample file
1 int main()
3 int a,b;
4 printf("Enter the values of a and b");
6 if(a>b) ... (6 Replies)
Discussion started by: abk07
6. Shell Programming and Scripting
I'm trying to use sed to remove the value of one field from another field. For example:
I would like to remove the email... (2 Replies)
Discussion started by: bribri87
7. Shell Programming and Scripting
I have a file, names(i) where each entry is 'first last' name. 'cat names' is fine. But in a shell script
>for file in $(cat names)
> echo $file
the first and last name appear on 2 lines. I have tried escaping and quoting the space but to no avail. The names are to be... (4 Replies)
Discussion started by: chuckmg
I am very new to C programming.
How could I write a C program that could count the characters, words, spaces, and punctuations in a text file?
Any help will be really appreciated. I am doing this as part of my C learning exercise.
Ajay (4 Replies)
Discussion started by: ajay41aj
9. Shell Programming and Scripting
I have searched and found various threads about removing spaces from a field within a text file. Unfortunately, I have not found exactly what I'm looking for, nor am I adept enough to modify what I've found into what I need.
I use the following command to remove the first line... (3 Replies)
Discussion started by: carriehoff
10. Shell Programming and Scripting
Retaining Spaces within a word
I have a 2 GB flat file which have unicode field, some of them are blanks and its size is 4000 character. In the existing system SED command removes the spaces.... (7 Replies)
Discussion started by: RcR