Aigles, about your solution:
1) It does not work if the number of files is not multiple of 10.
2) The user is asking to work with 10 files at a time.
You are working with one at a time.
Here is one possible solution to rename the files:
Here is the solution to work with groups of 10 files at a time:
i have done a coding in shell scripting which reads a file line by line and does something....it takes more than 30 seconds to execute for a single file. when i do the same with perl scripting it takes less than a second.
is that shell scripting is not efficient while working with large number of... (1 Reply)
Hi all,
I tried to write a shell to read huge file and eliminate max length record which is wrong generated record. But I get an error
remove_sp.sh: line 27: syntax error near unexpected token `else'
remove_sp.sh: line 27: ` else $LINE >> REJFILE'
My shell is here:
#!/bin/sh... (5 Replies)
Hello
I'm stuck trying to solve this KSH issue and I'm hoping someone out there can offer some suggestions.
I want to read lots of large .gz files one line at a time in order to compare its Error entries with a list of known errors. I can't simply do "foreach ERROR do gzcat *.gz |grep... (2 Replies)
Need shell script to read two file at same time and print output in single file
Example I have two files 1) file1.txt 2) file2.txt
File1.txt contains
Aaa
Bbb
Ccc
Ddd
Eee
Fff
File2.txt contains
Zzz
Yyy
Xxx (10 Replies)
Hello community,
what I need to do is read 2 rows at time from a file. I have this simple solution:
File to read:
LINE1
LINE2
LINE3
LINE4
LINE5
LINE6
LINE7
LINE8Read routine:#!/bin/ksh
sed '1,3d' /out.txt | while read line; do
read line2
echo $line $line2
doneResult:LINE1... (5 Replies)
Hello All,
I have a file like below....
dn: cn=user1,ou=org,o=org
cn=user1
uid=user1
cn=user2,ou=org,o=org
cn=user2
uid=user2
cn=user3,ou=org,o=org
cn=user3
cn=user33
uid=user3
cn=user4,ou=org,o=org
cn=user4
uid=user4 (6 Replies)
Hi,
I have the below text:
16:00 0.50
16:00 0.30
16:00 0.00
16:00 0.00
16:00 0.30
16:01 0.00
16:01 0.30
I want to find the max of the 2nd column grouping by the values in the 1st column using awk. So
16:00 0.50
16:01 0.30
I have tried (3 Replies)
You have a log file as attached in sample input with various operations and time taken by each of them. Write a script to find the min and max time taken for each operation. Sample output is attached.
Sample Input is given as below:
operation1,83621
operation2,72321
operation3,13288... (1 Reply)
Discussion started by: Chandan_Bose
1 Replies
LEARN ABOUT SUSE
prj2make
prj2make(prj2make 1.0) prj2make(prj2make 1.0)
NAME
prj2make - Makefile generator from Visual Studio and Sharp Develop solution files.
SYNOPSIS
prj2make options file
DESCRIPTIOn
The prj2make tool will produce Makefiles or NMakefiles from Visual Studio solution files (files ending in .sln or .csproj) or SharpDevelop
combine files (files ending in .cmbx or .prjx).
This tool is commonly used to compile on Unix source code which has been originally developed with Visual Studio or SharpDevelop.
This tool can also be used to convert Visual Studio project files (.sln or .csproj) into Sharp Develop .prjx/.cmbx files, use the
`-csproj2prjx' for this.
By default prj2make will produce Makefiles suitable to be consumed by Unix Make. If your application needs to target nmake, you can use
the option `-isNmake'.
OPTIONS -c , -isCsc
Use csc instead of mcs on the generated files.
-csproj2prjx
Runs in conversion mode, and turns a csproj/sln into a set of prjx/cmbx files.
-n , -isNmake
Produce makefiles suitable to be used by Nmake.
MAILING LISTS
Visit http://lists.ximian.com/mailman/listinfo/mono-list for details.
WEB SITE
Visit: http://www.mono-project.com for details
SEE ALSO mcs(1),mono(1),make(1),mono-config(5)
prj2make(prj2make 1.0)