10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello
I've got a certain no. of files in a directory whose names I'm reading and redirecting into a temporary text file using the command below:
ls -l | grep ^- | awk '{print $9}'However, whenever the file names contain spaces the above command considers only the part of the file name up to... (5 Replies)
Discussion started by: S. BASU
5 Replies
2. Shell Programming and Scripting
I am trying to identify all messages or prompts from a number of COBOL programs and they can usually be identified by a pair of double quotes on one line. However, sometimes the literal will not be finished on the first line but after a dash in column 7 of the next line, the literal will be... (6 Replies)
Discussion started by: wbport
6 Replies
3. Shell Programming and Scripting
I want to write a shellscript which determines if a particular process is long running than my specified threshold time.
Eg:
My process name is "prsd" and is expected to run for 15 mins and completes. If I set a threshold limit of 1 hour,
and how we can the get output of the long running... (4 Replies)
Discussion started by: chandu123
4 Replies
4. Programming
I am reading arguments passed to a C++ program which accepts long options.
Long options start with '--', with the value joined with the option by an = sign, with no intervening spaces.
An example is as follows:
programName --vdz=15.0
I want to store 'vdz' in variable 'key', whereas... (4 Replies)
Discussion started by: kristinu
4 Replies
5. Ubuntu
You probably know the answer to this, because I know it exists.
I have super long filenames with md5 hashes and I sucks to type the whole hash in the console. Because... just because :P
What is the shortcut for selecting a file in the current directory? Like you get a sort of loop through the... (1 Reply)
Discussion started by: hellfire1
1 Replies
6. Shell Programming and Scripting
Hi,
I'm trying to write a script that reads filenames from a file and use these filenames in a loop. The filenames are all on one line and the problem is that these filenames have wildcards like * and braces like in them.
Right now what I'm doing is something like this:
echo "reading from... (0 Replies)
Discussion started by: warp17
0 Replies
7. Shell Programming and Scripting
Hi,
I want to write a script to read all the filenames with extension .xml in a directory and pass the name of the file, one by one, to another function.
Please help me out.
Regards.
Saurabh (3 Replies)
Discussion started by: bhalotias
3 Replies
8. Shell Programming and Scripting
Hi,
I have an requirement of reading a long line of 7000 chars and cutting it
iam doing this :
while read -r x
do
echo $x
.........
done < `cat filename`
when iam doing this it is giving me "0403-016 Cannot find or open the file."
Can anyone let how this can be done. (2 Replies)
Discussion started by: karthee
2 Replies
9. UNIX for Dummies Questions & Answers
I downloaded a file with a name like "longfilename.cpio.gz" from a WinXP machine and burned it to a CD with Nero. When I mounted this CD on my Solaris box, all I could read was the first 8 characters of the filename (ie. "longfile").
Do I need to burn these files with a certain format so... (2 Replies)
Discussion started by: here2learn
2 Replies
10. UNIX for Dummies Questions & Answers
UNIX Sun Ultra60 5.5.1
Hello everybody, I have a problem that seems simple but turns out to be complex (for me at least). My program needs to open a directory (this part is easy), scan each filename and determine whether or not a file with the suffix (.07) exists. So the program would return... (5 Replies)
Discussion started by: j_t_kim
5 Replies