LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Blogs > druuna
User Name
Password

Notices

General General tips, tricks and other handy stuff
Old

Bash moves in mysterious ways

Posted 12-04-2011 at 01:52 PM by druuna
Updated 12-23-2011 at 03:35 PM by druuna

Playing with the mv command I ran into this:

From a safe location create 2 Directories, create some files in one of the directories and enter that directory:
Code:
$ mkdir Temp_0{1,2}
$ ls -la
total 40
drwxr-x---  4 druuna internet  4096 Dec  4 20:16 .
drwxr-x--- 38 druuna internet 28672 Dec  4 20:16 ..
drwxr-x---  2 druuna internet  4096 Dec  4 20:16 Temp_01
drwxr-x---  2 druuna internet  4096 Dec  4 20:16 Temp_02

$ touch Temp_01/{foo,bar}
...
LQ Veteran
Posted in General
Views 271 Comments 0 druuna is offline

  



All times are GMT -5. The time now is 06:00 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration