Search found 313 matches
- 2021-Jul-25, 1:31 pm
- Forum: Linux & macOS Bash
- Topic: How can I print columns defined by variable?
- Replies: 0
- Views: 17526
How can I print columns defined by variable?
09 Nov 2010 15:01 atayyy input file a b c d e f 1 2 3 4 5 6 if var="1 5" output will be a e 1 5 if var="2 3 6" output will be b c f 2 3 6 How can I do that by awk? ---------------------------- #2 08 Dec 2010 07:28 yoonix i suppose you can use 'echo' as an input and using split to...
- 2021-Jul-25, 1:28 pm
- Forum: Linux & macOS Bash
- Topic: How can Iterate through all the files and directories
- Replies: 0
- Views: 17587
How can Iterate through all the files and directories
10 Sep 2008 15:50 kalinga How can Iterate through all the files and directories under the current directory Any help :wall: ------------ Kalinga. ---------------------------- #2 20 Jul 2011 15:29 flabdablet Re: How can Iterate through all the files and directories I generally do this by using the fi...
- 2021-Jul-25, 1:03 pm
- Forum: Linux & macOS Bash
- Topic: Possible to display the time on execution of any command automatically
- Replies: 0
- Views: 17543
Possible to display the time on execution of any command automatically
23 Sep 2008 22:14 barbituate Is it possible for some kind of wrapper or built-in bash function to automatically display the time (maybe right-justified) whenever a command is executed. I do a lot of testing, and it helps to know when I kicked something off so I can quickly, at a glance, know how lon...
- 2021-Jul-25, 1:00 pm
- Forum: Linux & macOS Bash
- Topic: Mac commands to create/make UnDeletable and SuperHidden File/Directory
- Replies: 0
- Views: 17574
Mac commands to create/make UnDeletable and SuperHidden File/Directory
07 Oct 2011 12:06 Aerrow Hi, I need to create an UN-deletable file/Directory in Mac OS using Terminal commands. I used chflags, sudo commands but it doesn't meet my requirement. For your information, in Windows we achieve this concept using attrib, cacls commands. In Windows, For Super Hidden concep...
- 2021-Jul-25, 12:58 pm
- Forum: Linux & macOS Bash
- Topic: Transfer files to remote Linux system
- Replies: 0
- Views: 17452
Transfer files to remote Linux system
18 Sep 2011 21:51 sarbjitsinghgill Can some one suggest me a simplest way to transfer a text file from one linux to another. This file will be transfered everyday at 12:10 am which will be analyzed by a tool at target system. This has to be scripted . Thanks in advance. Sarbjit Singh Gill IBM certif...
- 2021-Jul-25, 12:56 pm
- Forum: Linux & macOS Bash
- Topic: Watch cpu,disk and network on AIX ??
- Replies: 0
- Views: 17489
Watch cpu,disk and network on AIX ??
22 Aug 2011 13:03 sarbjitsinghgill Friends, I am new to AIX. I need to monitor cpu disk and network for few db2 V8.2 and db2 V9.1 servers on AIX 5.3. This has to be monitored for a week to capture peak hour stats. Can someone help me with any commands/scripts for this. Thanks sarbjitsinghgill Sarbji...
- 2021-Jul-25, 12:53 pm
- Forum: Linux & macOS Bash
- Topic: [Bash] Convert Octal to Decimal or Hex
- Replies: 0
- Views: 17759
[Bash] Convert Octal to Decimal or Hex
02 Jan 2012 17:32 Hackjack Hi guys. Ive started with bash some months ago and i wrote some useful Programs tongue So here is what i need: printf "%x\n" DECIMALNUMBER Converts from decimal to hex printf "%d\n" HEXNUMBER Converts from hex to Decimal printf "%o\n" DECIMALN...
- 2021-Jul-25, 12:51 pm
- Forum: Linux & macOS Bash
- Topic: bash backtick variable simple script
- Replies: 0
- Views: 17430
bash backtick variable simple script
21 Feb 2012 17:46 jaffamuffin Hi all trying to parse a log file into a nice csv file for import into mysql, one aspect of this is converting a data of the form Feb 19 into a 2012-02-19 format. This is my line of data: Feb 19 18:42:16 sftp internal-sftp[12067]: session opened for local user galbraith...
- 2021-Jul-25, 12:48 pm
- Forum: Linux & macOS Bash
- Topic: Changing directory names that contain spaces
- Replies: 0
- Views: 18784
Changing directory names that contain spaces
07 Dec 2011 15:34 pittendrigh I frequently get DVDs (usually images) from customers who want me to create an image gallery. Filenames and directory names that contain spaces are annoying. A simple sedfilenames script is easy. Changing directory names is more difficult. First stab (with param checkin...
- 2021-Jul-25, 12:46 pm
- Forum: Linux & macOS Bash
- Topic: XOR One File With Another
- Replies: 0
- Views: 18914
XOR One File With Another
07 Sep 2012 18:32 jamesadrian I am relearning BASH after years away from it and I never knew very much about it. I am looking for a way to take two files of equal size and create a third file where the nth byte in the third file is the nth byte in the first file XOR'ed with the nth byte in the secon...