Skip to main content

All Questions

Tagged with
0 votes
2 answers
2k views

move and make directory

I know its a big classical but I didn't found the exact situation that concerns me I need a mkdir+mv command that can be invoked like that : mvdir /home/user/Documents/irs.pdf /mnt/work/45/223/insight/...
aaa's user avatar
  • 167
1 vote
1 answer
773 views

Create directory using filenames and move the files to its respective folder

My question is a bit different than: Create directory using filenames and move the files to its repective folder Since in the same folder I have two similar copy of each file like: 001.txt and 001(1)....
Maxfield's user avatar
  • 161
0 votes
2 answers
34 views

move contents of directory to static named subdirectory

I have directories of media structured as followed: ~ $ tree baz baz ├── Ajin [Season 1] │   ├── Ajin Demi-Human - 01 - A Topic That Has Nothing to Do with Us.mkv │   ├── Ajin Demi-Human - 02 - Why Is ...
anonymous's user avatar
0 votes
2 answers
1k views

How to Move file using Script

I have been asked to design a script which when executed, moves the file types given in the arguments to the respective folder(creates the folder with file type if not there). Like suppose I give ...
Aayush Upadhyaya's user avatar
1 vote
2 answers
487 views

How to create a script to make a structure and sort files by moving them into directories?

I have a bunch of files which all have a first line being a date. All of them start with the same first 2 letters being "ff". I need to create a script which would use that first line in all files and ...
Mantas's user avatar
  • 11
1 vote
2 answers
517 views

How to make multiple directories and move multiple files

As an example, I have a directory with multiple files in this general format: dir1/identifier1_desiredName1.m dir1/identifier1_desiredName2 dir1/identifier1_desiredName3.m dir1/...
Trailing Penguin's user avatar
-2 votes
2 answers
5k views

Bash command to create a folder and move specific files into it

I am trying to achieve this using bash I have a directory of files, a sample to get the picture is below: January 2010 MA - C3 Edexcel.pdf January 2010 MS - C3 Edexcel.pdf January 2010 QP - C3 ...
user avatar
0 votes
2 answers
327 views

Create directory name based on other other directories

I have directories: Foo Fee but I also have some directories with names like: Ipsum - Lorem Dolor - Sit If the directory does not contain a hyphen is should be ignored If the directory does ...
Aaron Snowden's user avatar
1 vote
1 answer
912 views

$_ not working with copy and move commands

I face the problem with $_ usage, which $_ special parameter in terminal, And its call the last argument of the previous command. It was not work with cp and mv command in gnome-terminal.It happen ...
SuperKrish's user avatar
0 votes
1 answer
77 views

Folder organization

I have several folders ("amazon", "niger", "rhine",...). Inside each of them I have several subfolders ("gfdl", "hadgem", "ipsl",...). Each subfolders is composed by 5 subfolders (e.g. in "amazon", ...
steve's user avatar
  • 548
7 votes
1 answer
25k views

Will `mv` ever have the ability to create directories?

This question asks for the best way to create a directory when using mv if it doesn't exist. My question is why isn't this an inbuilt feature of mv? Is there some fundamental reason due to which this ...
texasflood's user avatar