Search Results

Search: Posts Made By: bryan
22,313
Posted By bryan
moving large number of files
I have a task to move more than 35000 files every two hours, from the same directory to another directory based on a file that has the list of filenames

I tried the following logics

(1)
find ....
2,065
Posted By bryan
program running for one user and not for other user
i have an application that i can call from command line

i can pass arguments to the command specifying the server name, user name and password.

when i give my login information such as...
4,984
Posted By bryan
it was as simple as putting cat filename ...
it was as simple as putting
cat filename
inside the script

dumb of me

thanks guys
4,984
Posted By bryan
thanks How can I send contents of a file to...
thanks

How can I send contents of a file to standard output inside a script and not loose the newline character?
4,984
Posted By bryan
file content to standard output from a script
hi folks

how do i output contents of file in standard output.

in my script, i say

x=`cat filename'
echo $x

below is the actual file

***********
asda afdf fdf sdf dsfsdfsd fds...
8,097
Posted By bryan
vi command in shell script
I need to delete all the new lines in a file.
so, in vi, I would use
:1,$s/\n//g and then save the file.

How can I achieve this in command line? thanks
22,338
Posted By bryan
one other question what if I dont want to...
one other question

what if I dont want to add(concatenate) it as a new line to the target file, instead want it to add it at the end of target file's last character?
22,338
Posted By bryan
thank you. i should have thought about it. ...
thank you.

i should have thought about it. :(
22,338
Posted By bryan
add data from command line to end of file
how can I add data from command line to end of file?
4,286
Posted By bryan
Thanks Guys
Thanks Guys
4,286
Posted By bryan
return a word between two words
how do i get a word that exists between two words

eg: this is bryan
My input to command would be this and bryan
and output should be 'is'

Is there a command i can use?
6,787
Posted By bryan
calling script in target machine
I know that schedulers handle callign scripts on different machines. If I want to call a script that's on the target machine and know whether the script ran fine or not, can it be done in shell...
2,273
Posted By bryan
taking snapshot of a file
Hi

I would like to take snapshots or look at a file every few secs that its not being edited or not being made any changes. After a minute, if there were no changes, then I would like to call my...
4,485
Posted By bryan
Thanks It was the backticks Proper...
Thanks

It was the backticks

Proper Script:
#!/bin/ksh //correct

DFR=`df -g /dev/devetl_lv|grep devetl_lv|awk '{print $4}'|sed 's/\%//'`
//correct

if [ $DFR -gt 90 ] then echo...
4,485
Posted By bryan
disk space script debug - posted before
I saw the following script in an earier post in this forum. Changed a little bit and trying it in my env but getting errors. Pls help in debuggin this.

(1)
#!/bin/ksh

DFR='df -g...
44,994
Posted By bryan
Thank you!
Thank you!
44,994
Posted By bryan
parameter file for a shell script
Hi

I was able to pass parameters to a shell script from the command line but now, I am trying to make the shell script to get those parameters/values from a file.

Please give me ideas how to...
3,175
Posted By bryan
Thanks Guys :) hyphen was needed before...
Thanks Guys :)

hyphen was needed before 'eq' since the operands were numericals
3,175
Posted By bryan
I still get the same error. Why do we need to put...
I still get the same error. Why do we need to put hyphen infront of operator?

script executed
#!/bin/ksh
application task run command //returns 0 if successful
if [$? -eq 0]; then echo "Ran...
3,175
Posted By bryan
cant get the right exit message
#!/bin/ksh
application task run command //returns 0 if successful
if [$? eq 0]; then echo "Ran Fine"
else echo "Didnt run"
fi


When I run the script, here is the output
Status code = 0...
2,884
Posted By bryan
services
I have an application service running on an AIX server

Client application is able to connect to the server machine.

Strange thing is

when i do "netstat -a | grep servicename" I get no...
6,171
Posted By bryan
cant extract files from a tar file
hi everyone


i have a tar file which was in AIX box. its 300mb.

i cant untar in windowsxp home. I just get an empty folder with no files when i extract. i dont get any bad header or any such...
Showing results 1 to 22 of 22

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