Sponsored Content
Top Forums Shell Programming and Scripting How to scan a file for literal, return 0 or 1 if found? Post 302129550 by bobk544 on Tuesday 31st of July 2007 12:07:07 PM
Old 07-31-2007
this site should hire you full time or set up some kind of Kudo's or donate button!
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

File Scan

Hi everyone , i m working on Sun solaris and i have a file "smsapp.cur" which has information like this paragraph given below , there are millions of such paragraphs From:923212802736 To:923222326807 logMessage: 07-04-08 17:34:29 Getting message topup from code page default in language English... (2 Replies)
Discussion started by: Dastard
2 Replies

2. Shell Programming and Scripting

Return a message when a file is not found

Hi there, I am writing a script to look for tmp log files that have not been access within the last 10 days. I am using the follwing command within the script: find /var/tmp -name *log -atime -9 ¦xargs What I would like to be able to do would be to display a message if there is no... (3 Replies)
Discussion started by: lodey
3 Replies

3. Shell Programming and Scripting

Scripting problem - when the file is not found i want it to return to the menu

when the file is not found i want it to return to the menu, however it carries out the next line when i hit a key I know its probably something simple can anyone help? here is my pause function: function pause(){ read -s -n 1 -p "Press any key to return to Menu . . ." echo } SCRIPT... (2 Replies)
Discussion started by: Alendrin
2 Replies

4. Shell Programming and Scripting

Bash: Reading out rows of a file into a dynamic array and check first literal

Hello, i have a file "Movie.ini" looking e.g. like follows * MOVIE A bla bla MOVIE B blubb blubb MOVIE C I'd like to read the file "Movie.ini" with cat and grep and check whether it includes the string MOVIE only with a '*' at the beginnig. By doing "cat Movie.ini| grep MOVIE... (14 Replies)
Discussion started by: ABE2202
14 Replies

5. Shell Programming and Scripting

bash: need to have egrep to return a text string if the search pattern has NOT been found

Hello all, after spending hours of searching the web I decided to create an account here. This is my first post and I hope one of the experts can help. I need to resolve a grep / sed / xargs / awk problem. My input file is just like this: ----------------------------------... (6 Replies)
Discussion started by: bash4ever
6 Replies

6. Shell Programming and Scripting

awk Help -- If match found return the count

Hi All, I need to get the count of records in the file, if the passing parameter matches with the list of records in the file. Below is my example source file: Test1.dat 20120913 20120913 20120912 20120912 20120912 20120912 20120912 20120913 20120913 20120912 In my script I am... (5 Replies)
Discussion started by: bbc17484
5 Replies

7. Shell Programming and Scripting

Avoid carriage return until ^M is found (CentOS 6, bash 4.1)

Hi everyone, I have the following contents in a text file (as seen when viewed using vim): one two three ^M four five six ^M seven eight nine ^M ten eleven twelve ^M (That is just a small portion of the file) How can I obtain the following result? one two three ^M four five six ^M seven... (2 Replies)
Discussion started by: gacanepa
2 Replies

8. UNIX for Dummies Questions & Answers

How to find a file based on pattern & return the filename if found?

Hi all, I am a newbie here. I have this requirement to find a file based on a pattern then return the filename if found. I created a script based on online tutorials. Though, I am stuck & really appreciate if anyone can have a quick look & point me to the right direction? #Script starts... (10 Replies)
Discussion started by: buster_t
10 Replies

9. Shell Programming and Scripting

Return first two columns if match found among two files

Hi, I have FileA with one column. File B with 15 columns separated by comma delimiter. I need to compare the FILEA value with all 15 columns of FILEB... if matches, need to return the 1st, 2nd column values of FILEB. How to achieve this through shell script? Thanks in advance. (5 Replies)
Discussion started by: vamsikrishna928
5 Replies

10. UNIX for Beginners Questions & Answers

Fgrep literal string from a file

have a file1 aaa-bbb-ccc-abcd aaa-bbb-ccc-bacd aaa-bbb-ccc-aaad aaa-bbb-ccc-ahave another file2 aaa-bbb-ccc-a fileusing the fgrep command, trying to have only the literal string returned. fgrep -f file2 file1 is returning aaa-bbb-ccc-abcd aaa-bbb-ccc-aaad aaa-bbb-ccc-aOnly looking for... (1 Reply)
Discussion started by: jimmyf
1 Replies
DateTime::Locale::aa(3) 				User Contributed Perl Documentation				   DateTime::Locale::aa(3)

NAME
DateTime::Locale::aa SYNOPSIS
use DateTime; my $dt = DateTime->now( locale => 'aa' ); print $dt->month_name(); DESCRIPTION
This is the DateTime locale package for Afar. DATA
This locale inherits from the DateTime::Locale::root locale. It contains the following data. Days Wide (format) Etleeni Talaata Arbaqa Kamiisi Gumqata Sabti Acaada Abbreviated (format) Etl Tal Arb Kam Gum Sab Aca Narrow (format) E T A K G S A Wide (stand-alone) Etleeni Talaata Arbaqa Kamiisi Gumqata Sabti Acaada Abbreviated (stand-alone) Etl Tal Arb Kam Gum Sab Aca Narrow (stand-alone) E T A K G S A Months Wide (format) Qunxa Garablu Kudo Ciggilta Kudo Agda Baxis Caxah Alsa Qasa Dirri Qado Dirri Liiqen Waysu Diteli Ximoli Kaxxa Garablu Abbreviated (format) Qun Nah Cig Agd Cax Qas Qad Leq Way Dit Xim Kax Narrow (format) Q N C A C Q Q L W D X K Wide (stand-alone) Qunxa Garablu Kudo Ciggilta Kudo Agda Baxis Caxah Alsa Qasa Dirri Qado Dirri Liiqen Waysu Diteli Ximoli Kaxxa Garablu Abbreviated (stand-alone) Qun Nah Cig Agd Cax Qas Qad Leq Way Dit Xim Kax Narrow (stand-alone) Q N C A C Q Q L W D X K Quarters Wide (format) Q1 Q2 Q3 Q4 Abbreviated (format) Q1 Q2 Q3 Q4 Narrow (format) 1 2 3 4 Wide (stand-alone) Q1 Q2 Q3 Q4 Abbreviated (stand-alone) Q1 Q2 Q3 Q4 Narrow (stand-alone) 1 2 3 4 Eras Wide BCE CE Abbreviated Yaasuusuk Duma Yaasuusuk Wadir Narrow Yaasuusuk Duma Yaasuusuk Wadir Date Formats Full 2008-02-05T18:30:30 = Talaata, Kudo 05, 2008 1995-12-22T09:05:02 = Gumqata, Kaxxa Garablu 22, 1995 -0010-09-15T04:44:23 = Sabti, Waysu 15, -10 Long 2008-02-05T18:30:30 = 05 Kudo 2008 1995-12-22T09:05:02 = 22 Kaxxa Garablu 1995 -0010-09-15T04:44:23 = 15 Waysu -10 Medium 2008-02-05T18:30:30 = 05-Nah-2008 1995-12-22T09:05:02 = 22-Kax-1995 -0010-09-15T04:44:23 = 15-Way--10 Short 2008-02-05T18:30:30 = 05/02/08 1995-12-22T09:05:02 = 22/12/95 -0010-09-15T04:44:23 = 15/09/-10 Default 2008-02-05T18:30:30 = 05-Nah-2008 1995-12-22T09:05:02 = 22-Kax-1995 -0010-09-15T04:44:23 = 15-Way--10 Time Formats Full 2008-02-05T18:30:30 = 6:30:30 carra UTC 1995-12-22T09:05:02 = 9:05:02 saaku UTC -0010-09-15T04:44:23 = 4:44:23 saaku UTC Long 2008-02-05T18:30:30 = 6:30:30 carra UTC 1995-12-22T09:05:02 = 9:05:02 saaku UTC -0010-09-15T04:44:23 = 4:44:23 saaku UTC Medium 2008-02-05T18:30:30 = 6:30:30 carra 1995-12-22T09:05:02 = 9:05:02 saaku -0010-09-15T04:44:23 = 4:44:23 saaku Short 2008-02-05T18:30:30 = 6:30 carra 1995-12-22T09:05:02 = 9:05 saaku -0010-09-15T04:44:23 = 4:44 saaku Default 2008-02-05T18:30:30 = 6:30:30 carra 1995-12-22T09:05:02 = 9:05:02 saaku -0010-09-15T04:44:23 = 4:44:23 saaku Datetime Formats Full 2008-02-05T18:30:30 = Talaata, Kudo 05, 2008 6:30:30 carra UTC 1995-12-22T09:05:02 = Gumqata, Kaxxa Garablu 22, 1995 9:05:02 saaku UTC -0010-09-15T04:44:23 = Sabti, Waysu 15, -10 4:44:23 saaku UTC Long 2008-02-05T18:30:30 = 05 Kudo 2008 6:30:30 carra UTC 1995-12-22T09:05:02 = 22 Kaxxa Garablu 1995 9:05:02 saaku UTC -0010-09-15T04:44:23 = 15 Waysu -10 4:44:23 saaku UTC Medium 2008-02-05T18:30:30 = 05-Nah-2008 6:30:30 carra 1995-12-22T09:05:02 = 22-Kax-1995 9:05:02 saaku -0010-09-15T04:44:23 = 15-Way--10 4:44:23 saaku Short 2008-02-05T18:30:30 = 05/02/08 6:30 carra 1995-12-22T09:05:02 = 22/12/95 9:05 saaku -0010-09-15T04:44:23 = 15/09/-10 4:44 saaku Default 2008-02-05T18:30:30 = 05-Nah-2008 6:30:30 carra 1995-12-22T09:05:02 = 22-Kax-1995 9:05:02 saaku -0010-09-15T04:44:23 = 15-Way--10 4:44:23 saaku Available Formats d (d) 2008-02-05T18:30:30 = 5 1995-12-22T09:05:02 = 22 -0010-09-15T04:44:23 = 15 EEEd (d EEE) 2008-02-05T18:30:30 = 5 Tal 1995-12-22T09:05:02 = 22 Gum -0010-09-15T04:44:23 = 15 Sab Hm (H:mm) 2008-02-05T18:30:30 = 18:30 1995-12-22T09:05:02 = 9:05 -0010-09-15T04:44:23 = 4:44 hm (h:mm a) 2008-02-05T18:30:30 = 6:30 carra 1995-12-22T09:05:02 = 9:05 saaku -0010-09-15T04:44:23 = 4:44 saaku Hms (H:mm:ss) 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 9:05:02 -0010-09-15T04:44:23 = 4:44:23 hms (h:mm:ss a) 2008-02-05T18:30:30 = 6:30:30 carra 1995-12-22T09:05:02 = 9:05:02 saaku -0010-09-15T04:44:23 = 4:44:23 saaku M (L) 2008-02-05T18:30:30 = 2 1995-12-22T09:05:02 = 12 -0010-09-15T04:44:23 = 9 Md (M-d) 2008-02-05T18:30:30 = 2-5 1995-12-22T09:05:02 = 12-22 -0010-09-15T04:44:23 = 9-15 MEd (E, M-d) 2008-02-05T18:30:30 = Tal, 2-5 1995-12-22T09:05:02 = Gum, 12-22 -0010-09-15T04:44:23 = Sab, 9-15 MMM (LLL) 2008-02-05T18:30:30 = Nah 1995-12-22T09:05:02 = Kax -0010-09-15T04:44:23 = Way MMMd (MMM d) 2008-02-05T18:30:30 = Nah 5 1995-12-22T09:05:02 = Kax 22 -0010-09-15T04:44:23 = Way 15 MMMEd (E MMM d) 2008-02-05T18:30:30 = Tal Nah 5 1995-12-22T09:05:02 = Gum Kax 22 -0010-09-15T04:44:23 = Sab Way 15 MMMMd (MMMM d) 2008-02-05T18:30:30 = Kudo 5 1995-12-22T09:05:02 = Kaxxa Garablu 22 -0010-09-15T04:44:23 = Waysu 15 MMMMEd (E MMMM d) 2008-02-05T18:30:30 = Tal Kudo 5 1995-12-22T09:05:02 = Gum Kaxxa Garablu 22 -0010-09-15T04:44:23 = Sab Waysu 15 ms (mm:ss) 2008-02-05T18:30:30 = 30:30 1995-12-22T09:05:02 = 05:02 -0010-09-15T04:44:23 = 44:23 y (y) 2008-02-05T18:30:30 = 2008 1995-12-22T09:05:02 = 1995 -0010-09-15T04:44:23 = -10 yM (y-M) 2008-02-05T18:30:30 = 2008-2 1995-12-22T09:05:02 = 1995-12 -0010-09-15T04:44:23 = -10-9 yMEd (EEE, y-M-d) 2008-02-05T18:30:30 = Tal, 2008-2-5 1995-12-22T09:05:02 = Gum, 1995-12-22 -0010-09-15T04:44:23 = Sab, -10-9-15 yMMM (y MMM) 2008-02-05T18:30:30 = 2008 Nah 1995-12-22T09:05:02 = 1995 Kax -0010-09-15T04:44:23 = -10 Way yMMMEd (EEE, y MMM d) 2008-02-05T18:30:30 = Tal, 2008 Nah 5 1995-12-22T09:05:02 = Gum, 1995 Kax 22 -0010-09-15T04:44:23 = Sab, -10 Way 15 yMMMM (y MMMM) 2008-02-05T18:30:30 = 2008 Kudo 1995-12-22T09:05:02 = 1995 Kaxxa Garablu -0010-09-15T04:44:23 = -10 Waysu yQ (y Q) 2008-02-05T18:30:30 = 2008 1 1995-12-22T09:05:02 = 1995 4 -0010-09-15T04:44:23 = -10 3 yQQQ (y QQQ) 2008-02-05T18:30:30 = 2008 Q1 1995-12-22T09:05:02 = 1995 Q4 -0010-09-15T04:44:23 = -10 Q3 yyQ (Q yy) 2008-02-05T18:30:30 = 1 08 1995-12-22T09:05:02 = 4 95 -0010-09-15T04:44:23 = 3 -10 Miscellaneous Prefers 24 hour time? No Local first day of the week Etleeni SUPPORT
See DateTime::Locale. AUTHOR
Dave Rolsky <autarch@urth.org> COPYRIGHT
Copyright (c) 2008 David Rolsky. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. This module was generated from data provided by the CLDR project, see the LICENSE.cldr in this distribution for details on the CLDR data's license. perl v5.18.2 2017-10-06 DateTime::Locale::aa(3)
All times are GMT -4. The time now is 07:56 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy