Using a 'for' loop to do this is a useless use of cat and useless use of backticks, precisely because of the reason you've discovered, among others -- it splits where it pleases, not on lines.
The shell's read builtin is much better suited. It can even split for you.
Hi Friends,
Can any of you explain me about the below line of code?
mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`
Im not able to understand, what exactly it is doing :confused:
Any help would be useful for me.
Lokesha (4 Replies)
I guess it was getting a little messy on the other post so here goes:
Link to previous post for Question:
https://www.unix.com/shell-programming-scripting/111338-awk-replace-particular-field.html
Continuation of Question
hey i was messing around a bit ... made me wonder...
If the... (1 Reply)
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Is there any way to get the escaped version of a field in awk? For those that don't understand the question, here is a clarifying example. Lets say a field $1 gives me the string "(dumb'" (I've changed the delimiter to be something other than whitespace). If i use that value in a command in awk... (2 Replies)
logs:
"/home/abc/public_html/index.php"
"/home/abc/public_html/index.php"
"/home/xyz/public_html/index.php"
"/home/xyz/public_html/index.php"
"/home/xyz/public_html/index.php"
how to use "cut" or "awk" or "sed" to get the following result:
abc
abc
xyz
xyz
xyz (8 Replies)
Dear Experts,
How to use field separator in awk , when the field separation is needed as "||"
Example: (file1 )
aa || bb || cc || 1234
xx || yy || zz || 1123
Q:
If I want to print $3 and $4 only , with using the field separator "||"
How to write awk code: (6 Replies)
Hi Experts,
I have a string with colon delimited, want 2nd colon to be changed to a pipe.
data:
101:8:43:4:72:14:41:69:85:3:137:4:3:0:4:0:9:3:0:3:12:3:
I am trying with sed, but can change only 1 occurance:
echo "101:8:43:4:72:14:41:69:85:3:137:4:3:0:4:0:9:3:0:3:12:3:" | sed 's/:/|/2'... (5 Replies)
i have a 2 fields in my DB
ID25333,1429291340lNormPUC-AP_MEX_UFM-GOL_44;PUC-AP_VEX_UFM-ROL_55;PUCAP_MEX_UFM-DOJ_49;
ID55555,1429291340lNormPUC-AP_PPP_UFM-HOL_44;PUC-AF_GEX_UJM-SOL_45;PUCAP_MEX_UFM-DOJ_59;and i need separate like this
ID25333,PUC-AP_MEX_UFM-GOL_44; ... (5 Replies)
Discussion started by: Axl_north
5 Replies
LEARN ABOUT ULTRIX
sact
sact(1) General Commands Manual sact(1)Name
sact - display current SCCS file editing activity
Syntax
sact files
Description
The command informs the user of any impending deltas to a named SCCS file. This situation occurs when the command with the -e option has
been previously executed without a subsequent execution of the command. If a directory is named on the command line, behaves as though
each file in the directory were specified as a named file, except that non-SCCS files and unreadable files are silently ignored. If a name
of - is given, the standard input is read with each line being taken as the name of an SCCS file to be processed.
The output for each named file consists of five fields separated by spaces.
Field 1 Specifies the SID of a delta that currently exists in the SCCS file to which changes will be made to make the new delta.
Field 2 Specifies the SID for the new delta to be created.
Field 3 Contains the login name of the user who will make the delta (that is, executed a for editing.
Field 4 Contains the date that -e was executed.
Field 5 Contains the time that -e was executed.
Diagnostics
See for explanations.
See Alsodelta(1), get(1), sccs(1), sccshelp(1), unget(1), sccsfile(5))
Guide to the Source Code Control System
sact(1)