Linux / UNIX Tech Support Forum
This is a discussion on how to create multiple file in a single command within the Shell scripting forums, part of the Development/Scripting category; hi, i want to create in the extension of ".txt" IS there any command available for careating the ten file ...
|
|||||||
| Shell scripting You can discuss the shell scripting, request shell scripts and scripting techniques |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
hi,
i want to create in the extension of ".txt" IS there any command available for careating the ten file in the name of a1.txt , a2.txt, a3.txt .... a10.txt if u know the command help to me thanks |
| Sponsored Links | ||
|
|
|
||||
|
Use touch or other command as follows
Code:
touch a{1,2,3,4,5,6,7,8,9,10}.txt
__________________
Vivek Gite Linux Evangelist |
|
||||
|
Quote:
xargs build and execute command lines from standard input or shell pipes. For example find all *.tmp file and remove them: Code:
find . -name "*.tmp" | xargs rm
__________________
Vivek Gite Linux Evangelist |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Create new user account in Ubuntu Linux from command line | sweta | Getting started tutorials | 3 | 02-07-2010 12:15 PM |
| How to create multiple user account? | droidwork | Shell scripting | 11 | 02-23-2008 01:35 PM |
| single DHCP server with multiple VLAN's | frank | Computer Networking and Internet/broadband | 2 | 12-07-2007 12:38 PM |
| Lighttpd socket with multiple subdomains or single IP | muks | Web servers | 2 | 03-17-2007 04:48 AM |
| HP UX create or add users from command line using useradd | rockdalinux | HP-UX | 0 | 12-20-2006 02:13 PM |