The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
Sorting data and place them in different folders
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Portal
Register
Forum Rules
FAQ
Contribute
Members List
Arcade
Search
Today's Posts
Mark Forums Read
Thread
:
Sorting data and place them in different folders
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
11
(
permalink
)
05-14-2008
era
Herder of Useless Cats
Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,614
The script should be on two different lines. You could also try
Code:
sed -e '/^AAA/wAAA.dat' -e '/^BBB/wBBB.dat' number.dat
The sed
w
command takes a file name to write the line to.
era
View Public Profile
Visit era's homepage!
Find all posts by era