Sponsored Content
Full Discussion: shell scripting
Top Forums Shell Programming and Scripting shell scripting Post 302235413 by subhendu81 on Friday 12th of September 2008 12:54:07 AM
Old 09-12-2008
my requirement is:

input (lines in the file)
/common/interface/inbound/na/data/pre-receive/gadtest/subhendu/sample.gz
/common/interface/inbound/na/data/pre-receive/gadtest/subhendu/sample1.gz
/common/interface/inbound/na/data/pre-receive/gadtest/subhendu/sample2.gz
...
...

output:
======

/common/interface/inbound/na/data/pre-receive/gadtest/subhendu/sample
/common/interface/inbound/na/data/pre-receive/gadtest/subhendu/sample1
/common/interface/inbound/na/data/pre-receive/gadtest/subhendu/sample2
...
...

i mean i want to replace all the line of the file by these new output lines.
i.e (the line contain sample instead of sample.gz)

Last edited by subhendu81; 09-12-2008 at 01:54 AM.. Reason: to remove the smileys
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

difference between AIX shell scripting and Unix shell scripting.

please give the difference between AIX shell scripting and Unix shell scripting. (2 Replies)
Discussion started by: haroonec
2 Replies

2. Shell Programming and Scripting

Call Shell scripting from Perl Scripting.

Hi How to call a shell scripting through a Perl scripting? Actually I need some value from Shell scripting and passes in the Perl scripting. So how can i do this? (2 Replies)
Discussion started by: anupdas
2 Replies

3. What is on Your Mind?

Shell scripting vs Perl scripting

Hi all, I would like to start developping some good scripting skills. Do you think it would be best to start with shell scripting or Perl? I already got a fundation, really basics, in perl. but I am wondering what would be best to be good at first. Can you please help me determine which one to... (14 Replies)
Discussion started by: Pouchie1
14 Replies

4. Android

Android Scripting Environment: Shell Scripting and Android

I just upgraded to Android 2.2 from 2.1. The GPS issue that was troublesome in 2.1 seems to have been fixed. Some of web browsing seems faster, but it could just be my connection is better today ;) Flash works in some browsers but not very good and it is too slow for Flash apps designed for... (0 Replies)
Discussion started by: Neo
0 Replies

5. What is on Your Mind?

Shell Scripting vs Perl scripting

Gents, I have been working in a Solaris/Unix environment for about 9 months. I took some linux classses online before getting the job. But, I am not very good at scripting. I want to learn how to script. Do you think that I should start with Shell scripting or Perl? I wanted to continue with... (2 Replies)
Discussion started by: Pouchie1
2 Replies

6. Web Development

Perl scripting or shell scripting?

i am going to study any one of the scripting languages mentioned above(shell 0r perl scripting) . Which is having more scope for a fresher? (1 Reply)
Discussion started by: Anna Hussie
1 Replies

7. UNIX for Dummies Questions & Answers

Shell Scripting

Hey I have a data in the file named as outputFile.txt. The data is in the format 123456,12345678912345,400,09/09/09,INACTIVE. I want this output without commas ie 12345612345678912345400090909INACTIVE. Please tell me what to do and clear explain all the terms, as I am new to it. (6 Replies)
Discussion started by: sampandey31
6 Replies

8. Shell Programming and Scripting

Shell scripting

Hi, if in a network there are lots of PCs connected with either windows or linux as operating system.Then what will be the shell script for the same and also if the PC has linux in it then we have to find if it is occupied or unoccupied. If the PC has windows in it then we have to find if it is... (6 Replies)
Discussion started by: akansha singh
6 Replies

9. Shell Programming and Scripting

help me in Shell Scripting

Hi there please have a look at the code..i want to create Using a named pipe. Run a find in the background starting in the working directory While this is happening wait for input from the user to ask him which file to find. If the user does not enter any data in 10 seconds ask the user again.... (1 Reply)
Discussion started by: kattak1511
1 Replies

10. UNIX for Dummies Questions & Answers

Shell script to read lines in a text file and filter user data Shell Programming and Scripting

sxsaaas (3 Replies)
Discussion started by: VikrantD
3 Replies
FAXWATCH(8)						      System Manager's Manual						       FAXWATCH(8)

NAME
faxwatch - monitor low-level HylaFAX server actions SYNOPSIS
/usr/sbin/faxwatch [ -g ] [ -l ] [ -h host ] trigger-expression DESCRIPTION
faxwatch registers interest in one or more events on a HylaFAX server and then prints subsequent event messages to the standard output. The faxwatch program is intended mainly for testing the event distribution mechanism used by the HylaFAX servers. The trigger-expression is supplied as an argument to a ``SITE TRIGGER'' command passed to the hfaxd(8) The syntax for this expression is: [<class>['<'id'>'][<mask>|'*']]* where <class> defines a class of events and is one of: J for job-related events, S for fax send-related events, R for fax receive-related events, and M for modem-related events. A <mask> is a 4-hex-digit mask of trigger events (see the table below). If ``*'' is specified then all events in the class are matched. An <id> can be used to restrict matches to a specific job or modem. Eventually this will need to be generalized for job groups. Thus an example specification that would catch any event for the modem on ttyf2 would be ``M<ttyf2>*'', and to be notified when job 1932 is requeued or completes one would use ``J<1932>4c60''. The output from faxwatch is ASCII text that describes each event. faxwatch runs until it is interrupted. OPTIONS
-g Display times and dates in Greenwich Mean Time (GMT). NB: this is the default. -h host Report the status of the server on a specific host. The host may be either a symbolic name or a network address. If no -h option is supplied, faxwatch uses the FAXSERVER environment variable to identify the HylaFAX server to contact. If this variable is not set, then faxwatch checks for a setting in the configuration files (first in the per-user file and then in the system-wide file). If all of the above fails, then faxwatch attempts to contact a server on the machine where it is run. -l Display times and dates in the local timezone of the server. -v Trace the protocol exchanges between faxwatch and the hfaxd processes on the standard output. EVENTS
The following table specifies the current set of events that may be monitored. This information is subject to change; consult the source code for reference. Event Class Mask Description JOB_CREATE J 0x0001 job created JOB_SUSPEND J 0x0002 job suspended JOB_READY J 0x0004 job ready to send JOB_SLEEP J 0x0008 job sleeping awaiting time-to-send JOB_DEAD J 0x0010 job marked dead JOB_PROCESS J 0x0020 job processed by scheduler JOB_REAP J 0x0040 job corpus reaped JOB_ACTIVE J 0x0080 job activated JOB_REJECT J 0x0100 job rejected JOB_KILL J 0x0200 job killed JOB_BLOCKED J 0x0400 job blocked by other job JOB_DELAYED J 0x0800 job delayed by tod restriction or similar JOB_ALTERED1 J 0x1000 job parameters altered JOB_TIMEDOUT J 0x2000 job kill timer expired JOB_PREP_BEGIN J 0x4000 job preparation started JOB_PREP_END J 0x8000 job preparation finished SEND_BEGIN S 0x0001 fax, send attempt started SEND_CALL S 0x0002 fax, call placed SEND_CONNECTED S 0x0004 fax, call answered by fax SEND_PAGE S 0x0008 fax, page transmit done SEND_DOC S 0x0010 fax, document transmit done SEND_POLLRCVD S 0x0020 fax, document retrieved by poll operation SEND_POLLDONE S 0x0040 fax, poll operation completed SEND_END S 0x0080 fax, send attempt finished SEND_REFORMAT S 0x0100 fax, job being reformatted SEND_REQUEUE S 0x0200 fax, job requeued SEND_DONE S 0x0400 fax, send job done RECV_BEGIN R 0x0001 fax, inbound call started RECV_START R 0x0002 fax, session started RECV_PAGE R 0x0004 fax, page receive done RECV_DOC R 0x0008 fax, document receive done RECV_END R 0x0010 fax, inbound call finished MODEM_ASSIGN M 0x0001 modem assigned to job MODEM_RELEASE M 0x0002 modem released by job MODEM_DOWN M 0x0004 modem marked down MODEM_READY M 0x0008 modem marked ready MODEM_BUSY M 0x0010 modem marked busy MODEM_WEDGED M 0x0020 modem considered wedged MODEM_INUSE M 0x0040 modem in use for outbound work MODEM_DATA_BEGIN M 0x0080 inbound data call begun MODEM_DATA_END M 0x0100 inbound data call finished MODEM_VOICE_BEGIN M 0x0200 inbound voice call begun MODEM_VOICE_END M 0x0400 inbound voice call finished MODEM_CID M 0x0800 inbound caller-ID information 1 Event to be removed soon. SEE ALSO
hylafax-server(5), hfaxd(8). January 18, 1996 FAXWATCH(8)
All times are GMT -4. The time now is 07:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy