10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have a file (newfile.txt) with the contents below:
This is a new file. This is a new file. This is a new file. This is a new file.
How could I make a new line of the file as below?
This is a new file.
This is a new file.
This is a new file.
This is a new file.
When there is a... (12 Replies)
Discussion started by: khchong
12 Replies
2. Shell Programming and Scripting
Hi All
I have a .csv file which is showing data as
ESP Client,ESP Engagement,Misc_Projects_120101,DEFAULT,HA,Unknown,No,Unknown,201704,4.1,Unknown,AAA,Collected-Done,"she,joy.",200111,Unknown,Full Time,,Delivery_DONE AMO,Approved,2012-12-03,2012-12-06,2012-12-06,"Occupied Hours ... (7 Replies)
Discussion started by: adisky123
7 Replies
3. Shell Programming and Scripting
have a very big file where need to format it like below
example file:
abcd today
is
great
day;
search keyword 'abcd' and append to it all words till we reach ; to make it a single line.
output should look like.
abcd today is great day;
There are many occurrence of such... (2 Replies)
Discussion started by: giri4332
2 Replies
4. UNIX for Dummies Questions & Answers
Hi All,
I am sitting on HPUX. I want to change the exit into #exit, which appears into 3red line of code in shell scripting, wondering how shell script to be called up to perform action. I have following code in all files. Now, I need to find the text exit and replace into #exit.
#!/sbin/sh... (10 Replies)
Discussion started by: alok.behria
10 Replies
5. Shell Programming and Scripting
I have a file with stats for different month, I use the cat and grep combination to search for different month.
cat <file> | grep "April"
cat <file> | grep "May"
cat <file> | grep "June"
etc.
How do you make this command interactive. So that I can give the values for the search. Thanks... (7 Replies)
Discussion started by: purelltab
7 Replies
6. Shell Programming and Scripting
Hi again:
Following the thread:
https://www.unix.com/shell-programming-scripting/147755-format-lines-file.html
I couldn't solve my problem, so I ask you again gurus:
I have this code:
nohup /usr/sbin/auditstream | /usr/sbin/auditselect -m -e "event== S_ENVIRON_WRITE || event==... (2 Replies)
Discussion started by: iga3725
2 Replies
7. Shell Programming and Scripting
I have the following data file.
zz=aa azxc-1234 aa=aa
zz=bb azxc-1234 bb=bb
zz=cc azxc-1234 cc=cc
zz=dd azxc-2345 dd=dd
zz=ee azxc-2345 ee=ee
zz=ff azxc-3456 ff=ff
zz=gg azxc-4567 gg=gg
zz=hh azxc-4567 hh=hh
zz=ii azxc-4567 ii=ii
I want to make 2nd field pattern matching multiple lines... (13 Replies)
Discussion started by: VTAWKVT
13 Replies
8. Linux
Linux, C++, make, macro
In source code, we used some #ifdef macros. How can I enable #ifdef macro in the command line of "make" (NOTE: I do NOT want to change source code or makefile to define that macro from time to time).
e.g. test.cpp:
...
#ifdef TEST1
// code segment for test1
...... (3 Replies)
Discussion started by: princelinux
3 Replies
9. Shell Programming and Scripting
suppose i have a file
AAAHHHHAHH
AJJJJAAAAAA
AJJJJJAAJJAK
AJJAJJAJKKK
the output suhd be
AAAHHHHAHHAJJJJAAAAAAAJJJJJAAJJAKAJJAJJAJKKK (2 Replies)
Discussion started by: cdfd123
2 Replies
10. UNIX for Dummies Questions & Answers
I have a file listing IP addresses, 1 per line, such as:
1.2.3.4
3.4.5.6
12.13.14.15
7.8.9.6
I want all of the entries to be on the same line, and quoted, such as:
"1.2.3.4" "3.4.5.6" "12.13.14.15" "7.8.9.6"
I got the quotes on there in vi with ":%s/^/"/g" and "%s/$/"/g" ... is there... (8 Replies)
Discussion started by: earnstaf
8 Replies