10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Firends,
I wanted to extract the first record of the file which starst with character say "X". And I tried an awk command which works when i try to execute it individually:
awk 'substr($1,1,1)=="X"' inputfile.txt
But when I use the same command in my script for which I am passing the... (2 Replies)
Discussion started by: Ajay Venkatesan
2 Replies
2. UNIX for Dummies Questions & Answers
Hi I need to move the first file in a folder to an another folder but am facing issues with the below cmd. CAN someone correct me
Ex :
Folder :data/cat/tst
ad2
ad4
ad5
ad6
output req:
data/cat/man
ad2
Command Used :
ls -lt ad*|head -1|mv/data/cat/man (3 Replies)
Discussion started by: akshay01987
3 Replies
3. Shell Programming and Scripting
When i execute rm -f $1 via a script file named rmf, it is not deleting all the files, say starting with "sec". i have execute rmf for many times to remove all the occurrences...
$rmf sec* - this should delete all files starting with sec, but not.
The rm -f sec* is working fine. kindly help... (3 Replies)
Discussion started by: frozensmilz
3 Replies
4. Cybersecurity
Hi,
I am trying to write a script which would figure out who has run which command and their IP. As i dont have any clue as to which commands would do this job, i request some gurus to help me on this.
Thanks
Vishwas (2 Replies)
Discussion started by: loggedout
2 Replies
5. Solaris
Can anybody have the command to know the port no using unix command for the weblogic server application. (1 Reply)
Discussion started by: Amit_kolurwar
1 Replies
6. UNIX for Dummies Questions & Answers
Hi Gurus,
I have a small requirement.
Let suppose i have a file test.txt
test.txt contains
Dispatched date = '2008-04-08'
Name = 'Logers'
Now i want to add one more line to it as Number of Responses = "$a"
$a will be chnaging dynamically which i had grepped it in the script.
Now i... (6 Replies)
Discussion started by: pssandeep
6 Replies
7. UNIX for Dummies Questions & Answers
I have files inside the some directories. The no. of files in each directory will vary from 1 to 500K. I need to change the permissions of all the files to 400 mode. When the files are large in numbers...the command
$chmod 400 *
fails saying "ksh: /bin/chmod: arg list too long"
so I have... (5 Replies)
Discussion started by: lokachari
5 Replies
8. Shell Programming and Scripting
Hi,
I had written the following script to find the list of files with *.ksh in a directory. and store it in a temp file.
I want to loop through the file temp and list the contents. I had used cat temp. But its giving Cat and temp as the output.
Do help me out.
Thanks
find .... (7 Replies)
Discussion started by: mahalakshmi
7 Replies
9. UNIX for Dummies Questions & Answers
Hi All,
Can anyone please help me in unix command
Query:
====
File contains data along with date and time stamp like,
..
Date: 08:23:2005 01:00:00
method: xyz
init variables
Date 08:23:2005 01:00:01
method: xyz
finished init variable
.... (2 Replies)
Discussion started by: thaduka
2 Replies
10. Solaris
I need to get a few details from the command line. I need to get the kilobytes per second that my server is transfering to another or has available and I need to test the connection to make sure that its a sound connection. I also need to keep track of the response time.
I have been playing... (1 Reply)
Discussion started by: nowayin
1 Replies