10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am looking for a method to use in my bash script which allows me to use long strings with all special characters.
I have found that printf method could be helpful for me but unfortunately, when I trying
root@machine:~# tevar=`printf "%s%c"... (2 Replies)
Discussion started by: elxa1
2. Shell Programming and Scripting
I need to put the following string to the beginning of a file - but it should not create a newline at the end of the string.
So, the file I have is a compressed one - with gzip.
And I would like to add an ASCII-String to the beginning of the file. The string has a length of 69... (5 Replies)
Discussion started by: API
Can anybody please tell me how can I put dot(.) in a string using C programming.
for example --
I am having string "10111988" and I want to convert it as "10.11.1988"
I will appriciate and thanks in advance.. (4 Replies)
Discussion started by: smartgupta
4. Red Hat
Hi all, im pretty new to unit/redhat 6.2
I am trying to load a script upon startup of my redhat 6.2
(instance in ec2 AWS if someone cares)
I want everytime when instance starts (after stop/reboot) a script i build to launch. when i run the script ./scriptname the script runs and everything is... (4 Replies)
Discussion started by: hookedatwalla
5. Shell Programming and Scripting
I have several file as below, and i want to put .txt to specific text contain ^main=EXE^cmd=run script /usr/prog/bd_,
7.9102 12.1528 16.3672 7.4002
^main=EXE^cmd=run script /usr/prog/bd_123^"
line 16.3672 7.3134 17.8711 6.0981
7.9102 12.1528 16.3672 7.4002 ... (8 Replies)
Discussion started by: zulabc
6. Shell Programming and Scripting
I've a problem to put .h end of the line..below my input file
and i want the output file as below
fg_d.h (6 Replies)
Discussion started by: zulabc
7. Shell Programming and Scripting
I am very new to Unix script. Suppose i have a file with column header:
NAME1 NAME2 Address Tel
And I always need to make a file with column header:
ID NAME1 NAME2 EMail Address Tel
For the columns that do not exist in the file, I would still like to make a column with blank.
... (11 Replies)
Discussion started by: nightrider
8. Shell Programming and Scripting
I have a file (sample.txt) this file contains below text.
./zfa/11.5.0... (2 Replies)
Discussion started by: gagan4599
9. Shell Programming and Scripting
Wow that was annoying, I wrote a huge long entire post out, clicked submit and the damn thing lost my entire post.
Ok, here's what I am needing to do.
Have a cron job run every six days at a random minute and hour ONLY ONCE on that day.
Would this work?
*/30 */3 * * */6 command
... (3 Replies)
Discussion started by: Ashberry
10. Shell Programming and Scripting
i have a working that looks like this...
what i want to do is insert "M" when the first string is "MALE" and insert "F" when the first string is "FEMALE".
M MALE ... (10 Replies)
Discussion started by: kingpeejay