Search Results

Search: Posts Made By: Roy987
10,417
Posted By Roy987
Thanks. Quite beyond my question. Really...
Thanks.
Quite beyond my question. Really learned a lot.
1,775
Posted By Roy987
Thanks. It worked.
Thanks.
It worked.
1,775
Posted By Roy987
Help with sed regular expression
Hi all,

I want to get a substring from a string based on given delimiter, for example:
str="foo|bar|baz" with delimiter "|",
I want to get one substring at each time with the order number the...
10,417
Posted By Roy987
The following is the output from terminal with...
The following is the output from terminal with command
ls -l /bin/sh
output:
lrwxrwxrwx 1 root root 4 2011-05-07 19:49 /bin/sh -> dash
I didn't change anything, so /bin/sh should default point to...
103,963
Posted By Roy987
Thanks. Actually I will ship the code to an...
Thanks.
Actually I will ship the code to an embedded device after writing it on ubuntu, on which it is required to use Bourne Shell instead of other options, then I will try other method to pass on...
103,963
Posted By Roy987
This led to an error "Syntax error: "("...
This led to an error "Syntax error: "(" unexpected" on my ubuntu,
I executed it in a script started with:
#!/bin/sh

---------- Post updated at 07:27 PM ---------- Previous update was at 07:19...
103,963
Posted By Roy987
split string into array in shell
Hi all,

I want to split a string into array based on given delimiter, for example:

String:
"foo|bar|baz"
with delimiter "|"
into array:
strArr[0] to strArr[2] with values foo, bar and...
10,417
Posted By Roy987
Shell string array
Hi all,

I want to create an array variable in shell, for example:

#!/bin/sh
name[0]="foo"
name[1]="bar"
name[2]="baz"

But above code didn't work, I also tried with:

name=(foo bar baz)...
41,620
Posted By Roy987
Thanks a lot, this one grep -v "^#" $HISTFILE...
Thanks a lot, this one grep -v "^#" $HISTFILE >output-file works for me.
Although, history 10000 still outputs most recent 1000 lines on my machine.
41,620
Posted By Roy987
export bash history to file
Hi,
I want to export bash history to a file, I used the following command
history > /home/administrator/bashHistory

But the exported file only contains commands with line number from 996 to...
2,042
Posted By Roy987
Thanks a lot to agama, Chubler_XL, I can...
Thanks a lot to agama, Chubler_XL, I can understand now.
2,042
Posted By Roy987
Help with understanding of alias
Hi, I saw the following explanation about alias in bash from gnu website, but I didn't get the meaning:
Bash always reads at least one complete line of input before executing any of the commands on...
Showing results 1 to 12 of 12

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