Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged Shell

0 votes
1.2k views
1 answer
    I need to transfer a file from my linux server to a FTP server. My shell script is : #! /bin/ksh ... script. Thanks in advance for your help See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I have a really easy question, I have found a bunch of similar questions answered but none that solved this for ... in advance for your help :) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
884 views
1 answer
    Is there a way to implement the following using 'for' in KornShell (ksh)? Here is the C equivalent: for(i ... me know your ideas and solutions. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
998 views
1 answer
    When I call system(0) it returns 0, which means shell is not available. When a command using system (calls ... out that this caused the error. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I am trying to write a BASH script that downloads some transcripts of a podcast with cURL. All transcript files ... > # ... done See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    One of my assignments in to write my own UNIX Shell. To receive input from the user, I am using fgets to ... with fgets equals "exit"? Thanks! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.6k views
1 answer
    The script is: #!/bin/bash # Dynamic Menu Function createmenu () { select selected_option; do # in "$@" is the ... ,serial,size | grep "sd"); See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
945 views
1 answer
    The following short script prints a random ten-digit binary number: #!/usr/bin/zsh point='' for i in ... either 1111111111 or 0000000000. Why? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I am looking to get previous date in unix / shell script . I am using the following code date -d '1 day ago' +' ... format] date -a [-]sss[.fff] See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    If I redirect output of a command to same file it reads from, its contents is erased. sed 's/abd/def/g' a.txt > a.txt Can anyone explain why? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I have a bunch of files in a folder: foo_1 foo_2 foo_3 bar_1 bar_2 buzz_1 ... I want to find all the ... prefix: find bar_* > Positives.txt See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I have many files in a directory with similar file names like file1, file2, file3, file4, file5, ..... , file1000. They ... 3 3 3 3 .... Thanks. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
974 views
1 answer
    I'm doing a script which installs a tcl plugin. But this tcl plugin require some additional tcl/tk libraries, so ... script, Perl or even Tcl)? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I know that to get all message body, this is the command: [imap_code] UID FETCH [uid] BODY.PEEK[TEXT] Thus ... text if there isn't html version See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    The following shell scrip will check the disk space and change the variable diskfull to 1 if the usage is more ... 1 exit fi done echo $diskfull See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    This must surely be a trivial task with awk or otherwise, but it's left me scratching my head this morning. ... and VSSILEDKILSR). Thanks :) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    I have a file named cmd that contains a list of Unix commands as follows: hostname pwd ls /tmp cat /etc/hostname ... ** What am I missing here? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I have a script, that I need to run after committing to a project under git revision control. Therefore I ... background. What is wrong here? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I am running a program called stm. I want to save only those stderr messages that contain the text "ERROR" in a ... How do I do that in bash? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.7k views
1 answer
    I have a xml like below <root> <FIToFICstmrDrctDbt> <GrpHdr> <MsgId>A</MsgId> <CreDtTm>2001-12-17T09:30:47</ ... awk command. how to do it? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I need a bash script that does the following: Starts a background process with all output directed to a file Writes ... these at the same time? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I'm trying to execute a linux command through a PHP command-line script, which is no problem using the exec ... use in my script? Thanks! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
980 views
1 answer
    I have just spotted that something is wrong with my django-admin.py command. I checked similar SO posts on ... without any of given arguments) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.6k views
1 answer
    I'm writing a web application using CGI scripts written in bash. For GET requests, the request parameters are available ... m using Apache 2.4). See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    Hi I'm new to bash scripting. Just wrote this simple program but it is throwing error. #!/bin/bash os=` ... )-release (x86_64-suse-linux-gnu) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
937 views
1 answer
    I have a written a script that when it is sourced checks if the script is being run interactively using interactive ... with the opt inputs } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I was trying to install an app on my nexus 5 from intellij and for the first time i get an error saying ... logcat" and it showed normal either. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I'm trying to find and replace a string in a folder of files. Could someone possibly help me? My script ... in the files themselves. Thanks See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...