Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
if word exit in the file
Name: lndsey Date: February 25, 2008 at 09:15:11 Pacific OS: unix/linux CPU/Ram: none Product: none
Comment:
I am trying to wite shell script and running into little trouble. I need to find a particular word in the file, then copy that file into a different folder. I can find the word in the file, but having problem on how to return status if find it or not. Maybe an if/else statement to see if word exit in the file. Any suggestion or recommendation is appricated. Thanks in advance.
Summary: All, I have a sequence of files that are generated from several hosts (ABC, DEF ... XYZ). File name has following format. ABC_030114_0010.0000 ABC_030114_0113.0001 .... ... ABC_030114_2358.0138 These ...
Summary: Hi, in the test file below there are 2 columns, 1st column followed by a comma ',' and then the 2nd column starting with a ". the 2nd column can have a list of words. I need a script that will check ...
Summary: you say "wordcount" but also say "wc -l" do you want words or lines? if you want words, are there a different number of words in each line in the file? ...