Search Results

Search: Posts Made By: lalitpct
10,589
Posted By lalitpct
Find files and sort by timestamp
Used below command to get list of files sorted by timestamp

find -L . -type f -name '*dat*' | xargs ls -ltrg


I want to get only the filenames so I tried adding basename but it doenst...
589
Posted By lalitpct
Line count of a dos file in kshell
dos file in unix environment , now want to get the line count of the file .
Is it possible???/
1,013
Posted By lalitpct
steps are as below check the cksum on remote...
steps are as below
check the cksum on remote server
copy the file on local server '
check the cksum on local server and it should match


Ok let me check why ssh is not working
...
1,013
Posted By lalitpct
Checking integrity copied from remote server using UNIX command
I am getting a file (abc.txt) using scp from remote server.
scp <connect string> -i $HOME/.ssh/id_dsa rem_id@hostname:/var/prod/abc.txt /var/prod/abc.out

Before loading I need to check if the...
1,597
Posted By lalitpct
Thanks this looks perfect , when I run it in...
Thanks this looks perfect ,
when I run it in ksh it gives error for IX, I defined IX=0 but still doesn't work
IX++: bad number
any idea why ?
1,597
Posted By lalitpct
Is it possible to do in only unix Korn shell...
Is it possible to do in only unix Korn shell file???
1,597
Posted By lalitpct
Ok let me put it again Sample file abc.txt...
Ok let me put it again
Sample file
abc.txt
-------------
110101160315100000000000000
110101160315100000000000000

Layout.txt
--------------
CATEGORY POSITION ...
1,597
Posted By lalitpct
Add delimiter to a file from layout file
I need to add delimiter in file abc.txt using layout.txt
for eg 1 to 2 is category field so after that I need to add delimiter ~

abc.txt
110101160315100000000000000
...
2,120
Posted By lalitpct
Print filename/dir name while executing aclput using find command
Actully to be more precise , I am executing aclput but for some it gives below error.
aclput: Not owner
aclput: Permission denied
Below commands gives output in log.txt but error is on screen and...
2,120
Posted By lalitpct
Print filename/dir name while executing aclput using find command
Running below command , but unable to print the filename , is there way to print filename/dirname using -print option
find . -type f -exec aclput -i fileacl.template {} \;
6,497
Posted By lalitpct
Running local script remotely with arguments in ksh
cant we do it without copying ??? i want to execute local script
6,497
Posted By lalitpct
Running local script remotely with arguments in ksh
When i use ssh command to execute local script on remote server , I am unable to do it.
Please let me know how this can be done in ksh


req=abc
dte=ghd
ssh username@hostname "$req $dte" <...
13,456
Posted By lalitpct
Create subfolder within folder in one command
and if the end one is a file ?
for eg
/a/b/c/d/e/f.txt
and i want to copy file f.txt to above location and d and e directory missing then
13,456
Posted By lalitpct
Create subfolder within folder in one command
suppose if i am checking folder g as shown below path
a/b/c/d/e/f/g ,and some directory c,d,e,f,g not present then is there anyway to create directory in one command
or i need to use mkdir for...
4,460
Posted By lalitpct
gzip of a file in the same folder
I want gzip of a file in the same folder where it is kept now
$filename = '/var/dev/test.txt'
/opt/home/>> gzip -c $filename > test.txt.gz
however command creates it in the folder in /opt/home/...
2,557
Posted By lalitpct
Extract tty from ps command
When I try to extract tty from ps command , at time we get output , at times we dont.
for eg i executed below quesry continulusly for some time,Actually i feel its because sometime pid allocated has...
2,197
Posted By lalitpct
Actually i need to check this is shell script ,...
Actually i need to check this is shell script , not manually
2,197
Posted By lalitpct
Check files copied from remote server
There is a process which copy files form unix a to unix b
I would like to check whether all files copied from a to b or not ,and list which are the missing files.
Is there a command to check like...
1,757
Posted By lalitpct
blocking connection message in sftp
when i use below sftp command we get connectuiobn message , is there a way to block it.


cnt=`sftp -b 'count.sh' <username>@<password>:/gsmtmeg1/java5/docs/common/ | grep -v '^sftp>' | wc...
15,684
Posted By lalitpct
ssh ksmsft1@laixu110.jkea.jlroot.net "echo 1234" ...
ssh ksmsft1@laixu110.jkea.jlroot.net "echo 1234" ...
15,684
Posted By lalitpct
nope it doesnt give output as well
nope it doesnt give output as well
15,684
Posted By lalitpct
cant use ssh
as it gives message "No terminal authorization granted"
15,684
Posted By lalitpct
Count number of files in remote server
Conneect remote server and then count no of files in the directory
sftp ksmsft1@laixu110.jkea.jlroot.net << EOF cd /opt/jls/ ls quit EOF
When I try above command it doesnt work , we have ssh...
4,108
Posted By lalitpct
I was able to extract using below command , but I...
I was able to extract using below command , but I feel its too long . Please let me know if there is efficient way that anyone can think of
I have give out put as well for each variable (shell is...
4,108
Posted By lalitpct
I will give more details on this finger...
I will give more details on this

finger $LOGNAME


output
--------
Login name: ab67999 In real life: felisaona
Site Info: abc,zxccb,100089
Directory: /home/ab67999 ...
Showing results 1 to 25 of 49

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