Ask Ubuntu General Room

Normally: General discussion around Ask Ubuntu, Ubuntu & offic...
Jul 8, 2017 15:58
ok, does it exist for these other options you advised me then?
Jul 8, 2017 15:57
by the way, just for knowledge, do you know how to see a progress stat/bar/info in the zip command?
Jul 8, 2017 15:55
well, for this case now, I already did the downloads and uploads so not needed to change now, also because it's 4GB files. but I will read what you advised me for future cases
Jul 8, 2017 15:54
ok, great
Jul 8, 2017 15:51
@terdon what you think?
Jul 8, 2017 15:50
just really quick, what i am trying to do right now is:
I downloaded a zip of all files but it didn't contain the hidden files, so I then downloaded another zip with the hidden files only and now I want to unzip the two zips in same directory but keep everything at same time, not delete existing files
Jul 8, 2017 15:48
ok, I will check that. thanks again
Jul 8, 2017 15:37
ok, I will read about it. thanks for the suggestion
Jul 8, 2017 15:35
oh ok. but i think it has an option to do it too
Jul 8, 2017 15:34
i think there is gzip and tar, right?
Jul 8, 2017 15:34
I use what I know ahah
Jul 8, 2017 15:33
I think the zip would be faster.. ?
Jul 8, 2017 15:32
if you have to move some files from a server to another, what would be faster:
1 - zipping everything, then download the zip to your pc, upload to new server and unzip
or
2 - use ftp and download all files to your pc and then upload to new server
?
Jul 8, 2017 15:29
ok, great. thanks.
the pre-existing files are quite big so it would be a huge setback if the new unzip would delete them.
Jul 8, 2017 15:28
ok
Jul 8, 2017 15:25
ok, thanks :)
Jul 8, 2017 15:22
I have a zip with some files within directories. When I unzip it, if the directories already existed and there were files, they will remain there and the new ones from the zip will be placed there as well, right? doing this in the command line
Jul 8, 2017 15:20
I have a somewhat basic question
Jul 8, 2017 15:20
hello everyone
Jun 30, 2017 18:34
it appears that the command is adding also files in same directory of the directory I chose
Jun 30, 2017 18:32
oh, what size should I expect to have the zipped file assuming it's using default compression? +/-
Jun 30, 2017 18:25
ok guys, thanks for the help
Jun 30, 2017 18:22
how long should it take to zip about 1Gigabyte files? is a minute or less normal? that's what it took when I used the other command. I'm not used to using zip so I'm not sure
Jun 30, 2017 18:19
the /* will zip all "normal" files and then /.* will zip the hidden files
is that right?
Jun 30, 2017 18:19
yes, it's ok to include the parent folder
Jun 30, 2017 18:17
@Rinzwind so it would be:
zip -r newfile.zip directory-to-zip * .*
?
Jun 30, 2017 18:15
@Rinzwind I want to zip
Jun 30, 2017 18:14
however I tried that but the zip file didn't contain any files
Jun 30, 2017 18:14
after searching I ended with:
zip -r myfile.zip directory-to-zip/.
Jun 30, 2017 18:13
I am trying to zip all files and folders within a directory including the hidden files
Jun 30, 2017 18:12
hello everyone
Apr 11, 2017 17:20
but it doesn't work by just changing "$2" for "$9"? would it be the same command?
Apr 11, 2017 17:19
but the result is the same, except that in this one it shows the values from the nineth column as well
Apr 11, 2017 17:18
in the real case, the column one is actually the forth and the column 2 is the nineth
Apr 11, 2017 17:17
when I asked initially, I wanted to make it simplier so I used just two columns
Apr 11, 2017 17:17
well, yes, but you just have to replace $2 with $9
Apr 11, 2017 17:09
basically it printed the values from the 9th column and then used grep to get just the ones that were zero
Apr 11, 2017 17:08
cat file | awk -F";" '{printf"%s V.Sob.=%s\n",$4,$9}'| grep 'V.Sob.=0'
Apr 11, 2017 17:06
@terdon thanks a lot for your help anyway
Apr 11, 2017 17:06
@terdon a colleague sent me another command that works, I just wanted to find out why the one I used didnt work since it is supposed to be correct. but time is almost over so I need to hurry, so I will skip this
Apr 11, 2017 16:17
I mean, there's these sites where you can actually see code and such. this is not code but.. I think you get what I mean
Apr 11, 2017 16:17
is there an appropriate site for uploading such files or anything will do?
Apr 11, 2017 16:09
I don't think so because other commands work, but I don't understand why these don't work
Apr 11, 2017 16:06
is it possible that there is a problem with the system?
Apr 11, 2017 16:06
it doesn't do anything
Apr 11, 2017 15:58
no need to use cat first?
Apr 11, 2017 15:57
ok, let me try that
Apr 11, 2017 15:56
the tabs must have been me when writing it here (since I didn't copy/paste the output)
Apr 11, 2017 15:53
ok. is there a way to ignore multiple spaces in the command line?
Apr 11, 2017 15:53
I mean, could there be empty spaces and Calc didn't show me them?