10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Dear All,
I would like to extract the file name without extension form a variable...
In particular I have a command like this one:
for file in path/to/file/example_number.ext
do something -input $file -output ${file%_number.ext}.new
done
means that in variable $file are saved all the path... (3 Replies)
Discussion started by: giuliangiuseppe
3 Replies
2. Shell Programming and Scripting
I have this END section in an awk script:
END {
for (j in littlebin)
{
print (j, int(log(j)/log(2)) , littlebin)
lbsum+=littlebin
}
for (i in bins)
... (6 Replies)
Discussion started by: treesloth
6 Replies
3. Shell Programming and Scripting
I have a script that reaches out to several systems and pulls back infomation in serveral files. I would like to take the infomation returned and reformat it so I can export it to excel.
Below is current output:
File1:item1:abc=1
File1:item2:efg
File2:item1:ab=1
File2:item2:efg... (3 Replies)
Discussion started by: oldman2
3 Replies
4. Shell Programming and Scripting
Currently, i am trying to create a simple robust script that is intended to move the contents of a given source directory to a target directory. Optionally, the script should allow to either move the whole source dir content, or dotfiles only, or visible files only. I am aware the target directory... (0 Replies)
Discussion started by: shells_bells
0 Replies
5. Shell Programming and Scripting
Hello,
Can you tell me how can I change this format by awk
Input
0.2057422D-01
0.2463722D-01
-0.1068047D-02
Output
0.02057422
0.02463722
-0.001068047
Thanks
wan (8 Replies)
Discussion started by: wanchem
8 Replies
6. Shell Programming and Scripting
when i run the following command
db2 list tablespaces
Tablespaces for Current Database
Tablespace ID = 0
Name = SYSCATSPACE
State = 0x0000
Tablespace ID ... (3 Replies)
Discussion started by: lazydev
3 Replies
7. Emergency UNIX and Linux Support
<key>ExcludeSimpleHostnames</key>
<integer>0</integer>
<key>FTPPassive</key>
Need simple command that will change the 0 to a 1 in this file when I grep it, but only for this integer key directly after the ExcludeSimpleHostnames key.
I got this output code... (8 Replies)
Discussion started by: glev2005
8 Replies
8. Shell Programming and Scripting
I'm very new to writing scripts, so here is my problem...I have the following code already written (in perl)
system "rm file2";
open(FILE2, ">file2");
open(MYINPUTFILE, "file");
while(<MYINPUTFILE>) {
my($line) = $_;
chomp($line);
print file2 "$line\n";
print... (2 Replies)
Discussion started by: ddrew78
2 Replies
9. Shell Programming and Scripting
I want use fake uname
anyone can guide? (9 Replies)
Discussion started by: redstaing
9 Replies
10. Shell Programming and Scripting
I want replace 2.6.15-25-server with 2.6.17 ?
$uname -r
2.6.15-25-server
1) mv /bin/uname /bin/uname.orig
2) put the following in the new /bin/uname:
#!/bin/sh
echo Uname (New Version)
/bin/uname.orig
:confused: (3 Replies)
Discussion started by: pop_black
3 Replies