10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello, I recently sought help on another thread about how to prefix 2 words in a file with 'pack/'. This is the command:
sed --in-place 's/"\(libraries\|objects\)"/"pack\/\1"/g'
Background: I have a .json file with the word 'libraries' and 'objects' in it. However, 'libraries' occurs twice;... (6 Replies)
Discussion started by: AJ Ruckman
6 Replies
2. UNIX for Dummies Questions & Answers
hi all,
i have problem with my script in unix ...i have script with split -d (--numeric-suffixes) in linux its working but in solaris machine the option -d isn't have
so how to i can change split -d (this output) will same in output solaris can i change with awk and how do that
thx before (2 Replies)
Discussion started by: zvtral
2 Replies
3. UNIX for Dummies Questions & Answers
I have a script where I have the command
sed "s/$search_string/$replace_string/g" $backup
However I want a command to correct the original file $backup as well as creating another file with the changes which I have in my script already. In other words, I want to touch the orginal file also... (1 Reply)
Discussion started by: alis
1 Replies
4. Shell Programming and Scripting
Hi,
I want to change the shellrite now I am in ksh shell , I want to switch to bash shell
I have tried the command ...
$ chsh -s /bin/bash
but it is showing error ....
-ksh: chsh: not found (1 Reply)
Discussion started by: rahul125
1 Replies
5. UNIX for Dummies Questions & Answers
Hi
When I do the ls command I do ls -al so could I put someting in the .profile or somewhere else to juste write ls and the command will do ls -al ???
juste for 1 user ???
thanks
Sylvain (5 Replies)
Discussion started by: slevesque
5 Replies
6. Shell Programming and Scripting
What's wrong with this script?????
Please help!!!
!#/bin/sh
echo "please enter dir"
read input
cd $input
I'm trying to make a simple script to change dir. But does not work.
it stays at the same dir where i run the script.
What did i do wrong?? (21 Replies)
Discussion started by: c00kie88
21 Replies
7. UNIX for Advanced & Expert Users
I can login user by telnet, but I can't change user by su command with same passwd. I have no idea about that, please do me a favour and tell me the config which may be wrong.
Thanks in advance! (6 Replies)
Discussion started by: GCTEII
6 Replies
8. HP-UX
Dear all,
I have tried to use the following command to print report to a laser printer:
lp -d<printer name> -p6 -o cpi=17 <file name>
lp -d<printer name> -p6 -ocpi=17 <file name>
but it doesn't change the cpi to 17.
May I know what is the problem or is there any solutions?
Thanks! (3 Replies)
Discussion started by: mountainwater
3 Replies
9. UNIX for Dummies Questions & Answers
I have a very simple question which I am not able to crack.
There is an user with same username and groupname. How do I change permissions of a file to have the username and groupname assigned for the user "test". Appreciate you help.
-Carl (1 Reply)
Discussion started by: calredd
1 Replies
10. Shell Programming and Scripting
I want to limit the directories that a user can
access. When this users logs in, I do not want
them to cd to any directory but those in their
$HOME. In other words:
login:
pwd:
/home/user
cd / -- user tries to cd to root directory.
pwd
/home/user -- user is still in home... (4 Replies)
Discussion started by: oscarr
4 Replies