Reputation
244
Top tag
Next privilege 250 Rep.
View close votes
Badges
4 18
Impact
~25k people reached

  • 0 posts edited
  • 0 helpful flags
  • 5 votes cast
Mar
27
awarded  Notable Question
Dec
4
awarded  Popular Question
Nov
24
awarded  Caucus
Jul
2
awarded  Curious
May
2
awarded  Notable Question
Sep
23
awarded  Popular Question
Jul
25
awarded  Popular Question
May
14
awarded  Popular Question
Mar
12
awarded  Popular Question
Jan
8
awarded  Popular Question
Sep
14
awarded  Popular Question
Jun
14
awarded  Notable Question
Feb
20
awarded  Yearling
Jul
16
awarded  Popular Question
May
10
awarded  Critic
Mar
30
accepted Tar directory contents without parent and exclude subdirectories/files
Mar
28
answered Tar directory contents without parent and exclude subdirectories/files
Mar
28
comment Tar directory contents without parent and exclude subdirectories/files
Of course the other issue (my fault for not putting this in the original question) would be that I may want to exclude subsubdirectories such as /root/test1/test12 etc, complicating this even further.
Mar
28
comment Tar directory contents without parent and exclude subdirectories/files
It is a possibility. I'm just going to see if there's a neater solution to this using simply the tar command before going down this road. It just seems somewhat long winded for something which I would have thought was easy.
Mar
28
comment Tar directory contents without parent and exclude subdirectories/files
Using what @Jonathon Ross mentioned I can get this to exclude as desired. However, the contents of the tar become ./root/test/dir1 etc so you end up creating a root dir within whichever folder you extract it rather than just the dirs (dir1, dir2) themselves.