![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| AWK - if last line/record do something | PacificWonder | Shell Programming and Scripting | 3 | 06-05-2008 11:13 PM |
| Need to serach if a new line character exists on the last line in a file | sunilbm78 | UNIX for Dummies Questions & Answers | 10 | 02-29-2008 02:15 PM |
| Showing an extra record/line | srivsn | Filesystems, Disks and Memory | 1 | 05-06-2006 09:35 AM |
| Finding character position in file | dhananjaysk | Shell Programming and Scripting | 5 | 03-23-2006 11:49 AM |
| how to extract last line in record | bjorb | Shell Programming and Scripting | 7 | 10-18-2005 02:12 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Finding a character in first line of a record
HI,
I am pretty new to Unix scripting. I will need help in Finding a character in first line of a file or a set of files. The scenario is as follows: Lets consider a set of files which is having a character "ID"(without quotes) in the first line of each file.I need to find this character in the first line of each file and if the result of this is positive then i have to say echo"ID found in file" otherwise echo "ID not found in the file" Can anyone help me with this. I will be very Gratefull ![]() Thanks, Sandy |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|