10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
my input file content is like this
GEFITINIB 403 14 -4.786873 -4.786873 -1.990111 0.000000 0.000000 -1.146266 -39.955912 483
VANDETANIB 404 21 -4.754243 -4.754243 -2.554131 -0.090303 0.000000 -0.244210 -41.615502 193
VANDETANIB 405 21 -4.737541 -4.737541 -2.670195 -0.006006 0.000000 -0.285579... (4 Replies)
Discussion started by: chandu87
4 Replies
2. Shell Programming and Scripting
Hi,
I need to search a file for a pattern,replace some other word and write a word at its 72nd position.
For example,
My name is Mano.Im learning Unix.
I want to search the file in all lines containing the word "Mano".In that matched line,replace the word "Unix" with "Java".And... (5 Replies)
Discussion started by: mano1 n
5 Replies
3. Shell Programming and Scripting
Hi people,
I have a file status.txt:
Following 6 ports are totally or partially unavailable:
------------------------------------------------------------
MOD LINK PORTNAMES STAT1 STAT2 STAT3 SYN TYPE
------------------------------------------------------------
8 Pr37 ... (12 Replies)
Discussion started by: gc_sw
12 Replies
4. UNIX for Dummies Questions & Answers
Hi my unix friends,
How do I grep a word and next line with solaris 10.
tnx
Mehrdad
---------- Post updated at 03:17 PM ---------- Previous update was at 03:09 PM ----------
I found this one:
cat <file_name> | awk '/<seek_word>/ {print;getline;print}' (3 Replies)
Discussion started by: mehrdad68
3 Replies
5. Shell Programming and Scripting
hello everyone,
I'm trying to learn some scripts but i cant get my head around two of them.
1. how can i write a script that will count the number of times a particular word is used in file?
2. how can i make a script that will take me to a web page from unix?
if anyone could help it... (3 Replies)
Discussion started by: BigTool4u2
3 Replies
6. Shell Programming and Scripting
Hi all,
I'm a noobie at shell scripting (and Linux) with no experience on programing.
I'm trying to create a script that will download my xml calendar from Google, process it in the format and dump it into $HOME/.calendar/calendar.
Eg:
April 10 Event
I'm having a hard time using... (4 Replies)
Discussion started by: victorbrca
4 Replies
7. Shell Programming and Scripting
for example:
searches only for single word
for single word
this is line three
match=$(grep -n -e "single" data.txt)
this command will stored "..... single ...... single" into search.
how can i grep the single word just from line 2 only?? (3 Replies)
Discussion started by: blurboy
3 Replies
8. UNIX for Dummies Questions & Answers
Hi there,
Is there a way to grep a word from a line and display only the words beginning from the search word? Say I have a file named file.txt that contains below:
I am a file
Hello there Reader Orbix
I hope you feel good today
What I want is to grep the word "there":
$ grep "there"... (2 Replies)
Discussion started by: Orbix
2 Replies
9. Shell Programming and Scripting
hi,
how to print a row which contains a perticular word in its third column using grep, cut,
or any thing else.
thanks (2 Replies)
Discussion started by: useless79
2 Replies
10. Shell Programming and Scripting
Greetings.
I am struggling with a shell script to make my life simpler, with a number of practical ways in which it could be used. I want to take a standard text file, and pull the 'n'th word from each line such as the first word from a text file.
I'm struggling to see how each line can be... (5 Replies)
Discussion started by: tricky
5 Replies