Search Results

Search: Posts Made By: soichiro
12,472
Posted By soichiro
Hello apmcd47, I was able to solve my issue...
Hello apmcd47,
I was able to solve my issue thanks to your suggestion

1- I removed
location=${tmp_loc// /\\ }2- I modified the
cd $location with


cd "$location"I guess last night I was...
12,472
Posted By soichiro
Yes, you are right. The below code is used...
Yes, you are right.

The below code is used to check if the string is empty

[[ -z "$tmp_loc" && "${tmp_loc+x}" ]]I will do the suggested modification and I will let you know later today.

---...
12,472
Posted By soichiro
It seems to be working... I will try to do some...
It seems to be working... I will try to do some tests and I will report back to you.
12,472
Posted By soichiro
[bash] cd: too many arguments
Hello everyone,

Could someone please explain to me why I get cd: too many arguments when I select a dir that has one or more spaces in the name?

This is the code

#!/bin/bash
...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 05:50 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy