10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
I want to perform arithmetic operations on output of `wc -l`.
for example
user046@sshell ~ $ ls -l
total 0
where "total 0" will increase one line in wc -l
filecount=`ls -l | wc -l`
here $filecount will be 1 but is should be 0
how to get rid of it ? (1 Reply)
Discussion started by: anandgodse
1 Replies
2. Solaris
Sun Microsystems Inc. SunOS 5.9 Generic May 2002
SUNFIRE V240
if there is a power failure, automatically:
write all operations in a log file (0 Replies)
Discussion started by: doudou2012
0 Replies
3. UNIX for Dummies Questions & Answers
Hi,
does any one know the environmental parameter that I have to set so as to make sure the file operations run properly within the script.
right now when I am doing a cat from within the script nothing happens, same is the case when I do a grep. when I am doing awk '{print $0 }' its printing... (1 Reply)
Discussion started by: ahmedwaseem2000
1 Replies
4. Shell Programming and Scripting
Hello,
I am working on building a script that does the below actions together in my Linux server.
1) First, have to read the list of strings mentioned in CSV and store it in the shell script
2) Second, pick one by one from the string list, and search a particular folder for files that... (2 Replies)
Discussion started by: vikrams
2 Replies
5. Programming
Hi,
i have been developing a shell script to transfer a set of files from one ubuntu system to another.
Task: while executing the script the files ( ls, dir, cat) in the source machine should transfer to destination machine(at /home/mac/mac/bin)
While the script is executed once again, It... (0 Replies)
Discussion started by: srijith
0 Replies
6. Shell Programming and Scripting
Hey everyone. So the background of the problem is that the ps3 does not support the mkv container, but DOES support the avi one. Here is the script to convert one file with the name hardcoded in:
#!/bin/sh
mencoder -oac... (2 Replies)
Discussion started by: wua05
2 Replies
7. Shell Programming and Scripting
Friends,
I have a file with contents like:
interface Serial0/4/0/0/1/1/1/1:0
encapsulation mfr
multilink
group 101
Now I need to manipulate the file in such a way that to all the numbers less than 163, 63 gets added and to all numbers greater than 163, 63 gets deducted.(The numbers... (2 Replies)
Discussion started by: shrijith1
2 Replies
8. Shell Programming and Scripting
Hi,
Here is a tough requirement , to be served by bash script.
I want to perform 3,00,000 * 10,000 searches.
i.e. I have 10,000 doc files and 3,00,000 html files in the file-system. I want to check, which of the doc files are referred in any html files. (ex- <a href="abc.doc">abc</a>)... (3 Replies)
Discussion started by: jitendriya.dash
3 Replies
9. UNIX for Advanced & Expert Users
Dear All
I have group of files named :
CDR.1,CDR.2.,CDR.3,CDR.4,CDR.5,CDR.6,etc.......
I am performing an awk command look like this : nawk -f script CDR.*
What i want is that i want to perform this command on range of files not all of them.
Instead of writing CDR.* i want to write... (3 Replies)
Discussion started by: zanetti321
3 Replies
10. Shell Programming and Scripting
Hi,
I want to compare two files. Files will look like as follows:
file1:
ASDFGHJU|1234567890123456
QWERTYUI|3456789098900890
file2:
ZXCVBVNM|0987654321234567
POLKIJUYH|1234789060985478
output file should be:
ASDFGHJU|1234567890123456
QWERTYUI|3456789098900890
Thnaks in advance (6 Replies)
Discussion started by: nivas
6 Replies