Search Results

Search: Posts Made By: locohd
2,130
Posted By Yoda
What do you mean by loop does not jump out? ...
What do you mean by loop does not jump out?

1. Put the script in a file:
cat > cut_file.sh
#!/bin/bash

c=0
while read line
do
if [[ "$line" =~ "^f e.*" ]]
then
...
2,130
Posted By vgersh99
awk '/^f e.*/{close(F);++c; F="f"c".txt"; next }...
awk '/^f e.*/{close(F);++c; F="f"c".txt"; next } { print $0 > F; }' a.txt
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 01:17 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy