10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello
I'm working on a script to list all ipv6 from given address
so I've run this script which create hex part of ipv6
STR2=159
END2=200
SUM2=`expr $END2 - $STR2`
for ((i=STR2;i<=END2;++i)); do
x=$( printf "%x" $i ) ; echo $x
echo -e "::"$x >> netpart.txt
done
output is :
::9f... (2 Replies)
Discussion started by: nimafire
2 Replies
2. Shell Programming and Scripting
textfile 1
BRM501,LOGON,BX12_28,2012 SEP 20 15:01:58
BRM502,LOGOFF,BX12_34,2012 SEP 20 14:56:06
BTT396,LOGON,BT03_8,2012 SEP 20 15:03:08
textfile 2
BRM501,DEPLOYED
BRM502,DEPLOYED
to combine 2 textfile result together and create new file
result
BRM501,LOGON,BX12_28,2012 SEP 20... (4 Replies)
Discussion started by: ment0smintz
4 Replies
3. Shell Programming and Scripting
I need to write a shell script that will do all this:
Go to server directory, for example (/xyz/outbound)
In the outbound folder, get the list of the (old) directories created or modified at least two days before the date when script is run.
The list will have the names of directories, some... (2 Replies)
Discussion started by: chako_3
2 Replies
4. Shell Programming and Scripting
Hi,
I want to calculate the table space usages an this result save as excel. It's saved but header coming two time within one excel file like :
TABLESPACE_NAME SIZE_MB FREE_MB USED_MB FREE_% USED_% a 10000 3395.63 6604.37 33 66 b 2048 1330.38 ... (3 Replies)
Discussion started by: mnmonu
3 Replies
5. Shell Programming and Scripting
how can i generate following sequence
for a given input 1,2,3,4,5
1->2
2->3
3->4
4->5
1->2,3
1,2->3
2->3,4
2,3->4
3->4,5
3,4->5
1->2,3,4
1,2->3,4
1,2,3->4 (4 Replies)
Discussion started by: vaibhavkorde
4 Replies
6. Shell Programming and Scripting
Reference post, https://www.unix.com/shell-programming-scripting/131307-incrementing-twist-please-help.html , I can generate a word list easily, by echo or for loop.
For example, with the echo command and word expect, I can list all 6 letters possibility (6X6X6X6X6X6=46656)
echo... (6 Replies)
Discussion started by: rdcwayx
6 Replies
7. Shell Programming and Scripting
I am trying to generate a report for a file called phone_book
awk -f {phone_book}
why does this not work? Nothing happens at all. (2 Replies)
Discussion started by: gustave
2 Replies
8. UNIX for Dummies Questions & Answers
Using 'awk' i want to generate new ID..which should be increment of maximum number given as UID..
eg..in /etc/passwd..3rd field is UID..and we just want next user ID for this file..keep in mind that file is not sorted..so last line in the file may not display last UID..means UIDs in file are... (1 Reply)
Discussion started by: aadi_uni
1 Replies
9. Shell Programming and Scripting
Hi
Please help me to resolve the below query.
My shell script has generated a file output.file like below
********************************
DROP TABLE GPS_CONTACT_DETAILS
DB20000I The SQL command completed successfully.
CREATE TABLE GPS_CONTACT_DETAILS ( CONTACT_ID ... (8 Replies)
Discussion started by: sailaja_80
8 Replies
10. Shell Programming and Scripting
Hi,
I want to generate a string like 99999 or 00000 depending upon the number of zeros or nines.. that is if I say 9 then I need the string "9" as 999999999. if I say 4 zeros then i need to get a string 0000. Like my input to a function are number ( 0,1,2) which should be there in the string and... (5 Replies)
Discussion started by: Tux_Raju
5 Replies