10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
This is the sample json I have pasted here. I want all the IP address strings to be converted into an array. For example "10.38.32.202" has to be converted to everywhere in the JSON. There are multiple IPs in a JSON I am pasting one sample object from the JSON. But the IPs already in an Array... (11 Replies)
Discussion started by: vinshas1
2. Shell Programming and Scripting
How can I extract digits at the end of a string in UNIX shell scripting or perl?
What can I do here? Many thanks.
cat file.txt | sed "s/.txt$//" | ........
13 (11 Replies)
Discussion started by: mingch
3. UNIX for Beginners Questions & Answers
I need to search and replace a string in AIX using variables and should be case insensitive.
I am able to search and replace using below command but its not working as case insensitive.
cat abc.txt | sed -e 's/$a/$b/g' > abc.txt
But i need to perform this with case... (9 Replies)
Discussion started by: mohit_vardhani
4. Shell Programming and Scripting
i have a file something like this :
and i want (end - start) total run time in below format:
00:15:00 (4 Replies)
Discussion started by: Acme
5. Shell Programming and Scripting
i have date as inputdate=01/01/2013,how to get the previous date from this date and also first day's date of the month.
how can i get solution to this. my unix is not supporting GNU Dates
... (0 Replies)
Discussion started by: learner24
6. Shell Programming and Scripting
sessionid_remote=$(echo "select odb_sessionid from sysopendb where odb_dbname='syscdr';" | sudo -u cucluster ssh ucbu-aricent-vm93 "source /opt/cisco/connection/lib/connection.profile; $INFORMIXDIR/bin/dbaccess sysmaster@ciscounity")
for sid in $sessionid_remote;do
if * ]];... (2 Replies)
Discussion started by: deeptis
7. UNIX for Advanced & Expert Users
I am using a bash shell and want to the following thing.
A process sends the following string to my script
BACKUP_FAIL_REASON="Failed - Application Dump CDMACA-0:grep: /opt/nortel/ca/data/1245184/sd00/image1/S110907070708HIS... (4 Replies)
Discussion started by: Pkumar Sachin
8. Shell Programming and Scripting
hi all ,
i am looking for a shell script which looks into a directory of text files and searches for a string(abc123) in all the text files and if that exists add a new line(abc124) in all the *.txt files automatically, or if (abc124) exists add (abc123) can you all please help me. (6 Replies)
Discussion started by: joseph.dmello
9. Shell Programming and Scripting
I have 1000 of sql queries and i need to push column value in query. e.g.
INSERT INTO test (id,name) VALUES ('a');
INSERT INTO test (id,name) VALUES ('b');
INSERT INTO test (id,name) VALUES ('c');
INSERT INTO test... (12 Replies)
Discussion started by: mirfan
10. Shell Programming and Scripting
I am new to scripting
I have written a code to compare strings,but I am getting some Exception
if ]; then
./BatchJobs.sh: [[: execute permission denied
I have given all Execute permissions to the script(chmod 755... (2 Replies)
Discussion started by: Anji