« first day (3154 days earlier)      last day (948 days later) » 

5:07 AM
-1
Q: Pass a string argument including newlines to my binary in terminal of Mac OS

SoftTimurI would like a pass a string argument including newlines \n or \r\n to my binary in terminal of Mac OS. I tried ./myBinary 'abc \n efg' and ./myBinary 'abc \r\n efg', they did not work. I also tried echo 'abc \n efg' and echo 'abc \r\n efg', newlines were not displayed in the output, so I guess w...

1
Q: Can I stop the <<< operator from adding a newline?

IQAndreasI'm trying to pass a string to md5sum using the <<< operator, but it seems to be adding a newline, messing up the output. string="password" <<<"$string" md5sum # OUTPUT: 286755fad04869ca523320acce0dc6a4 - # EXPECTED: 5f4dcc3b5aa765d61d8327deb882cf99 - Am I using the operator incorrectly, or...

-1
Q: sed command working abnormally with patterns

Ritobroto GangulyI have a text file x.txt as ola kola pola chhola ola bhola ola pola mola ola then on my macOS 11.4 I give the command sed -i '' "s/o*/b/g" x.txt and the file becomes blbab bkblbab bpblbab bcbhbhblbab blbab bbbhblbab blbab bpblbab bmblbab blbab Expected: b kb pb chhb b bhb b pb mb b I c...

9 messages moved from broomba
 
 
1 hour later…
6:23 AM
0
Q: Can Python validate if a string represents a file or folder path, and if so, if that file or folder actually exists on-disk?

Mark A. DonohoeNew to Python and using v3. Trying to find any function that lets me test and validate a passed-in string to see if it represents a file or a folder, and if so, if that file/folder actually exists on disk. I don’t need to do anything with that file or folder, just to check if it exists or not fo...

 
6:53 AM
0
Q: Copying files from linux server to windows desktop

user2950162I am trying to copy a directory from my VPS server at dreamhost to my windows desktop. I have used scp -r username(ssh server)xxx.dreamhostps.com:target_folder /home/username/ And I am getting this error, as if I do not have the permission to copy it on my local directory... /home/username:...

 
 
 
1 hour later…
9:19 AM
114 messages moved from GMTs
 
 
5 hours later…
@Natty tp
 
 
2 hours later…
6:12 PM
13
Q: Hard to Resolve :- "SCP copies files successfully, but files not visible in local computer"

JohnI want to download file from server to my local Linux machine. I am using the following command scp -r username@remote:/path/to/folder /dest/local/path File successfully transfer;But in my local folder file doesn't see. What's wrong with me? Thanks.

 
 
2 hours later…
8:59 PM
1 message moved from ANOverflow
 
 
1 hour later…

« first day (3154 days earlier)      last day (948 days later) »