The OpenNET Project / Index page

[  /+++ | | wiki | | ]



" awk"
 
. | .  
UNIX (C/C++)
[ ]

" awk"  +/
NotFreeman (ok), 19--19, 13:43 
:
|
|
|

|
|
|
|
|
|
|
|
|

|
|

|
|
|
|
|
|
|

|
|

|
|
|

, , . "" .
"" . .
|
- awk "", "".
.. "" "". 3 .
. .
6 .
:
awk " //{flag=1}flag; //{flag=0} " E:\ .txt >> E:\Exit.txt  - , .
awk " length($1) = 11 "  FS="|" E:\ .txt >> E:\Exit.txt -
awk " length($1) >= 10 "  FS="|" E:\ .txt >> E:\Exit.txt
. awk , .

| | C


[ | RSS]


1. " awk"  +/
(1), 20--19, 14:16 
> . awk , .

, awk.

% less list.txt
org
aaa
data 111
data 222
org
bbb
data 444
data 555
data 666
org
ccc
data 777
data 888

% less list.sh
#!/bin/sh
while read line
do
  if [ "$line" = "org" ]; then
    read name;
  else
    echo $line >> $name;
  fi
done < "list.txt"

.

| | ^ #0 | | C

|

FAQ | | | . | .




:
̣
Inferno Solutions
Hosting by Ihor
:


Created 1996-2019 by Maxim Chirkov
, ,