Sorry, after I google about AWK and learned it, I still have trouble to understand your syntax. I understand EmployeeID is the search pattern. OFS is Field Separator comma.
awk <search pattern> {<program actions>}
What I am confused is program action. Could you kindly explain?
1. what is that mean? c && --c
in mnemonic code:
Quote:
Originally Posted by jbchen
2. next; does that mean exit the program action and going to next program action?
it means, don't execute any of the following awk code AND advance to the 'next' data record/line.
One of the things that I have learned to take for granted in the Win32 world is the cut, copy and paste hotkeys of ^X, ^C and ^V.
I use these keys all the time under Win32 to copy and paste information from one GUI into another GUI.
My question is, does X have a similiar standard?
... (4 Replies)
hi i am new to shell scripting,
i have been trying to cut columns numbered 1,4 of a file consisiting of 4 columns. Each column is seperated by 2 spaces.
for example:
john 6102097199 tennessee usa
michel 6734590899 texas USA
now, i need to cut the name... (3 Replies)
Hello
I have a very large file where say each line is made up of 80 characters.
I want to cut the characters from 20-30 and 50-60 from each line and then insert a delimiter between them (# or | etc).
eg
input file
000000000131.12.20990000590425246363375670011200140406... (5 Replies)
Hi i need a favour
i have a file which has some trillions of records. The file is like this
11111000000000192831840914000000000000000000000000000
45789899090000000000000000011111111111111111111111111
I want to cut specific postions in each line like cut1-3 and assisgn it to a variable and... (5 Replies)
Hello,
I want to be able to cut and paste columns from two tables in one command.
Presently I do the following:
cut -f 1,3-6,9 table1.in > table1.out
cut -f 7,6,1-3 table2.in > table2.out
paste table1.out -d '\t' table2.out > MergedTable.out
Is there a better way to do this?
... (1 Reply)
Hi,
Need a help with shell script. I have to search for a string in one of the file, if match found, copy the line to a new file and delete the line from the exisiting file.
eg:
83510000000000063800000.1800000.1600000.1600000.2400000.1800000.2000000.21... (6 Replies)
Hello,
I am working on unix for the first time.
I have to write a shell script where i want to cut paste from one file to other.
File "1234.abc" is
03,12345555
16,936,x,x,120
16,936,x,x,100
49,12345555
03,12347710
16,936,x,x,115
16,936,x,x,122
49,12347710
03,12342222... (9 Replies)
I have a file which contains 3 fields separated by tabs example
andrew kid baker
I need to swap kid and baker using cut and paste commands how is this to be done?
Thanks (3 Replies)
let i have A file and B file
A has contains 4 fields as below
----------------
f1 f2 f3 f4
B file consists of 5 fields as below
--------------------
f5 f6 f7 f8 f9
need to display as below output:
f5 f1 f3 f8 f9 (2 Replies)
Hello,
I have some problem in cut or paste command for my text data.
Input1.txt :
I use cut command :
cut -d ' ' -f1 Input1.txt > result.txt result.txt :
Then, I use paste command to merge result.txt.
paste -d ' ' result.txt Input1.txt > output.txt output.txt showed :
I use cut... (1 Reply)
Discussion started by: awil
1 Replies
LEARN ABOUT BSD
vacation
VACATION(1) General Commands Manual VACATION(1)NAME
vacation - return ``I am on vacation'' indication
SYNOPSIS
vacation -I
vacation user
DESCRIPTION
Vacation returns a message to the sender of a message telling that you are on vacation. The intended use is in a .forward file. For exam-
ple, your .forward file might have:
eric, "|vacation eric"
which would send messages to you (assuming your login name was eric) and send a message back to the sender.
Vacation expects a file .vacation.msg in your home directory containing a message to be sent back to each sender. It should be an entire
message (including headers). For example, it might say:
From: eric@ucbmonet.Berkeley.EDU (Eric Allman)
Subject: I am on vacation
Delivered-By-The-Graces-Of: the Vacation program
I am on vacation until July 22. If you have something urgent,
please contact Joe Kalash <kalash@ucbingres.Berkeley.EDU>.
--eric
This message will only be sent once a week to each unique sender. The people who have sent you messages are kept in the files .vaca-
tion.pag and .vacation.dir in your home directory. The -I option initializes these files, and should be executed before you modify your
.forward file.
If the -I flag is not specified, vacation reads the first line from the standard input for a UNIX-style ``From'' line to determine the
sender. If this is not present, a nasty diagnostic is produced. Sendmail(8) includes the ``From'' line automatically.
No message is sent if the initial ``From'' line includes the string ``-REQUEST@'' or if a ``Precedence: bulk'' or ``Precedence: junk'' line
is included in the header.
SEE ALSO sendmail(8)4.3 Berkeley Distribution June 16, 1985 VACATION(1)