Search Results

Search: Posts Made By: camus
4,470
Posted By camus
Thanks anbu23 ! It works well :)
Thanks anbu23 ! It works well :)
4,470
Posted By camus
Anyone help ? :(
Anyone help ? :(
4,470
Posted By camus
@anchal_khare: It's just an example. The rule is...
@anchal_khare: It's just an example. The rule is if there are a line /dir1/dir2 and other lines which the same as first line plus more "dir*" /dir1/dir2/dir3a, /dir1/dir2/dir3b or...
4,470
Posted By camus
Here the result : / /Cars /Old /Old/Ships...
Here the result :
/
/Cars
/Old
/Old/Ships
/Planes

Thanks but I dont want "/" and "/Old" printed out
4,470
Posted By camus
Lolz thank to jim mcnamara and xoops. Sure it...
Lolz thank to jim mcnamara and xoops. Sure it works. But Im sorry that not what I mean. Number and alphabet are just an example cause I was lazy. What I meant is there's a list of parent directories...
4,470
Posted By camus
Help filter content of a file
Hi all !

I have a file name file1 like this :


/A
/A/1
/A/2
/B
/B/3
/B/4
/tmp/C
/tmp/C/5
/tmp/C/6
I want to write a script to take content from file2 and print out to file2 only these...
8,757
Posted By camus
Can you please explain about chroot and what is...
Can you please explain about chroot and what is restricted shell ? In /etc/passwd the shell of viewer is /bin/bash

@alister : I checked the $PATH and yes it is /home/viewer/bin. And using the...
8,757
Posted By camus
Restrict command for an user ?
Hi everyone !

I got "viewer" and "root" user on a *nix computer. When i log in using "viewer" I only can use "df" command. When I try another command like "ls" it say :

-bash: ls: command not...
1,764
Posted By camus
Thank you very much Scrutinizer !! I get it...
Thank you very much Scrutinizer !! I get it clearly :)
1,764
Posted By camus
It works !! Thank devtakh !!
It works !! Thank devtakh !!
1,764
Posted By camus
Need help with grep !
Hi everyone ! I have a script to catch the same content of 2 files like below:

#!/bin/bash
COUNT=`wc -l file1`
LINE=(${COUNT[@]})
for i in `eval echo {1..$LINE}`
do
y=`sed -n "$[i]p"...
Showing results 1 to 11 of 11

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