The requirement is to extract 9 fields randomly from a 13 field CSV file to make another CSV file. While doing that, the field 7 and 8 of input csv file should comeout as field 7 of output with the value as first charecters of both 7 and 8 fields of input file(CSV file).
Presently I am using... (1 Reply)
Hi,
I have a cron job which executes daily once 9 PM.
The script is like
if
then
TYPE=OC
elif
then
TYPE=i
elif
then
TYPE=mmc
elif
then
TYPE=CB
elif
then
TYPE=oth
fi (1 Reply)
hi there
i write one awk script file in shell programing
the code is related to dd/mm/yy to month, day year format
but i get an error
please can anybody help me out in this problem ??????
i give my code here including error
awk `
# date-month -- convert mm/dd/yy to month day,... (2 Replies)
Hi,
I want to run a crontab job on solaris10.5. I have configured the crontab accordingly
10 * * * * /scripts/dbalter.pl >> /scripts/cronout.txt.However this does not work .Then I go to /var/mail/root and find an error in the output:... (4 Replies)
Hi,
I need to do the following but I don't know exactly what to do.
I need to monitor a file ... with tail -f for example, but I know that I could do it with awk, wait for a specific string ... , then perform an action, call a script, etc.
Let's say that my file name is test.txt , I need... (3 Replies)
Hi All,
While running shell script i got following output.
interpreter "usr/bin/ksh" not found
sh: step1.sh: not found.
ldnhpux | oracle >echo $?
127
- Running command "which ksh" retruns "usr/bin/ksh".
- I found some information on web stating to remove extra carriage return chars,... (8 Replies)
Script:
#!/sbin/sh
echo "Welcome to my First Script"
echo "Enter a word"
read PASS
if then
echo "You are correct"
elif then
echo "Thats incorrect"
else
echo "Bye"
fi
When i run the script shell says:
Syntax error at line 7:'elif' is not expected
I ran through some old posts and... (3 Replies)
Hi,
I am executing a shell script on AIX box where I need to list all the files in the file system and then do some other tasks with them. I am able to do this successfully on HP-UX and Linux boxes but I get the following error after 10-15 seconds when I try to execute the script on an AIX box. ... (6 Replies)
Ubuntu, Bash 4.3.48
Hi,
I have this input file:
a1:b2:c30:g4:h12:j7
and I want this output file:
a1=g4:b2=h12:c30=j7
I can do it this with this code:
awk -F':' '{print $1"="$4":"$2"="$5":"$3"="$6"}' INPUT > OUTPUTIn this case I have 6 columns, I calculate manually the half number of... (6 Replies)
Team,
Im new to shell scripting please help in below issue:
Considering scenario i have 1.sql,2.sql,3.sql and 4.sql . If my second script fails my loop should come out and should not execute 3.sql and 4.sql.
Here is my code.
#! /bin/bash
echo "exit" | user/password | grep Connected >... (4 Replies)
Discussion started by: preethi87
4 Replies
LEARN ABOUT OSF1
tcsendbreak
tcsendbreak(3) Library Functions Manual tcsendbreak(3)NAME
tcsendbreak - Sends a break on an asynchronous serial data line
LIBRARY
Standard C Library (libc.so, libc.a)
SYNOPSIS
#include <termios.h>
int tcsendbreak(
int filedes,
int duration);
STANDARDS
Interfaces documented on this reference page conform to industry standards as follows:
tcsendbreak(): XPG4, XPG4-UNIX
Refer to the standards(5) reference page for more information about industry standards and associated tags.
PARAMETERS
Specifies an open file descriptor. Specifies the number of milliseconds that zero-valued bits are transmitted. If the value of the dura-
tion parameter is 0 (zero), transmission of zero-valued bits is for 250 milliseconds. If duration is not 0, transmission of zero-valued
bits is for duration milliseconds.
DESCRIPTION
If the terminal is using asynchronous serial data transmission, the tcsendbreak() function causes transmission of a continuous stream of
zero-valued bits for a specific duration. If the terminal is not using asynchronous serial data transmission, the tcsendbreak() function
returns without taking any action.
A process group is sent a SIGTTOU signal if the tcsendbreak() function is called from one of its member processes. If the calling process
is blocking or ignoring SIGTTOU signals, the process is allowed to perform the operation and no signal is sent.
RETURN VALUES
Upon successful completion, a value of 0 (zero) is returned. Otherwise, -1 is returned and errno is set to indicate the error.
ERRORS
The tcsendbreak() function sets errno to the specified values for the following conditions:
The filedes parameter does not specify a valid open file descriptor. The file associated with the filedes parameter is not a terminal.
RELATED INFORMATION
Functions: tcdrain(3), tcflow(3), tcflush(3)
Files: termios(4)
Standards: standards(5) delim off
tcsendbreak(3)