Search Results

Search: Posts Made By: arindamlive
6,068
Posted By arindamlive
command history of a particular user in a multiuser environment
Is it possible to find out the history of recently typed in commands of a particular user in a multi user system?

the history command expects a numeric argument with it. is it possible to find out...
5,003
Posted By arindamlive
thanks a lot mate
thanks a lot mate
5,003
Posted By arindamlive
Setting a permanent global variable in unix accessible from any script
Is there anyway in which i can set a permanent global variable in unix, which when initialised with a value and modified during any shell script, would retain its value even if i logout and login
...
2,646
Posted By arindamlive
is there any way to reflect this change in the...
is there any way to reflect this change in the original file?
2,646
Posted By arindamlive
i have this following file named test.txt whose...
i have this following file named test.txt whose content is

Hello
World

Whats Up?


and i execute the following command
x="Hey"
awk -v LINE=3 -v COL=1 -v VAL="x" '{ if(NR == LINE)...
2,646
Posted By arindamlive
i dont find any change in the file after i...
i dont find any change in the file after i execute this command
7,099
Posted By arindamlive
TRY THIS
TRY THIS
x=`grep -w "Hello World" data.out | wc -l`

if test $x -eq 0 ; then
echo "String not found"
else
echo "String found"
fi
2,646
Posted By arindamlive
writing in a file's particular column number of every line during runtime
Given a particular line number and a corresponding column number, can i write something in the file during run time?

For example x=1 and during runtime i want to write the value of x in column...
1,523
Posted By arindamlive
actually the problem with who is that if for...
actually the problem with who is that if for example there is a user named Jonathan_Smith, then `who` does not display the full user name ..It only displays the 1st 8-9 characters. So if i redirect...
1,523
Posted By arindamlive
time duration of being online of a particular user given the user name
in a multi user system of 3 users X,Y,Z, if i know that X is presently online, is it possible to determine for how long has he been online? i mean the time duration
3,024
Posted By arindamlive
without using find .. or for that matter without...
without using find .. or for that matter without using conventional file searching commands
3,024
Posted By arindamlive
searching a file with a specified text without using conventional file searching commands
without using conventional file searching commands like find etc, is it possible to locate a file if i just know that the file that i'm searching for contains a particular text like "Hello world" or...
5,774
Posted By arindamlive
using sed command to display contents where line numbers are stored in variables
if i want to display the contents of a file between say line number 3 and 10 then i use the following command

sed -n '3,10p' filename

if this 3 was contained in x and 10 was contained in y then...
1,814
Posted By arindamlive
thanks a lot guys.
thanks a lot guys.
1,814
Posted By arindamlive
extracting line numbers from a file and redirecting them to another file
i have applied the following command on a file named unix.txt that contains the string "linux from the text"
grep -n -i -w "linux from the text" unix.txt

and the result is
5:Today's Linux from...
1,306
Posted By arindamlive
to check continuously with a specified interval whether a particular person is logged in or not
Write a shell script which checks continuously with a specified interval whether a particular person
is logged in or not. The login name should be supplied as an argument to the shell script at the...
1,306
Posted By arindamlive
check continuously with a specified interval whether a particular person is logged in or not
Write a shell script which checks continuously with a specified interval whether a particular person
is logged in or not. The login name should be supplied as an argument to the shell script at the...
3,229
Posted By arindamlive
thanks a lot
thanks a lot
3,229
Posted By arindamlive
executing a shell script everytime the terminal is opened
the problem statement is

Write a shell script, which gets executed the moment the user opens a terminal. It should display the message "Hello your_name, welcome to 172.16.4.120...
1,640
Posted By arindamlive
thanks so much...works perfectly...thanks a lot :)
thanks so much...works perfectly...thanks a lot :)
1,640
Posted By arindamlive
couting occurences of a character inside a string and assigning it to a variable
echo "hello123" | tr -dc '[0-9]' | wc -c

using this command i can count the no of times a number from 0-9 occurs in the string "hello123"
but how do i save this result inside a variable?

if i...
Showing results 1 to 21 of 21

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