10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
How to run several bash commands put in bash command line without needing and requiring a script file.
Because I'm actually a windows guy and new here so for illustration is sort of :
$ bash "echo ${PATH} & echo have a nice day!"
will do output, for example:... (4 Replies)
Discussion started by: abdulbadii
4 Replies
2. Shell Programming and Scripting
Hi All,
Random question, how would you convert a data file from a list like so:
12345
12346
12347
12348
12349
12350
... <snip 100+ lines> ...
to comma separated X columns across:
12345,12346,12347
12348,12349,12350
Why would you want to do this? The background to this is a... (2 Replies)
Discussion started by: craigp84
2 Replies
3. Shell Programming and Scripting
Hi,
I want to wrap the lines if a line starts with number. I tried the following sed command, but I do not get the required output. It is replacing the first number.
Can some one please help me on this?
Command I used
sed -e :a -e '$!N;s/\n//;ta' -e 'P;D' testfile
I/P file:... (2 Replies)
Discussion started by: christineidanny
2 Replies
4. Shell Programming and Scripting
Hi,
What is the korn shell equivalent of bash shell's "history -c" command?
I do know, how to clear the history list in ksh, I can do the following:
> ~/.sh_historybut still, I am interested to know the single one line command as 'history -c' gives error on my ksh (1 Reply)
Discussion started by: royalibrahim
1 Replies
5. AIX
As a newbie sys admin, how do i find out what other login session command line history, what are the commands they used?
Thanks.
leim (4 Replies)
Discussion started by: leim
4 Replies
6. Shell Programming and Scripting
Hello, I've been trying to use find command to find and print out some files. When I execute the command on the command line I get the output as expected howerver when I run it in the script it doesn't wrap.
For example, this is nicely wraped
find /etc -perm -o=w -exec ll '{}' \;... (4 Replies)
Discussion started by: mirusko
4 Replies
7. Solaris
I am used to using "set -o emacs" and then using "CNTL-P" for getting previous commands in solaris but on one host it does not work and instead just makes a DONG!!
# ksh
# set -o emacs
# ls
# ^p
Can anyone offer guidance as to why this is?
Thank you my friends.
akbar (0 Replies)
Discussion started by: akbar
0 Replies
8. UNIX for Advanced & Expert Users
I am running Solaris 8 and using ksh. The history file (.sh_history) helps a lot, but it seems to get 'reset' after a certain period of time. In other words, after some usage of the shell, the command history would disappear and start anew. Is there some facility to specify the period of time to... (1 Reply)
Discussion started by: Sowser
1 Replies
9. Shell Programming and Scripting
I am fairly new at this,
I wrote a awk program to give me some summary information about a file. At the end of the program I want to print some variables but for some reason it keeps wrapping the last variable on a new line in the output file.
Here is the print command
print "99", file_id,... (1 Reply)
Discussion started by: placroix1
1 Replies
10. Shell Programming and Scripting
I hope its ok to start a new thread, I was going to use my existing one but thought a new one would better clarify things and provide better search for future reference.
Well I have my bash program working now, all nice, user input validated, output formatted, everything is looking sexy.
Now... (2 Replies)
Discussion started by: andyj
2 Replies