The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Use awk to create new folder in current directory
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Use awk to create new folder in current directory
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
6
(
permalink
)
01-27-2008
shamrock
Registered User
Join Date: Oct 2007
Location: USA
Posts: 753
Quote:
Originally Posted by
ccox85
thanks so much guys!
A better version that sends errors to /dev/null if the directory "iat_exp" already exists.
Code:
awk '{"mkdir iat_exp 2>&-" | getline;print stuff}' inputfile > iat_exp/outputfile
shamrock
View Public Profile
Find all posts by shamrock
Find shamrock's past nominations received
Find shamrock's present nominations given